suanPan
🧮 An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
Loading...
Searching...
No Matches
SGCMS.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 ******************************************************************************/
30#ifndef SGCMS_H
31#define SGCMS_H
32
34
35class SGCMS final : public ShellBase {
36 struct IntegrationPoint final {
38 const double eccentricity, factor;
39 unique_ptr<Material> s_material;
40 SectionIntegrationPoint(double, double, unique_ptr<Material>&&);
46 };
47
48 vec coor;
49 mat BM, BP;
50 std::vector<SectionIntegrationPoint> sec_int_pt;
51 explicit IntegrationPoint(vec&&);
52 };
53
54 static constexpr unsigned s_node = 4, s_dof = 6, s_size = s_dof * s_node;
55
56 static const mat mapping;
57
58 const double thickness;
59
60 std::vector<IntegrationPoint> int_pt;
61
62 static field<mat> form_plate_transformation(const mat&);
63 static mat form_drilling_n(const vec&, const vec&);
64 static mat form_drilling_dn(const vec&, const vec&);
65 static mat form_displacement_dn(const mat&, const mat&);
66
67public:
68 SGCMS(
69 unsigned, // tag
70 uvec&&, // node tag
71 unsigned, // material tag
72 double = 1., // thickness
73 bool = false // non-linear geometry switch
74 );
75
76 int initialize(const shared_ptr<DomainBase>&) override;
77
78 int update_status() override;
79
80 int commit_status() override;
81 int clear_status() override;
82 int reset_status() override;
83
84 [[nodiscard]] std::vector<vec> record(OutputType) const override;
85
86 void print() override;
87
88#ifdef SUANPAN_VTK
89 [[nodiscard]] vtkSmartPointer<vtkCell> GetCell() const override;
90
91 mat GetData(OutputType) override;
92 mat GetDeformation(double) override;
93#endif
94};
95
96#endif
97
OutputType
Definition OutputType.h:23
The DomainBase class is a template.
Definition DomainBase.h:94
A SGCMS shell class.
Definition SGCMS.h:35
int reset_status() override
Definition SGCMS.cpp:348
int clear_status() override
Definition SGCMS.cpp:341
int update_status() override
Definition SGCMS.cpp:275
std::vector< vec > record(OutputType) const override
Definition SGCMS.cpp:355
int initialize(const shared_ptr< DomainBase > &) override
Definition SGCMS.cpp:173
int commit_status() override
Definition SGCMS.cpp:334
void print() override
Definition SGCMS.cpp:362
A ShellBase class.
Definition ShellBase.h:35
unique_ptr< Material > s_material
Definition SGCMS.h:39
const double eccentricity
Definition SGCMS.h:38
const double factor
Definition SGCMS.h:38
SectionIntegrationPoint(SectionIntegrationPoint &&) noexcept=default