suanPan
Loading...
Searching...
No Matches
NonlinearGurson1D.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 ******************************************************************************/
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 const unsigned max_iteration;
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
52public:
53 NonlinearGurson1D(unsigned, // tag
54 double, // elastic modulus
55 double, // poisson's ratio
56 double, // q1
57 double, // q2
58 double, // fn
59 double, // sn
60 double, // en
61 double = 0. // density
62 );
63
64 int initialize(const shared_ptr<DomainBase>&) override;
65
66 [[nodiscard]] double get_parameter(ParameterType) const 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 vector<vec> record(OutputType) override;
75};
76
77#endif
78
OutputType
Definition: OutputType.h:21
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:44
int reset_status() override
Definition: NonlinearGurson1D.cpp:151
int clear_status() override
Definition: NonlinearGurson1D.cpp:135
int commit_status() override
Definition: NonlinearGurson1D.cpp:143
int initialize(const shared_ptr< DomainBase > &) override
Definition: NonlinearGurson1D.cpp:28
vector< vec > record(OutputType) override
Definition: NonlinearGurson1D.cpp:159
double get_parameter(ParameterType) const override
Definition: NonlinearGurson1D.cpp:36
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