suanPan
Loading...
Searching...
No Matches
C3D4.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 C3D4_H
33#define C3D4_H
34
36
37class C3D4 final : public MaterialElement3D {
38 static constexpr unsigned c_node = 4, c_dof = 3, c_size = c_dof * c_node;
39
40 const double volume = 0.;
41
42 unique_ptr<Material> c_material;
43
44 mat pn_pxyz, strain_mat;
45
46public:
47 C3D4(unsigned, // tag
48 uvec&&, // node tag
49 unsigned, // material tag
50 bool = false // nonlinear geometry switch
51 );
52
53 int initialize(const shared_ptr<DomainBase>&) override;
54
55 int update_status() override;
56
57 int commit_status() override;
58 int clear_status() override;
59 int reset_status() override;
60
61 vector<vec> record(OutputType) override;
62
63 void print() override;
64
65#ifdef SUANPAN_VTK
66 void Setup() override;
67 void GetData(vtkSmartPointer<vtkDoubleArray>&, OutputType) override;
68 void SetDeformation(vtkSmartPointer<vtkPoints>&, double) override;
69#endif
70};
71
72#endif
73
OutputType
Definition OutputType.h:21
The C3D4 class defines C3D4 elements with non-linear support.
Definition C3D4.h:37
void print() override
Definition C3D4.cpp:143
int initialize(const shared_ptr< DomainBase > &) override
Definition C3D4.cpp:28
int update_status() override
Definition C3D4.cpp:70
int reset_status() override
Definition C3D4.cpp:139
int commit_status() override
Definition C3D4.cpp:135
vector< vec > record(OutputType) override
Definition C3D4.cpp:141
int clear_status() override
Definition C3D4.cpp:137
Definition MaterialElement.h:74