suanPan
DKT3.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 DKT3_H
31#define DKT3_H
32
34
35class DKT3 final : public MaterialElement2D {
36 struct IntegrationPoint final {
38 const double eccentricity, factor;
44 SectionIntegrationPoint& operator=(SectionIntegrationPoint&&) noexcept = delete;
46 };
47
48 vec coor;
49 mat strain_mat;
51 explicit IntegrationPoint(vec&&);
52 };
53
54 static constexpr unsigned p_node = 3, p_dof = 3, p_size = p_dof * p_node;
55
56 const double thickness;
57 const unsigned num_section_ip;
58
59 vector<IntegrationPoint> int_pt;
60
61 static mat form_coor(const mat&);
62 static field<mat> form_transform(const mat&);
63
64public:
65 DKT3(
66 unsigned, // element tag
67 uvec&&, // node tag
68 unsigned, // material tag
69 double, // thickness
70 unsigned = 3 // integration points along thickness
71 );
72
73 int initialize(const shared_ptr<DomainBase>&) override;
74
75 int update_status() override;
76
77 int clear_status() override;
78 int commit_status() override;
79 int reset_status() override;
80
81 vector<vec> record(OutputType) override;
82
83 void print() override;
84
85#ifdef SUANPAN_VTK
86 void Setup() override;
87 void GetData(vtkSmartPointer<vtkDoubleArray>&, OutputType) override;
88 void SetDeformation(vtkSmartPointer<vtkPoints>&, double) override;
89#endif
90};
91
92#endif
93
OutputType
Definition: OutputType.h:23
A DKT3 plate class.
Definition: DKT3.h:35
int commit_status() override
Definition: DKT3.cpp:185
void print() override
Definition: DKT3.cpp:203
int initialize(const shared_ptr< DomainBase > &) override
Definition: DKT3.cpp:115
vector< vec > record(OutputType) override
Definition: DKT3.cpp:197
int update_status() override
Definition: DKT3.cpp:162
int clear_status() override
Definition: DKT3.cpp:179
int reset_status() override
Definition: DKT3.cpp:191
The DomainBase class is a template.
Definition: DomainBase.h:104
Definition: MaterialElement.h:64
std::vector< T > vector
Definition: container.h:53
SectionIntegrationPoint(SectionIntegrationPoint &&) noexcept=default
unique_ptr< Material > p_material
Definition: DKT3.h:39
const double eccentricity
Definition: DKT3.h:38
SectionIntegrationPoint(double, double, unique_ptr< Material > &&)
Definition: DKT3.cpp:24
const double factor
Definition: DKT3.h:38