suanPan
ArmstrongFrederick1D.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 ******************************************************************************/
36#ifndef ARMSTRONGFREDERICK1D_H
37#define ARMSTRONGFREDERICK1D_H
38
40
42 const double elastic_modulus; // elastic modulus
43 const double yield; // yield stress
44 const double saturated;
45 const double hardening;
46 const double m;
47 const vec a, b;
48};
49
51 static constexpr unsigned max_iteration = 20u;
52
53 const unsigned size = static_cast<unsigned>(a.size());
54
55public:
57 unsigned, // tag
58 double, // elastic modulus
59 double, // yield stress
60 double, // saturated stress
61 double, // linear hardening modulus
62 double, // m
63 vec&&, // a
64 vec&&, // b
65 double = 0. // density
66 );
67
68 int initialize(const shared_ptr<DomainBase>&) override;
69
71
72 [[nodiscard]] double get_parameter(ParameterType) const override;
73
74 int update_trial_status(const vec&) override;
75
76 int clear_status() override;
77 int commit_status() override;
78 int reset_status() override;
79
80 void print() override;
81};
82
83#endif
84
ParameterType
Definition: ParameterType.h:21
The ArmstrongFrederick1D class defines a nonlinear hardening material with mixed hardening (isotropic...
Definition: ArmstrongFrederick1D.h:50
int commit_status() override
Definition: ArmstrongFrederick1D.cpp:119
unique_ptr< Material > get_copy() override
Definition: ArmstrongFrederick1D.cpp:33
int clear_status() override
Definition: ArmstrongFrederick1D.cpp:111
ArmstrongFrederick1D(unsigned, double, double, double, double, double, vec &&, vec &&, double=0.)
Definition: ArmstrongFrederick1D.cpp:21
int initialize(const shared_ptr< DomainBase > &) override
Definition: ArmstrongFrederick1D.cpp:25
void print() override
Definition: ArmstrongFrederick1D.cpp:135
int update_trial_status(const vec &) override
Definition: ArmstrongFrederick1D.cpp:40
int reset_status() override
Definition: ArmstrongFrederick1D.cpp:127
double get_parameter(ParameterType) const override
Definition: ArmstrongFrederick1D.cpp:35
A Material1D class.
Definition: Material1D.h:36
Definition: ArmstrongFrederick1D.h:41
const double m
Definition: ArmstrongFrederick1D.h:46
const vec b
Definition: ArmstrongFrederick1D.h:47
const double elastic_modulus
Definition: ArmstrongFrederick1D.h:42
const double hardening
Definition: ArmstrongFrederick1D.h:45
const double yield
Definition: ArmstrongFrederick1D.h:43
const double saturated
Definition: ArmstrongFrederick1D.h:44
const vec a
Definition: ArmstrongFrederick1D.h:47