suanPan
Loading...
Searching...
No Matches
ArmstrongFrederick1D.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2023 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 = 20;
52
53 const unsigned size = static_cast<unsigned>(a.size());
54
55public:
56 ArmstrongFrederick1D(unsigned, // tag
57 double, // elastic modulus
58 double, // yield stress
59 double, // saturated stress
60 double, // linear hardening modulus
61 double, // m
62 vec&&, // a
63 vec&&, // b
64 double = 0. // density
65 );
66
67 int initialize(const shared_ptr<DomainBase>&) override;
68
69 unique_ptr<Material> get_copy() override;
70
71 [[nodiscard]] double get_parameter(ParameterType) const override;
72
73 int update_trial_status(const vec&) override;
74
75 int clear_status() override;
76 int commit_status() override;
77 int reset_status() override;
78
79 vector<vec> record(OutputType) override;
80
81 void print() override;
82};
83
84#endif
85
OutputType
Definition: OutputType.h:21
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:117
unique_ptr< Material > get_copy() override
Definition: ArmstrongFrederick1D.cpp:33
int clear_status() override
Definition: ArmstrongFrederick1D.cpp:109
int initialize(const shared_ptr< DomainBase > &) override
Definition: ArmstrongFrederick1D.cpp:25
void print() override
Definition: ArmstrongFrederick1D.cpp:139
int update_trial_status(const vec &) override
Definition: ArmstrongFrederick1D.cpp:41
vector< vec > record(OutputType) override
Definition: ArmstrongFrederick1D.cpp:133
int reset_status() override
Definition: ArmstrongFrederick1D.cpp:125
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