suanPan
Loading...
Searching...
No Matches
NonlinearOrthotropic.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2025 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 ******************************************************************************/
31#ifndef NONLINEARORTHOTROPIC_H
32#define NONLINEARORTHOTROPIC_H
33
35
39
41 static constexpr double two_third = 2. / 3.;
42 static const double root_two_third;
43 static constexpr unsigned max_iteration = 20u;
44 static constexpr uword sa{0};
45 static const span sb;
46
47 mat proj_p, proj_q, elastic_p;
48
49 double reference_strain{0.};
50
51 [[nodiscard]] virtual double compute_k(double) const = 0;
52 [[nodiscard]] virtual double compute_dk(double) const = 0;
53
54 auto ortho_inner(const auto& t_stress) const { return .5 * dot(t_stress, proj_p * t_stress) + dot(t_stress, proj_q); }
55
56 [[nodiscard]] int trapezoidal_return();
57 [[nodiscard]] int euler_return();
58
59protected:
60 enum class OrthotropicType {
61 Hoffman,
62 TsaiWu
63 };
64
65public:
67 unsigned, // tag
68 OrthotropicType, // type
69 vec&&, // elastic modulus
70 vec&&, // poissons ratio
71 vec&&, // sigma
72 double // density
73 );
74
75 int initialize(const shared_ptr<DomainBase>&) override;
76
77 int update_trial_status(const vec&) override;
78
79 int clear_status() override;
80 int commit_status() override;
81 int reset_status() override;
82
83 void print() override;
84};
85
87public:
89 unsigned, // tag
90 vec&&, // elastic modulus
91 vec&&, // poissons ratio
92 vec&&, // yield stress
93 double = 0. // density
94 );
95};
96
97#endif
98
The Material3D class.
Definition Material3D.h:35
Definition NonlinearOrthotropic.h:86
The NonlinearOrthotropic class.
Definition NonlinearOrthotropic.h:40
int initialize(const shared_ptr< DomainBase > &) override
Definition NonlinearOrthotropic.cpp:43
OrthotropicType
Definition NonlinearOrthotropic.h:60
int commit_status() override
Definition NonlinearOrthotropic.cpp:254
void print() override
Definition NonlinearOrthotropic.cpp:270
int update_trial_status(const vec &) override
Definition NonlinearOrthotropic.cpp:53
int reset_status() override
Definition NonlinearOrthotropic.cpp:262
int clear_status() override
Definition NonlinearOrthotropic.cpp:246
Definition NonlinearOrthotropic.h:36
const vec yield_stress
Definition NonlinearOrthotropic.h:37
const vec ratio
Definition NonlinearOrthotropic.h:37
const vec modulus
Definition NonlinearOrthotropic.h:37