suanPan
F21H.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 ******************************************************************************/
29#ifndef F21H_H
30#define F21H_H
31
34
35class F21H final : public SectionElement2D {
36 struct IntegrationPoint final {
37 double coor, weight;
38 unique_ptr<Section> b_section;
39 mat B;
40 IntegrationPoint(double, double, unique_ptr<Section>&&);
41 };
42
43 static constexpr unsigned b_node = 2, b_dof = 3, b_size = b_dof * b_node;
44
45 const double hinge_length;
46
47 const double length = 0.;
48
49 vector<IntegrationPoint> int_pt, elastic_int_pt;
50
51 unique_ptr<Orientation> b_trans;
52
53 mat initial_local_flexibility, elastic_local_flexibility, elastic_section_flexibility;
54
55 mat current_local_flexibility, trial_local_flexibility;
56 vec current_local_deformation, trial_local_deformation;
57 vec current_local_resistance, trial_local_resistance;
58
59public:
60 F21H(
61 unsigned, // tag
62 uvec&&, // node tag
63 unsigned, // section tags
64 double = .2, // hinge length
65 bool = false // nonlinear geometry switch
66 );
67
68 int initialize(const shared_ptr<DomainBase>&) override;
69
70 int update_status() override;
71
72 int clear_status() override;
73 int commit_status() override;
74 int reset_status() override;
75
76 vector<vec> record(OutputType) override;
77
78 void print() override;
79
80#ifdef SUANPAN_VTK
81 void Setup() override;
82 void GetData(vtkSmartPointer<vtkDoubleArray>&, OutputType) override;
83 void SetDeformation(vtkSmartPointer<vtkPoints>&, double) override;
84#endif
85};
86
87#endif
88
OutputType
Definition: OutputType.h:23
The F21H class.
Definition: F21H.h:35
void print() override
Definition: F21H.cpp:178
vector< vec > record(OutputType) override
Definition: F21H.cpp:169
int initialize(const shared_ptr< DomainBase > &) override
Definition: F21H.cpp:39
int reset_status() override
Definition: F21H.cpp:158
int update_status() override
Definition: F21H.cpp:99
int clear_status() override
Definition: F21H.cpp:136
F21H(unsigned, uvec &&, unsigned, double=.2, bool=false)
Definition: F21H.cpp:34
int commit_status() override
Definition: F21H.cpp:147
Definition: SectionElement.h:64