suanPan
AFC.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  ******************************************************************************/
28 #ifndef AFC_H
29 #define AFC_H
30 
32 
33 struct DataAFC {
34  const double elastic_modulus;
35  const double t_yield_stress;
36  const double t_hardening;
37  const double t_unloading;
38  const double c_yield_stress;
39  const double c_hardening;
40  const double c_unloading;
41  const double degrade;
42 
45 };
46 
47 class AFC final : DataAFC, public Material1D {
48  static podarray<double> compute_transition(double, double, double, double, double, double, double);
49  void compute_degradation(double, double);
50 
51 public:
52  AFC(unsigned, // unique tag
53  double, // elastic modulus
54  double, // tension yield stress
55  double, // tension hardening modulus
56  double, // tension unloading modulus
57  double, // compression yield stress
58  double, // compression hardening modulus
59  double, // compression unloading modulus
60  double, // degrade parameter
61  double // density
62  );
63 
64  int initialize(const shared_ptr<DomainBase>&) override;
65 
66  unique_ptr<Material> get_copy() override;
67 
68  int update_trial_status(const vec&) override;
69 
70  int clear_status() override;
71  int commit_status() override;
72  int reset_status() override;
73 
74  void print() override;
75 };
76 
77 #endif
78 
A AFC material class.
Definition: AFC.h:47
int update_trial_status(const vec &) override
Definition: AFC.cpp:90
AFC(unsigned, double, double, double, double, double, double, double, double, double)
Definition: AFC.cpp:76
unique_ptr< Material > get_copy() override
Definition: AFC.cpp:88
int commit_status() override
Definition: AFC.cpp:164
int reset_status() override
Definition: AFC.cpp:172
int clear_status() override
Definition: AFC.cpp:156
void print() override
Definition: AFC.cpp:180
int initialize(const shared_ptr< DomainBase > &) override
Definition: AFC.cpp:80
A Material1D class.
Definition: Material1D.h:36
Definition: AFC.h:33
const double t_yield_stress
Definition: AFC.h:35
const double t_unloading
Definition: AFC.h:37
const double c_unloading
Definition: AFC.h:40
const double elastic_modulus
Definition: AFC.h:34
const double c_hardening
Definition: AFC.h:39
const double t_yield_strain
Definition: AFC.h:43
const double c_yield_stress
Definition: AFC.h:38
const double c_yield_strain
Definition: AFC.h:44
const double t_hardening
Definition: AFC.h:36
const double degrade
Definition: AFC.h:41