suanPan
Loading...
Searching...
No Matches
Bilinear2D.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 ******************************************************************************/
28#ifndef BILINEAR2D_H
29#define BILINEAR2D_H
30
33
34class Bilinear2D final : public Material2D {
35 static const uvec F1, F2;
36
37 const double elastic_modulus;
38 const double poissons_ratio;
39
40 vec current_full_strain;
41 vec trial_full_strain;
42
43 BilinearJ2 base;
44
45 static mat form_stiffness(const mat&);
46
47public:
48 Bilinear2D(unsigned, // tag
49 double, // elastic modulus
50 double, // poisson's ratio
51 double, // initial yield stress
52 double, // hardening ratio
53 double = 1., // isotropic (1.0) / kinematic (0.0) hardening factor
54 PlaneType = PlaneType::S, // plane stress or plane strain
55 double = 0. // density
56 );
57
58 int initialize(const shared_ptr<DomainBase>&) override;
59 void initialize_couple(const shared_ptr<DomainBase>&) override;
60
61 [[nodiscard]] double get_parameter(ParameterType) const override;
62
63 unique_ptr<Material> get_copy() override;
64
65 int update_trial_status(const vec&) override;
66
67 int clear_status() override;
68 int commit_status() override;
69 int reset_status() override;
70
71 void print() override;
72
73 vector<vec> record(OutputType) override;
74};
75
76#endif
77
OutputType
Definition OutputType.h:21
ParameterType
Definition ParameterType.h:21
A Bilinear2D class.
Definition Bilinear2D.h:34
int update_trial_status(const vec &) override
Definition Bilinear2D.cpp:64
vector< vec > record(OutputType) override
Definition Bilinear2D.cpp:124
void initialize_couple(const shared_ptr< DomainBase > &) override
Definition Bilinear2D.cpp:43
unique_ptr< Material > get_copy() override
Definition Bilinear2D.cpp:62
double get_parameter(ParameterType) const override
Definition Bilinear2D.cpp:57
int reset_status() override
Definition Bilinear2D.cpp:109
int commit_status() override
Definition Bilinear2D.cpp:100
int initialize(const shared_ptr< DomainBase > &) override
Definition Bilinear2D.cpp:33
int clear_status() override
Definition Bilinear2D.cpp:91
void print() override
Definition Bilinear2D.cpp:118
The BilinearJ2 class defines a bilinear hardening material with mixed hardening (isotropic and kinema...
Definition BilinearJ2.h:45
The Material2D class defines a isotropic elastic material for plane stress and plane strain problems.
Definition Material2D.h:50
PlaneType
Definition Material2D.h:43