suanPan
ExpGurson.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  ******************************************************************************/
29 #ifndef EXPGURSON_H
30 #define EXPGURSON_H
31 
32 #include "NonlinearGurson.h"
33 
34 struct DataExpGurson {
35  const double yield_stress, n;
36 };
37 
38 class ExpGurson final : protected DataExpGurson, public NonlinearGurson {
39  static constexpr unsigned max_iteration = 20u;
40 
41  const double para_c = 3. * elastic_modulus / (2. + 2. * poissons_ratio) / yield_stress;
42 
43  [[nodiscard]] vec compute_hardening(double) const override;
44 
45 public:
46  ExpGurson(
47  unsigned, // tag
48  double, // elastic modulus
49  double, // poisson's ratio
50  double, // yield stress
51  double, // n
52  double, // q1
53  double, // q2
54  double, // fn
55  double, // sn
56  double, // en
57  double = 0. // density
58  );
59 
60  unique_ptr<Material> get_copy() override;
61 
62  void print() override;
63 };
64 
65 #endif
66 
The ExpGurson class.
Definition: ExpGurson.h:38
void print() override
Definition: ExpGurson.cpp:55
unique_ptr< Material > get_copy() override
Definition: ExpGurson.cpp:53
ExpGurson(unsigned, double, double, double, double, double, double, double, double, double, double=0.)
Definition: ExpGurson.cpp:20
The NonlinearGurson class.
Definition: NonlinearGurson.h:41
Definition: ExpGurson.h:34
const double yield_stress
Definition: ExpGurson.h:35
const double n
Definition: ExpGurson.h:35
const double poissons_ratio
Definition: NonlinearGurson.h:36
const double elastic_modulus
Definition: NonlinearGurson.h:35