suanPan
Loading...
Searching...
No Matches
T2D2S.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 ******************************************************************************/
32#ifndef T2D2S_H
33#define T2D2S_H
34
36
37class Orientation;
38
39class T2D2S final : public SectionElement1D {
40 static constexpr unsigned t_node = 2, t_dof = 2, t_size = t_dof * t_node;
41
42 const double length = 0.; // length of the element
43
44 unique_ptr<Section> t_section; // section model
45 unique_ptr<Orientation> t_trans; // transformation
46
47 const bool log_strain; // flag to indicate if to use log strain
48public:
49 T2D2S(unsigned, // tag
50 uvec&&, // node tag
51 unsigned, // section tag
52 bool = false, // nonlinear geometry switch
53 bool = true // log strain switch
54 );
55
56 int initialize(const shared_ptr<DomainBase>&) override;
57
58 int update_status() override;
59
60 int commit_status() override;
61 int clear_status() override;
62 int reset_status() override;
63
64 vector<vec> record(OutputType) override;
65
66 void print() override;
67
68#ifdef SUANPAN_VTK
69 void Setup() override;
70 void GetData(vtkSmartPointer<vtkDoubleArray>&, OutputType) override;
71 void SetDeformation(vtkSmartPointer<vtkPoints>&, double) override;
72#endif
73};
74
75#endif
76
OutputType
Definition OutputType.h:21
A Orientation class.
Definition Orientation.h:40
Definition SectionElement.h:50
A T2D2S class.
Definition T2D2S.h:39
void print() override
Definition T2D2S.cpp:86
int clear_status() override
Definition T2D2S.cpp:72
int commit_status() override
Definition T2D2S.cpp:66
int reset_status() override
Definition T2D2S.cpp:78
vector< vec > record(OutputType) override
Definition T2D2S.cpp:84
int initialize(const shared_ptr< DomainBase > &) override
Definition T2D2S.cpp:28
int update_status() override
Definition T2D2S.cpp:42