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(
44  unsigned, // tag
45  double, // peak stress in negative
46  double, // crack stress in positive
47  double, // MC
48  double, // NC
49  double, // MT
50  double, // NT
51  double, // middle point
52  double, // peak strain in negative
53  double, // crack strain in positive
54  double, // shear stress
55  double, // shear retention
56  double = 0. // density
57  );
58 
59  int initialize(const shared_ptr<DomainBase>&) override;
60 
61  unique_ptr<Material> get_copy() override;
62 
63  [[nodiscard]] double get_parameter(ParameterType) const 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  void print() override;
72 };
73 
74 #endif
75 
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:118
double get_parameter(ParameterType) const override
Definition: Concrete22.cpp:46
int commit_status() override
Definition: Concrete22.cpp:126
int reset_status() override
Definition: Concrete22.cpp:134
void print() override
Definition: Concrete22.cpp:142
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:48
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:43