suanPan
SteelBRB.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 ******************************************************************************/
31#ifndef STEELBRB_H
32#define STEELBRB_H
33
35
37 const double elastic_modulus = 2E5; // elastic modulus
38 const double yield_stress = 400.; // yield stress
39 const double plastic_modulus = 2E3;
40 const double t_saturated_stress = 660.;
41 const double t_scalar = .2;
42 const double t_exponent = .6;
43 const double c_saturated_stress = 450.;
44 const double c_scalar = .15;
45 const double c_exponent = .4;
46};
47
48class SteelBRB final : protected DataSteelBRB, public Material1D {
49 static constexpr unsigned max_iteration = 20u;
50
51 const double s_modulus = -elastic_modulus - plastic_modulus;
52 const double c_const = (c_saturated_stress - yield_stress) / c_scalar;
53 const double t_const = (t_saturated_stress - yield_stress) / t_scalar;
54
55 [[nodiscard]] vec compute_t_yield_stress(double) const;
56 [[nodiscard]] vec compute_c_yield_stress(double) const;
57
58public:
60 unsigned, // tag
61 vec&& // parameter
62 );
63
64 int initialize(const shared_ptr<DomainBase>&) override;
65
67
68 int update_trial_status(const vec&) override;
69
70 int clear_status() override;
71 int commit_status() override;
72 int reset_status() override;
73
74 void print() override;
75};
76
77#endif
78
A Material1D class.
Definition: Material1D.h:36
The SteelBRB class.
Definition: SteelBRB.h:48
unique_ptr< Material > get_copy() override
Definition: SteelBRB.cpp:52
int initialize(const shared_ptr< DomainBase > &) override
Definition: SteelBRB.cpp:44
int reset_status() override
Definition: SteelBRB.cpp:123
int update_trial_status(const vec &) override
Definition: SteelBRB.cpp:54
SteelBRB(unsigned, vec &&)
Definition: SteelBRB.cpp:40
int commit_status() override
Definition: SteelBRB.cpp:115
void print() override
Definition: SteelBRB.cpp:131
int clear_status() override
Definition: SteelBRB.cpp:107
Definition: SteelBRB.h:36
const double elastic_modulus
Definition: SteelBRB.h:37
const double c_exponent
Definition: SteelBRB.h:45
const double c_scalar
Definition: SteelBRB.h:44
const double t_saturated_stress
Definition: SteelBRB.h:40
const double t_exponent
Definition: SteelBRB.h:42
const double plastic_modulus
Definition: SteelBRB.h:39
const double yield_stress
Definition: SteelBRB.h:38
const double t_scalar
Definition: SteelBRB.h:41
const double c_saturated_stress
Definition: SteelBRB.h:43