suanPan
MPF.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 ******************************************************************************/
33#ifndef MPF_H
34#define MPF_H
35
37
38struct DataMPF {
39 const double elastic_modulus; // elastic modulus
40 const double hardening_ratio; // hardening ratio
41 const double yield_stress; // yield stress
42 const double R0, A1, A2, A3, A4; // model parameters
43
44 const bool isotropic_hardening; // isotropic hardening switch
45 const bool constant_radius; // constant radius switch
46
47 const double yield_strain = yield_stress / elastic_modulus; // yield strain
48};
49
50class MPF final : protected DataMPF, public Material1D {
51public:
52 MPF(
53 unsigned, // tag
54 double, // elastic modulus
55 double, // yield stress
56 double = .05, // hardening ratio
57 double = 20., // R0
58 double = 18.5, // A1
59 double = .15, // A2
60 double = .01, // A3
61 double = 7., // A4
62 bool = false, // isotropic hardening switch
63 bool = false, // constant radius switch
64 double = 0. // density
65 );
66
67 int initialize(const shared_ptr<DomainBase>&) override;
68
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
The MPF class.
Definition: MPF.h:50
int reset_status() override
Definition: MPF.cpp:113
int commit_status() override
Definition: MPF.cpp:105
unique_ptr< Material > get_copy() override
Definition: MPF.cpp:33
int clear_status() override
Definition: MPF.cpp:97
void print() override
Definition: MPF.cpp:121
int initialize(const shared_ptr< DomainBase > &) override
Definition: MPF.cpp:25
MPF(unsigned, double, double, double=.05, double=20., double=18.5, double=.15, double=.01, double=7., bool=false, bool=false, double=0.)
Definition: MPF.cpp:21
int update_trial_status(const vec &) override
Definition: MPF.cpp:35
A Material1D class.
Definition: Material1D.h:36
Definition: MPF.h:38
const double hardening_ratio
Definition: MPF.h:40
const double A4
Definition: MPF.h:42
const double R0
Definition: MPF.h:42
const double A2
Definition: MPF.h:42
const double yield_stress
Definition: MPF.h:41
const double yield_strain
Definition: MPF.h:47
const double A3
Definition: MPF.h:42
const bool isotropic_hardening
Definition: MPF.h:44
const bool constant_radius
Definition: MPF.h:45
const double A1
Definition: MPF.h:42
const double elastic_modulus
Definition: MPF.h:39