suanPan
Loading...
Searching...
No Matches
PlaneStress.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 ******************************************************************************/
28#ifndef PLANESTRESS_H
29#define PLANESTRESS_H
30
32
33class PlaneStress final : public Material2D {
34 static const uvec F1, F2;
35
36 const unsigned base_tag;
37
38 const unsigned max_iteration;
39
40 const bool use_full_matrix;
41
42 unique_ptr<Material> base;
43
44 vec trial_full_strain, current_full_strain;
45
46 static mat form_stiffness(const mat&);
47
48public:
49 PlaneStress(unsigned, // tag
50 unsigned, // 3D material tag
51 unsigned = 1, // max iteration
52 bool = false);
57 ~PlaneStress() override = default;
58
59 int initialize(const shared_ptr<DomainBase>&) override;
60
61 [[nodiscard]] double get_parameter(ParameterType) const override;
62
63 unique_ptr<Material> get_copy() override;
64
65 int update_trial_status(const vec&) override;
66
67 int clear_status() override;
68 int commit_status() override;
69 int reset_status() override;
70
71 vector<vec> record(OutputType) override;
72
73 void print() override;
74};
75
76#endif
77
OutputType
Definition: OutputType.h:21
ParameterType
Definition: ParameterType.h:21
The Material2D class defines a isotropic elastic material for plane stress and plane strain problems.
Definition: Material2D.h:50
A PlaneStress class.
Definition: PlaneStress.h:33
int commit_status() override
Definition: PlaneStress.cpp:136
unique_ptr< Material > get_copy() override
Definition: PlaneStress.cpp:75
double get_parameter(ParameterType) const override
Definition: PlaneStress.cpp:70
vector< vec > record(OutputType) override
Definition: PlaneStress.cpp:152
int reset_status() override
Definition: PlaneStress.cpp:144
~PlaneStress() override=default
int update_trial_status(const vec &) override
Definition: PlaneStress.cpp:77
PlaneStress & operator=(PlaneStress &&)=delete
PlaneStress(PlaneStress &&)=delete
PlaneStress & operator=(const PlaneStress &)=delete
int initialize(const shared_ptr< DomainBase > &) override
Definition: PlaneStress.cpp:55
int clear_status() override
Definition: PlaneStress.cpp:125
void print() override
Definition: PlaneStress.cpp:154