suanPan
EB21.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 ELASTICB21_H
30#define ELASTICB21_H
31
34
35class EB21 final : public MaterialElement1D {
36 static constexpr unsigned b_node = 2, b_dof = 3, b_size = b_dof * b_node;
37
38 const double area, moment_inertia;
39
40 unique_ptr<Material> b_material;
41 unique_ptr<Orientation> b_trans;
42
43 mat local_stiff;
44
45public:
46 EB21(
47 unsigned, // tag
48 uvec&&, // node tag
49 double, // area
50 double, // moment of inertia
51 unsigned, // material tags
52 bool = false // nonlinear geometry switch
53 );
54
55 int initialize(const shared_ptr<DomainBase>&) override;
56
57 int update_status() override;
58
59 int commit_status() override;
60 int clear_status() override;
61 int reset_status() override;
62
63 vector<vec> record(OutputType) override;
64
65 void print() override;
66
67#ifdef SUANPAN_VTK
68 void Setup() override;
69 void GetData(vtkSmartPointer<vtkDoubleArray>&, OutputType) override;
70 void SetDeformation(vtkSmartPointer<vtkPoints>&, double) override;
71#endif
72};
73
74#endif
75
OutputType
Definition: OutputType.h:23
The ElasticB21 class.
Definition: EB21.h:35
int clear_status() override
Definition: EB21.cpp:69
int initialize(const shared_ptr< DomainBase > &) override
Definition: EB21.cpp:30
void print() override
Definition: EB21.cpp:86
vector< vec > record(OutputType) override
Definition: EB21.cpp:79
EB21(unsigned, uvec &&, double, double, unsigned, bool=false)
Definition: EB21.cpp:24
int commit_status() override
Definition: EB21.cpp:64
int update_status() override
Definition: EB21.cpp:51
int reset_status() override
Definition: EB21.cpp:74
Definition: MaterialElement.h:51
Definition: shape.h:50