suanPan
Loading...
Searching...
No Matches
S4.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
******************************************************************************/
30
#ifndef S4_H
31
#define S4_H
32
33
#include <
Element/Shell/ShellBase.h
>
34
35
class
S4
final :
public
ShellBase
{
36
struct
IntegrationPoint final {
37
struct
SectionIntegrationPoint
final {
38
const
double
eccentricity
,
factor
;
39
unique_ptr<Material>
s_material
;
40
SectionIntegrationPoint
(
double
,
double
, unique_ptr<Material>&&);
41
SectionIntegrationPoint
(
const
SectionIntegrationPoint
&);
42
SectionIntegrationPoint
(
SectionIntegrationPoint
&&) noexcept = default;
43
SectionIntegrationPoint
& operator=(const
SectionIntegrationPoint
&) = delete;
44
SectionIntegrationPoint
& operator=(
SectionIntegrationPoint
&&) noexcept = delete;
45
~
SectionIntegrationPoint
() = default;
46
};
47
48
vec coor;
49
mat BM, BP;
50
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
mat penalty_stiffness;
57
58
const
double
thickness;
59
60
vector<IntegrationPoint> int_pt;
61
62
public:
63
S4
(
unsigned
,
// tag
64
uvec&&,
// node tag
65
unsigned
,
// material tag
66
double
= 1.
// thickness
67
);
68
69
int
initialize
(const shared_ptr<
DomainBase
>&) override;
70
71
int
update_status
() override;
72
73
int
commit_status
() override;
74
int
clear_status
() override;
75
int
reset_status
() override;
76
77
vector<vec>
record
(
OutputType
) override;
78
79
void
print
() override;
80
81
#ifdef SUANPAN_VTK
82
void
Setup()
override
;
83
void
GetData(vtkSmartPointer<vtkDoubleArray>&,
OutputType
)
override
;
84
void
SetDeformation(vtkSmartPointer<vtkPoints>&,
double
)
override
;
85
#endif
86
};
87
88
#endif
89
OutputType
OutputType
Definition:
OutputType.h:21
ShellBase.h
DomainBase
The DomainBase class is a template.
Definition:
DomainBase.h:96
S4
A S4 class.
Definition:
S4.h:35
S4::commit_status
int commit_status() override
Definition:
S4.cpp:202
S4::reset_status
int reset_status() override
Definition:
S4.cpp:214
S4::update_status
int update_status() override
Definition:
S4.cpp:156
S4::print
void print() override
Definition:
S4.cpp:226
S4::initialize
int initialize(const shared_ptr< DomainBase > &) override
Definition:
S4.cpp:45
S4::record
vector< vec > record(OutputType) override
Definition:
S4.cpp:220
S4::clear_status
int clear_status() override
Definition:
S4.cpp:208
ShellBase
A ShellBase class.
Definition:
ShellBase.h:35
S4::IntegrationPoint::SectionIntegrationPoint
Definition:
S4.h:37
S4::IntegrationPoint::SectionIntegrationPoint::SectionIntegrationPoint
SectionIntegrationPoint(SectionIntegrationPoint &&) noexcept=default
S4::IntegrationPoint::SectionIntegrationPoint::factor
const double factor
Definition:
S4.h:38
S4::IntegrationPoint::SectionIntegrationPoint::s_material
unique_ptr< Material > s_material
Definition:
S4.h:39
S4::IntegrationPoint::SectionIntegrationPoint::eccentricity
const double eccentricity
Definition:
S4.h:38
Element
Shell
S4.h
Generated by
1.9.5