suanPan
Concrete21.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  ******************************************************************************/
35 #ifndef CONCRETE21_H
36 #define CONCRETE21_H
37 
40 
41 class Concrete21 final : public Material2D {
42  ConcreteTsai concrete_major, concrete_minor;
43 
44  const double elastic_modulus;
45  double shear_modulus = 0.;
46 
47 public:
48  Concrete21(
49  unsigned, // tag
50  double, // elastic modulus
51  double, // peak stress in negative
52  double, // crack stress in positive
53  double, // NC
54  double, // NT
55  double, // middle point
56  double, // peak strain in negative
57  double, // crack strain in positive
58  double = 0. // density
59  );
60 
61  int initialize(const shared_ptr<DomainBase>&) override;
62 
63  unique_ptr<Material> get_copy() override;
64 
65  [[nodiscard]] double get_parameter(ParameterType) const override;
66 
67  int update_trial_status(const vec&) override;
68 
69  int clear_status() override;
70  int commit_status() override;
71  int reset_status() override;
72 
73  void print() override;
74 };
75 
76 #endif
77 
ParameterType
Definition: ParameterType.h:21
A Concrete21 material class.
Definition: Concrete21.h:41
double get_parameter(ParameterType) const override
Definition: Concrete21.cpp:41
int update_trial_status(const vec &) override
Definition: Concrete21.cpp:43
Concrete21(unsigned, double, double, double, double, double, double, double, double, double=0.)
Definition: Concrete21.cpp:22
void print() override
Definition: Concrete21.cpp:100
int reset_status() override
Definition: Concrete21.cpp:93
unique_ptr< Material > get_copy() override
Definition: Concrete21.cpp:39
int clear_status() override
Definition: Concrete21.cpp:79
int initialize(const shared_ptr< DomainBase > &) override
Definition: Concrete21.cpp:28
int commit_status() override
Definition: Concrete21.cpp:86
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