suanPan
🧮 An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
Loading...
Searching...
No Matches
F21.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2026 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 ******************************************************************************/
34#ifndef F21_H
35#define F21_H
36
39
40class F21 final : public SectionElement2D {
41 struct IntegrationPoint final {
42 double coor, weight;
43 unique_ptr<Section> b_section;
44 mat B;
45 IntegrationPoint(double, double, unique_ptr<Section>&&);
46 };
47
48 static constexpr unsigned b_node = 2, b_dof = 3, b_size = b_dof * b_node;
49
50 const unsigned int_pt_num;
51
52 const double length = 0.;
53
54 std::vector<IntegrationPoint> int_pt;
55
56 unique_ptr<Orientation> b_trans;
57
58 mat initial_local_flexibility;
59 mat current_local_flexibility, trial_local_flexibility;
60 vec current_local_deformation, trial_local_deformation;
61 vec current_local_resistance, trial_local_resistance;
62
63public:
64 F21(
65 unsigned, // tag
66 uvec&&, // node tag
67 unsigned, // section tags
68 unsigned = 6, // integration points
69 bool = false // nonlinear geometry switch
70 );
71
72 int initialize(const shared_ptr<DomainBase>&) override;
73
74 int update_status() override;
75
76 int clear_status() override;
77 int commit_status() override;
78 int reset_status() override;
79
80 [[nodiscard]] std::vector<vec> record(OutputType) const override;
81
82 void print() override;
83
84#ifdef SUANPAN_VTK
85 [[nodiscard]] vtkSmartPointer<vtkCell> GetCell() const override;
86
87 mat GetData(OutputType) override;
88 mat GetDeformation(double) override;
89#endif
90};
91
92#endif
93
OutputType
Definition OutputType.h:23
The F21 class.
Definition F21.h:40
int initialize(const shared_ptr< DomainBase > &) override
Definition F21.cpp:40
int clear_status() override
Definition F21.cpp:107
void print() override
Definition F21.cpp:149
int reset_status() override
Definition F21.cpp:129
std::vector< vec > record(OutputType) const override
Definition F21.cpp:140
int update_status() override
Definition F21.cpp:72
int commit_status() override
Definition F21.cpp:118
Definition SectionElement.h:60