suanPan
DKTS3.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 DKTS3_H
31
#define DKTS3_H
32
33
#include <
Element/Shell/ShellBase.h
>
34
35
class
DKTS3
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 = 3, s_dof = 6, s_size = s_dof * s_node;
55
56
const
double
thickness;
57
const
unsigned
num_ip;
58
59
vector
<IntegrationPoint> int_pt;
60
61
static mat form_coor(const mat&);
62
static field<mat> form_transform(const mat&);
63
64
public:
65
DKTS3
(
66
unsigned
,
// tag
67
uvec&&,
// node tag
68
unsigned
,
// material tag
69
double
= 1.,
// thickness
70
unsigned
= 3,
// number of integration points
71
bool
= false
// non-linear geometry switch
72
);
73
74
int
initialize
(const shared_ptr<
DomainBase
>&) override;
75
76
int
update_status
() override;
77
78
int
commit_status
() override;
79
int
clear_status
() override;
80
int
reset_status
() override;
81
82
vector
<vec>
record
(
OutputType
) override;
83
84
void
print
() override;
85
86
#ifdef SUANPAN_VTK
87
void
Setup()
override
;
88
void
GetData(vtkSmartPointer<vtkDoubleArray>&,
OutputType
)
override
;
89
void
SetDeformation(vtkSmartPointer<vtkPoints>&,
double
)
override
;
90
#endif
91
};
92
93
#endif
94
OutputType
OutputType
Definition:
OutputType.h:23
ShellBase.h
DKTS3
A DKTS3 class.
Definition:
DKTS3.h:35
DKTS3::print
void print() override
Definition:
DKTS3.cpp:268
DKTS3::reset_status
int reset_status() override
Definition:
DKTS3.cpp:256
DKTS3::update_status
int update_status() override
Definition:
DKTS3.cpp:186
DKTS3::record
vector< vec > record(OutputType) override
Definition:
DKTS3.cpp:262
DKTS3::clear_status
int clear_status() override
Definition:
DKTS3.cpp:250
DKTS3::initialize
int initialize(const shared_ptr< DomainBase > &) override
Definition:
DKTS3.cpp:131
DKTS3::commit_status
int commit_status() override
Definition:
DKTS3.cpp:244
DomainBase
The DomainBase class is a template.
Definition:
DomainBase.h:104
ShellBase
A ShellBase class.
Definition:
ShellBase.h:35
unique_ptr< Material >
suanpan::vector
std::vector< T > vector
Definition:
container.h:53
DKTS3::IntegrationPoint::SectionIntegrationPoint
Definition:
DKTS3.h:37
DKTS3::IntegrationPoint::SectionIntegrationPoint::eccentricity
const double eccentricity
Definition:
DKTS3.h:38
DKTS3::IntegrationPoint::SectionIntegrationPoint::s_material
unique_ptr< Material > s_material
Definition:
DKTS3.h:39
DKTS3::IntegrationPoint::SectionIntegrationPoint::factor
const double factor
Definition:
DKTS3.h:38
DKTS3::IntegrationPoint::SectionIntegrationPoint::SectionIntegrationPoint
SectionIntegrationPoint(double, double, unique_ptr< Material > &&)
Definition:
DKTS3.cpp:26
DKTS3::IntegrationPoint::SectionIntegrationPoint::SectionIntegrationPoint
SectionIntegrationPoint(SectionIntegrationPoint &&) noexcept=default
Element
Shell
DKTS3.h
Generated by
1.9.4