suanPan
Concrete22.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  ******************************************************************************/
29 #ifndef CONCRETE22_H
30 #define CONCRETE22_H
31 
34 
35 class Concrete22 final : public Material2D {
36  ConcreteTsai concrete_major, concrete_minor;
37 
38  const double shear_stress, shear_retention;
39 
40  double shear_modulus = 0., shear_strain = 0.;
41 
42 public:
43  Concrete22(unsigned, // tag
44  double, // peak stress in negative
45  double, // crack stress in positive
46  double, // MC
47  double, // NC
48  double, // MT
49  double, // NT
50  double, // middle point
51  double, // peak strain in negative
52  double, // crack strain in positive
53  double, // shear stress
54  double, // shear retention
55  double = 0. // density
56  );
57 
58  int initialize(const shared_ptr<DomainBase>&) override;
59 
60  unique_ptr<Material> get_copy() override;
61 
62  [[nodiscard]] double get_parameter(ParameterType) const override;
63 
64  int update_trial_status(const vec&) override;
65 
66  int clear_status() override;
67  int commit_status() override;
68  int reset_status() override;
69 
70  void print() override;
71 };
72 
73 #endif
74 
ParameterType
Definition: ParameterType.h:21
A Concrete22 material class.
Definition: Concrete22.h:35
unique_ptr< Material > get_copy() override
Definition: Concrete22.cpp:44
int initialize(const shared_ptr< DomainBase > &) override
Definition: Concrete22.cpp:29
int clear_status() override
Definition: Concrete22.cpp:121
double get_parameter(ParameterType) const override
Definition: Concrete22.cpp:46
int commit_status() override
Definition: Concrete22.cpp:129
int reset_status() override
Definition: Concrete22.cpp:137
void print() override
Definition: Concrete22.cpp:145
Concrete22(unsigned, double, double, double, double, double, double, double, double, double, double, double, double=0.)
Definition: Concrete22.cpp:22
int update_trial_status(const vec &) override
Definition: Concrete22.cpp:51
A ConcreteTsai material class.
Definition: ConcreteTsai.h:34
The Material2D class defines a isotropic elastic material for plane stress and plane strain problems.
Definition: Material2D.h:50