suanPan
Loading...
Searching...
No Matches
NonlinearCamClay.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 ******************************************************************************/
38#ifndef NONLINEARCAMCLAY_H
39#define NONLINEARCAMCLAY_H
40
42
44 const double elastic_modulus; // elastic modulus
45 const double poissons_ratio; // poisson's ratio
46 const double square_beta; // beta squared
47 const double m; // radius ratio
48 const double pt; // tensile yield hydrostatic stress
49};
50
52 static constexpr unsigned max_iteration = 20;
53 static const double sqrt_three_two;
54 static const mat unit_dev_tensor;
55
56 const double shear = elastic_modulus / (2. + 2. * poissons_ratio);
57 const double bulk = elastic_modulus / (3. - 6. * poissons_ratio);
58 const double six_shear = 3. * elastic_modulus / (1. + poissons_ratio);
59 const double square_m = m * m;
60
61 [[nodiscard]] virtual double compute_a(double) const = 0;
62 [[nodiscard]] virtual double compute_da(double) const = 0;
63
64public:
65 NonlinearCamClay(unsigned, // tag
66 double, // elastic modulus
67 double, // poisson's ratio
68 double, // beta
69 double, // m
70 double, // pt
71 double = 0. // density
72 );
73
74 int initialize(const shared_ptr<DomainBase>&) override;
75
76 [[nodiscard]] double get_parameter(ParameterType) const override;
77
78 int update_trial_status(const vec&) override;
79
80 int clear_status() override;
81 int commit_status() override;
82 int reset_status() override;
83
84 void print() override;
85};
86
87#endif
88
ParameterType
Definition: ParameterType.h:21
The Material3D class.
Definition: Material3D.h:37
The NonlinearCamClay class.
Definition: NonlinearCamClay.h:51
double get_parameter(ParameterType) const override
Definition: NonlinearCamClay.cpp:36
void print() override
Definition: NonlinearCamClay.cpp:140
int clear_status() override
Definition: NonlinearCamClay.cpp:116
int reset_status() override
Definition: NonlinearCamClay.cpp:132
int initialize(const shared_ptr< DomainBase > &) override
Definition: NonlinearCamClay.cpp:28
int update_trial_status(const vec &) override
Definition: NonlinearCamClay.cpp:45
int commit_status() override
Definition: NonlinearCamClay.cpp:124
Definition: NonlinearCamClay.h:43
const double m
Definition: NonlinearCamClay.h:47
const double pt
Definition: NonlinearCamClay.h:48
const double elastic_modulus
Definition: NonlinearCamClay.h:44
const double square_beta
Definition: NonlinearCamClay.h:46
const double poissons_ratio
Definition: NonlinearCamClay.h:45