suanPan
ShellBase.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (C) 2017-2023 Theodore Chang
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  ******************************************************************************/
30 #ifndef SHELLBASE_H
31 #define SHELLBASE_H
32 
34 
35 class ShellBase : public MaterialElement2D {
36 protected:
37  static const uvec m_dof, p_dof;
38 
39  static vec reshuffle(const vec&, const vec&);
40  static mat reshuffle(const mat&, const mat&);
41 
42  mat trans_mat;
43 
44  void direction_cosine();
45  [[nodiscard]] mat get_local_coordinate() const;
46  vec& transform_from_local_to_global(vec&) const;
47  vec& transform_from_global_to_local(vec&) const;
48  mat& transform_from_local_to_global(mat&) const;
49  vec transform_from_local_to_global(vec&&) const;
50  vec transform_from_global_to_local(vec&&) const;
51  mat transform_from_local_to_global(mat&&) const;
52 
53 public:
55 };
56 
57 #endif
58 
Definition: MaterialElement.h:62
MaterialElement2D(unsigned, unsigned, unsigned, uvec &&, uvec &&, bool, vector< DOF > &&={})
Definition: MaterialElement.cpp:27
A ShellBase class.
Definition: ShellBase.h:35
mat trans_mat
Definition: ShellBase.h:42
vec & transform_from_local_to_global(vec &) const
Definition: ShellBase.cpp:81
static const uvec m_dof
Definition: ShellBase.h:37
void direction_cosine()
Definition: ShellBase.cpp:63
mat get_local_coordinate() const
Definition: ShellBase.cpp:73
static const uvec p_dof
Definition: ShellBase.h:37
static vec reshuffle(const vec &, const vec &)
Definition: ShellBase.cpp:24
vec & transform_from_global_to_local(vec &) const
Definition: ShellBase.cpp:87