suanPan
RambergOsgood.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 ******************************************************************************/
28#ifndef RAMBERGOSGOOD_H
29#define RAMBERGOSGOOD_H
30
32
34 const double elastic_modulus;
35 const double yield_stress;
36 const double offset, n;
37};
38
39class RambergOsgood final : protected DataRambergOsgood, public Material1D {
40 static constexpr unsigned max_iteration = 20u;
41
42 const double nm = n - 1.;
43
44public:
46 unsigned, // tag
47 double, // elastic modulus
48 double, // yield stress
49 double = 1., // offset
50 double = 20., // n
51 double = 0. // density
52 );
53
54 int initialize(const shared_ptr<DomainBase>&) override;
55
57
58 int update_trial_status(const vec&) override;
59
60 int clear_status() override;
61 int commit_status() override;
62 int reset_status() override;
63
64 void print() override;
65};
66
67#endif
68
A Material1D class.
Definition: Material1D.h:36
A RambergOsgood material class.
Definition: RambergOsgood.h:39
int update_trial_status(const vec &) override
Definition: RambergOsgood.cpp:35
int commit_status() override
Definition: RambergOsgood.cpp:99
unique_ptr< Material > get_copy() override
Definition: RambergOsgood.cpp:33
int clear_status() override
Definition: RambergOsgood.cpp:91
int reset_status() override
Definition: RambergOsgood.cpp:107
RambergOsgood(unsigned, double, double, double=1., double=20., double=0.)
Definition: RambergOsgood.cpp:21
int initialize(const shared_ptr< DomainBase > &) override
Definition: RambergOsgood.cpp:25
void print() override
Definition: RambergOsgood.cpp:115
Definition: RambergOsgood.h:33
const double n
Definition: RambergOsgood.h:36
const double yield_stress
Definition: RambergOsgood.h:35
const double offset
Definition: RambergOsgood.h:36
const double elastic_modulus
Definition: RambergOsgood.h:34