suanPan
NonlinearGurson1D.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 NONLINEARGURSON1D_H
30 #define NONLINEARGURSON1D_H
31 
33 
35  const double elastic_modulus; // elastic modulus
36  const double poissons_ratio; // poisson's ratio
37 
38  const double q1 = 1., q2 = 1., fn = 0., sn = 1., en = 0.;
39 };
40 
42  static constexpr unsigned max_iteration = 20u;
43 
44  const double bulk = elastic_modulus / (3. - 6. * poissons_ratio); // bulk modulus
45  const double three_bulk = 3. * bulk;
46  const double nine_bulk = 9. * bulk;
47 
48  const double para_b = fn / sn / sqrt(2. * datum::pi);
49 
50  [[nodiscard]] virtual vec compute_hardening(double) const = 0;
51 
52 public:
54  unsigned, // tag
55  double, // elastic modulus
56  double, // poisson's ratio
57  double, // q1
58  double, // q2
59  double, // fn
60  double, // sn
61  double, // en
62  double = 0. // density
63  );
64 
65  int initialize(const shared_ptr<DomainBase>&) override;
66 
67  [[nodiscard]] double get_parameter(ParameterType) const 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  vector<vec> record(OutputType) override;
76 };
77 
78 #endif
79 
OutputType
Definition: OutputType.h:23
ParameterType
Definition: ParameterType.h:21
A Material1D class.
Definition: Material1D.h:36
The NonlinearGurson1D class.
Definition: NonlinearGurson1D.h:41
int update_trial_status(const vec &) override
Definition: NonlinearGurson1D.cpp:36
int reset_status() override
Definition: NonlinearGurson1D.cpp:145
int clear_status() override
Definition: NonlinearGurson1D.cpp:129
int commit_status() override
Definition: NonlinearGurson1D.cpp:137
NonlinearGurson1D(unsigned, double, double, double, double, double, double, double, double=0.)
Definition: NonlinearGurson1D.cpp:22
int initialize(const shared_ptr< DomainBase > &) override
Definition: NonlinearGurson1D.cpp:26
vector< vec > record(OutputType) override
Definition: NonlinearGurson1D.cpp:153
double get_parameter(ParameterType) const override
Definition: NonlinearGurson1D.cpp:34
Definition: NonlinearGurson1D.h:34
const double q2
Definition: NonlinearGurson1D.h:38
const double poissons_ratio
Definition: NonlinearGurson1D.h:36
const double fn
Definition: NonlinearGurson1D.h:38
const double en
Definition: NonlinearGurson1D.h:38
const double q1
Definition: NonlinearGurson1D.h:38
const double elastic_modulus
Definition: NonlinearGurson1D.h:35
const double sn
Definition: NonlinearGurson1D.h:38