suanPan
ShellBase.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2024 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
36protected:
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&, const mat&, const mat&);
41
43
44 void direction_cosine();
45 [[nodiscard]] mat get_local_coordinate() const;
46
47 vec& transform_from_local_to_global(vec&) const;
48 vec& transform_from_global_to_local(vec&) const;
49 mat& transform_from_local_to_global(mat&) const;
50
51 mat transform_from_local_to_global(mat&&) const;
52
53 [[nodiscard]] vec transform_from_global_to_local(const vec&) const;
54
55 [[nodiscard]] mat transform_to_global_geometry(const mat&, const vec&, const vec&) const;
56
57public:
59};
60
61#endif
62
Definition: MaterialElement.h:64
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:88
static const uvec m_dof
Definition: ShellBase.h:37
void direction_cosine()
Definition: ShellBase.cpp:59
mat transform_to_global_geometry(const mat &, const vec &, const vec &) const
Definition: ShellBase.cpp:120
mat get_local_coordinate() const
Definition: ShellBase.cpp:80
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:94