suanPan
ConcreteExp.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 CONCRETEEXP_H
30#define CONCRETEEXP_H
31
33
35 const double elastic_modulus;
36 const double f_t, f_c, a_t, a_c, b_t, b_c;
37};
38
39class ConcreteExp final : protected DataConcreteExp, public SimpleHysteresis {
40 static constexpr unsigned max_iteration = 20u;
41
42 [[nodiscard]] podarray<double> compute_compression_initial_reverse() const override;
43 [[nodiscard]] podarray<double> compute_tension_initial_reverse() const override;
44 [[nodiscard]] podarray<double> compute_compression_backbone(double) const override;
45 [[nodiscard]] podarray<double> compute_tension_backbone(double) const override;
46 [[nodiscard]] double compute_compression_residual(double, double) const override;
47 [[nodiscard]] double compute_tension_residual(double, double) const override;
48
49public:
51 unsigned, // tag
52 double, // elastic modulus
53 double, // f_t
54 double, // a_t
55 double, // g_t
56 double, // f_c
57 double, // a_c
58 double, // g_c
59 double, // middle point
60 double = 0. // density
61 );
62
63 int initialize(const shared_ptr<DomainBase>&) override;
64
65 [[nodiscard]] double get_parameter(ParameterType) const override;
66
68};
69
70#endif
71
ParameterType
Definition: ParameterType.h:21
A ConcreteExp material class.
Definition: ConcreteExp.h:39
unique_ptr< Material > get_copy() override
Definition: ConcreteExp.cpp:131
int initialize(const shared_ptr< DomainBase > &) override
Definition: ConcreteExp.cpp:118
double get_parameter(ParameterType) const override
Definition: ConcreteExp.cpp:124
ConcreteExp(unsigned, double, double, double, double, double, double, double, double, double=0.)
Definition: ConcreteExp.cpp:114
A SimpleHysteresis material class.
Definition: SimpleHysteresis.h:40
Definition: ConcreteExp.h:34
const double b_c
Definition: ConcreteExp.h:36
const double f_t
Definition: ConcreteExp.h:36
const double a_t
Definition: ConcreteExp.h:36
const double b_t
Definition: ConcreteExp.h:36
const double elastic_modulus
Definition: ConcreteExp.h:35
const double a_c
Definition: ConcreteExp.h:36
const double f_c
Definition: ConcreteExp.h:36