suanPan
Loading...
Searching...
No Matches
PlaneStrain.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 PLANESTRAIN_H
29#define PLANESTRAIN_H
30
32
33class PlaneStrain final : public Material2D {
34 static const uvec F;
35
36 const uvec FA, FB;
37
38 const unsigned base_tag;
39
40 unique_ptr<Material> base;
41
42public:
43 PlaneStrain(unsigned, // tag
44 unsigned, // 3D material tag
45 unsigned // type
46 );
51 ~PlaneStrain() override = default;
52
53 int initialize(const shared_ptr<DomainBase>&) override;
54
55 [[nodiscard]] double get_parameter(ParameterType) const override;
56
57 unique_ptr<Material> get_copy() override;
58
59 int update_trial_status(const vec&) override;
60
61 int clear_status() override;
62 int commit_status() override;
63 int reset_status() override;
64
65 vector<vec> record(OutputType) override;
66
67 void print() override;
68};
69
70#endif
71
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 PlaneStrain class.
Definition: PlaneStrain.h:33
int initialize(const shared_ptr< DomainBase > &) override
Definition: PlaneStrain.cpp:36
int update_trial_status(const vec &) override
Definition: PlaneStrain.cpp:58
PlaneStrain & operator=(const PlaneStrain &)=delete
int commit_status() override
Definition: PlaneStrain.cpp:80
double get_parameter(ParameterType) const override
Definition: PlaneStrain.cpp:51
int reset_status() override
Definition: PlaneStrain.cpp:87
PlaneStrain & operator=(PlaneStrain &&)=delete
vector< vec > record(OutputType) override
Definition: PlaneStrain.cpp:94
~PlaneStrain() override=default
void print() override
Definition: PlaneStrain.cpp:96
PlaneStrain(PlaneStrain &&)=delete
unique_ptr< Material > get_copy() override
Definition: PlaneStrain.cpp:56
int clear_status() override
Definition: PlaneStrain.cpp:73