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 : protected 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(
53  unsigned, // unique tag
54  double, // elastic modulus
55  double, // tension yield stress
56  double, // tension hardening modulus
57  double, // tension unloading modulus
58  double, // compression yield stress
59  double, // compression hardening modulus
60  double, // compression unloading modulus
61  double, // degrade parameter
62  double // density
63  );
64 
65  int initialize(const shared_ptr<DomainBase>&) override;
66 
67  unique_ptr<Material> get_copy() override;
68 
69  int update_trial_status(const vec&) override;
70 
71  int clear_status() override;
72  int commit_status() override;
73  int reset_status() override;
74 
75  void print() override;
76 };
77 
78 #endif
79 
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