suanPan
Loading...
Searching...
No Matches
ConcreteCM.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 ******************************************************************************/
33#ifndef CONCRETECM_H
34#define CONCRETECM_H
35
37
38class ConcreteCM final : public Material1D {
39 enum class Status {
40 NONE,
41 CBACKBONE,
42 TBACKBONE,
43 CUNLOAD,
44 TUNLOAD,
45 CSUBUNLOAD,
46 TSUBUNLOAD,
47 CRELOAD,
48 TRELOAD,
49 CTRANS,
50 TTRANS
51 };
52
53 Status trial_load_status = Status::NONE, current_load_status = Status::NONE;
54
55 const double c_stress, c_strain, t_stress, t_strain;
56
57 const double elastic_modulus, c_m, c_n, t_m, t_n;
58
59 const bool linear_trans;
60
61 [[nodiscard]] podarray<double> compute_compression_backbone(double);
62 [[nodiscard]] podarray<double> compute_tension_backbone(double);
63 [[nodiscard]] podarray<double> compute_compression_unload(double);
64 [[nodiscard]] podarray<double> compute_tension_unload(double);
65 [[nodiscard]] podarray<double> compute_compression_reload(double);
66 [[nodiscard]] podarray<double> compute_tension_reload(double);
67 [[nodiscard]] podarray<double> compute_compression_subunload(double);
68 [[nodiscard]] podarray<double> compute_tension_subunload(double);
69 [[nodiscard]] podarray<double> compute_transition(double, double, double, double, double, double, double) const;
70
71 void update_compression_unload(double);
72 void update_tension_unload(double);
73 void update_connect();
74
75public:
77 unsigned, // tag
78 double, // elastic modulus
79 double, // peak stress in negative
80 double, // crack stress in positive
81 double, // NC
82 double, // NT
83 double = -2E-3, // peak strain in negative
84 double = 1E-4, // crack strain in positive
85 bool = false, // if to use linear transition
86 double = 0. // density
87 );
88
89 int initialize(const shared_ptr<DomainBase>&) override;
90
91 unique_ptr<Material> get_copy() override;
92
93 [[nodiscard]] double get_parameter(ParameterType) const override;
94
95 int update_trial_status(const vec&) override;
96
97 int clear_status() override;
98 int commit_status() override;
99 int reset_status() override;
100
101 void print() override;
102};
103
104#endif
105
ParameterType
Definition ParameterType.h:21
A ConcreteCM material class.
Definition ConcreteCM.h:38
int update_trial_status(const vec &) override
Definition ConcreteCM.cpp:331
int reset_status() override
Definition ConcreteCM.cpp:519
double get_parameter(ParameterType) const override
Definition ConcreteCM.cpp:324
int clear_status() override
Definition ConcreteCM.cpp:501
unique_ptr< Material > get_copy() override
Definition ConcreteCM.cpp:322
int commit_status() override
Definition ConcreteCM.cpp:510
int initialize(const shared_ptr< DomainBase > &) override
Definition ConcreteCM.cpp:314
void print() override
Definition ConcreteCM.cpp:528
A Material1D class.
Definition Material1D.h:36
@ NONE