suanPan
ConcreteCM.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 ******************************************************************************/
33#ifndef CONCRETECM_H
34#define CONCRETECM_H
35
37
38class ConcreteCM final : public ComplexHysteresis {
39 const double c_stress, c_strain, t_stress, t_strain;
40
41 const double c_m, c_n, t_m, t_n;
42
43 const bool linear_trans;
44
45 [[nodiscard]] podarray<double> compute_compression_backbone(double) override;
46 [[nodiscard]] podarray<double> compute_tension_backbone(double) override;
47 [[nodiscard]] podarray<double> compute_compression_unload(double) override;
48 [[nodiscard]] podarray<double> compute_tension_unload(double) override;
49 [[nodiscard]] podarray<double> compute_compression_reload(double) override;
50 [[nodiscard]] podarray<double> compute_tension_reload(double) override;
51 [[nodiscard]] podarray<double> compute_compression_subunload(double) override;
52 [[nodiscard]] podarray<double> compute_tension_subunload(double) override;
53 [[nodiscard]] podarray<double> compute_transition(double, double, double, double, double, double, double) const;
54
55 void update_compression_unload(double) override;
56 void update_tension_unload(double) override;
57 void update_connect();
58
59public:
61 unsigned, // tag
62 double, // elastic modulus
63 double, // peak stress in negative
64 double, // crack stress in positive
65 double, // NC
66 double, // NT
67 double = -2E-3, // peak strain in negative
68 double = 1E-4, // crack strain in positive
69 bool = false, // if to use linear transition
70 double = 0. // density
71 );
72
74
75 [[nodiscard]] double get_parameter(ParameterType) const override;
76
77 void print() override;
78};
79
80#endif
81
ParameterType
Definition: ParameterType.h:21
A ComplexHysteresis material class.
Definition: ComplexHysteresis.h:34
A ConcreteCM material class.
Definition: ConcreteCM.h:38
ConcreteCM(unsigned, double, double, double, double, double, double=-2E-3, double=1E-4, bool=false, double=0.)
Definition: ConcreteCM.cpp:302
double get_parameter(ParameterType) const override
Definition: ConcreteCM.cpp:316
unique_ptr< Material > get_copy() override
Definition: ConcreteCM.cpp:314
void print() override
Definition: ConcreteCM.cpp:323