suanPan
Loading...
Searching...
No Matches
BilinearJ2.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 ******************************************************************************/
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 : 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:
57 BilinearJ2(unsigned, // tag
58 double, // elastic modulus
59 double, // poisson's ratio
60 double, // initial yield stress
61 double = 0., // hardening ratio
62 double = 1., // isotropic (1.0) / kinematic (0.0) hardening factor
63 double = 0. // density
64 );
65
66 int initialize(const shared_ptr<DomainBase>&) override;
67
68 unique_ptr<Material> get_copy() override;
69
70 [[nodiscard]] double get_parameter(ParameterType) const override;
71
72 int update_trial_status(const vec&) override;
73
74 int clear_status() override;
75 int commit_status() override;
76 int reset_status() override;
77
78 vector<vec> record(OutputType) override;
79
80 void print() override;
81};
82
83#endif
84
OutputType
Definition: OutputType.h:21
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:49
void print() override
Definition: BilinearJ2.cpp:115
int initialize(const shared_ptr< DomainBase > &) override
Definition: BilinearJ2.cpp:30
int commit_status() override
Definition: BilinearJ2.cpp:91
int clear_status() override
Definition: BilinearJ2.cpp:83
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:99
vector< vec > record(OutputType) override
Definition: BilinearJ2.cpp:107
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