suanPan
Concrete22.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (C) 2017-2024 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  const double elastic_modulus;
41 
42  double shear_modulus = 0., shear_strain = 0.;
43 
44 public:
45  Concrete22(
46  unsigned, // tag
47  double, // elastic modulus
48  double, // peak stress in negative
49  double, // crack stress in positive
50  double, // NC
51  double, // NT
52  double, // middle point
53  double, // peak strain in negative
54  double, // crack strain in positive
55  double, // shear stress
56  double, // shear retention
57  double = 0. // density
58  );
59 
60  int initialize(const shared_ptr<DomainBase>&) override;
61 
62  unique_ptr<Material> get_copy() override;
63 
64  [[nodiscard]] double get_parameter(ParameterType) const override;
65 
66  int update_trial_status(const vec&) override;
67 
68  int clear_status() override;
69  int commit_status() override;
70  int reset_status() override;
71 
72  void print() override;
73 };
74 
75 #endif
76 
ParameterType
Definition: ParameterType.h:21
A Concrete22 material class.
Definition: Concrete22.h:35
unique_ptr< Material > get_copy() override
Definition: Concrete22.cpp:45
int initialize(const shared_ptr< DomainBase > &) override
Definition: Concrete22.cpp:30
int clear_status() override
Definition: Concrete22.cpp:119
double get_parameter(ParameterType) const override
Definition: Concrete22.cpp:47
int commit_status() override
Definition: Concrete22.cpp:127
int reset_status() override
Definition: Concrete22.cpp:135
void print() override
Definition: Concrete22.cpp:143
Concrete22(unsigned, 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:49
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