suanPan
ArmstrongFrederick1D.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (C) 2017-2025 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 hardening; // linear isotropic hardening modulus
45  const double saturation; // saturation stress
46  const double ms; // saturation rate
47  const double memory; // strain memory ratio
48  const double reduction; // isotropic hardening reduction
49  const double mr; // isotropic hardening reduction rate
50  const vec a, b;
51 };
52 
53 class ArmstrongFrederick1D final : protected DataArmstrongFrederick1D, public Material1D {
54  static constexpr unsigned max_iteration = 20u;
55 
56  const unsigned size = static_cast<unsigned>(a.size());
57 
58 public:
60  unsigned, // tag
61  DataArmstrongFrederick1D&&, // material data
62  double = 0. // density
63  );
64 
65  int initialize(const shared_ptr<DomainBase>&) override;
66 
67  unique_ptr<Material> get_copy() override;
68 
69  [[nodiscard]] double get_parameter(ParameterType) const override;
70 
71  int update_trial_status(const vec&) override;
72 
73  int clear_status() override;
74  int commit_status() override;
75  int reset_status() override;
76 
77  void print() override;
78 };
79 
80 #endif
81 
ParameterType
Definition: ParameterType.h:21
The ArmstrongFrederick1D class defines a nonlinear hardening material with mixed hardening (isotropic...
Definition: ArmstrongFrederick1D.h:53
int commit_status() override
Definition: ArmstrongFrederick1D.cpp:136
unique_ptr< Material > get_copy() override
Definition: ArmstrongFrederick1D.cpp:32
int clear_status() override
Definition: ArmstrongFrederick1D.cpp:128
int initialize(const shared_ptr< DomainBase > &) override
Definition: ArmstrongFrederick1D.cpp:24
void print() override
Definition: ArmstrongFrederick1D.cpp:152
int update_trial_status(const vec &) override
Definition: ArmstrongFrederick1D.cpp:39
ArmstrongFrederick1D(unsigned, DataArmstrongFrederick1D &&, double=0.)
Definition: ArmstrongFrederick1D.cpp:20
int reset_status() override
Definition: ArmstrongFrederick1D.cpp:144
double get_parameter(ParameterType) const override
Definition: ArmstrongFrederick1D.cpp:34
A Material1D class.
Definition: Material1D.h:36
Definition: ArmstrongFrederick1D.h:41
const double reduction
Definition: ArmstrongFrederick1D.h:48
const double saturation
Definition: ArmstrongFrederick1D.h:45
const vec b
Definition: ArmstrongFrederick1D.h:50
const double elastic_modulus
Definition: ArmstrongFrederick1D.h:42
const double hardening
Definition: ArmstrongFrederick1D.h:44
const double mr
Definition: ArmstrongFrederick1D.h:49
const double yield
Definition: ArmstrongFrederick1D.h:43
const double ms
Definition: ArmstrongFrederick1D.h:46
const double memory
Definition: ArmstrongFrederick1D.h:47
const vec a
Definition: ArmstrongFrederick1D.h:50