suanPan
BilinearJ2.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 ******************************************************************************/
32#ifndef BILINEARJ2_H
33#define BILINEARJ2_H
34
36
38 const double elastic_modulus; // elastic modulus
39 const double poissons_ratio; // poisson's ratio
40 const double yield_stress; // initial yield stress
41 const double hardening_ratio; // hardening ratio
42 const double beta; // isotropic (1.0) / kinematic (0.0) hardening factor
43};
44
45class BilinearJ2 final : protected DataBilinearJ2, public Material3D {
46 static const double two_third;
47 static const double root_two_third;
48 static const mat unit_dev_tensor;
49
50 const double shear_modulus = elastic_modulus / (2. + 2. * poissons_ratio); // shear modulus
51 const double double_shear = 2. * shear_modulus; // double shear modulus
52 const double square_double_shear = double_shear * double_shear; // double shear modulus squared
53 const double isotropic_modulus = beta * elastic_modulus * hardening_ratio / (1. - hardening_ratio);
54 const double kinematic_modulus = (1. - beta) * elastic_modulus * hardening_ratio / (1. - hardening_ratio);
55
56public:
58 unsigned, // tag
59 double, // elastic modulus
60 double, // poisson's ratio
61 double, // initial yield stress
62 double = 0., // hardening ratio
63 double = 1., // isotropic (1.0) / kinematic (0.0) hardening factor
64 double = 0. // density
65 );
66
67 int initialize(const shared_ptr<DomainBase>&) override;
68
70
71 [[nodiscard]] double get_parameter(ParameterType) const override;
72
73 int update_trial_status(const vec&) override;
74
75 int clear_status() override;
76 int commit_status() override;
77 int reset_status() override;
78
79 void print() override;
80};
81
82#endif
83
ParameterType
Definition: ParameterType.h:21
The BilinearJ2 class defines a bilinear hardening material with mixed hardening (isotropic and kinema...
Definition: BilinearJ2.h:45
int update_trial_status(const vec &) override
Definition: BilinearJ2.cpp:42
BilinearJ2(unsigned, double, double, double, double=0., double=1., double=0.)
Definition: BilinearJ2.cpp:26
void print() override
Definition: BilinearJ2.cpp:100
int initialize(const shared_ptr< DomainBase > &) override
Definition: BilinearJ2.cpp:30
int commit_status() override
Definition: BilinearJ2.cpp:84
int clear_status() override
Definition: BilinearJ2.cpp:76
unique_ptr< Material > get_copy() override
Definition: BilinearJ2.cpp:38
double get_parameter(ParameterType) const override
Definition: BilinearJ2.cpp:40
int reset_status() override
Definition: BilinearJ2.cpp:92
The Material3D class.
Definition: Material3D.h:37
Definition: BilinearJ2.h:37
const double beta
Definition: BilinearJ2.h:42
const double hardening_ratio
Definition: BilinearJ2.h:41
const double poissons_ratio
Definition: BilinearJ2.h:39
const double yield_stress
Definition: BilinearJ2.h:40
const double elastic_modulus
Definition: BilinearJ2.h:38