suanPan
Loading...
Searching...
No Matches
BilinearOrthotropic.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 ******************************************************************************/
29#ifndef BILINEARORTHOTROPIC_H
30#define BILINEARORTHOTROPIC_H
31
33
37
39 [[nodiscard]] double compute_k(const double p_strain) const override { return hardening_modulus >= 0. || p_strain <= -1. / hardening_modulus ? 1. + p_strain * hardening_modulus : 0.; }
40
41 [[nodiscard]] double compute_dk(const double p_strain) const override { return hardening_modulus >= 0. || p_strain <= -1. / hardening_modulus ? hardening_modulus : 0.; }
42
43public:
44 BilinearOrthotropic(const unsigned T, const OrthotropicType TP, vec&& E, vec&& V, vec&& S, const double H, const double R)
46 , NonlinearOrthotropic(T, TP, std::move(E), std::move(V), std::move(S), R) {}
47};
48
50public:
51 BilinearHoffman(const unsigned T, vec&& E, vec&& V, vec&& S, const double H, const double R)
52 : BilinearOrthotropic(T, OrthotropicType::Hoffman, std::move(E), std::move(V), std::move(S), H, R) {}
53
54 unique_ptr<Material> get_copy() override { return std::make_unique<BilinearHoffman>(*this); }
55};
56
58public:
59 BilinearTsaiWu(const unsigned T, vec&& E, vec&& V, vec&& S, const double H, const double R)
60 : BilinearOrthotropic(T, OrthotropicType::TsaiWu, std::move(E), std::move(V), std::move(S), H, R) {}
61
62 unique_ptr<Material> get_copy() override { return std::make_unique<BilinearTsaiWu>(*this); }
63};
64
65#endif
66
Definition BilinearOrthotropic.h:49
BilinearHoffman(const unsigned T, vec &&E, vec &&V, vec &&S, const double H, const double R)
Definition BilinearOrthotropic.h:51
unique_ptr< Material > get_copy() override
Definition BilinearOrthotropic.h:54
The BilinearOrthotropic class.
Definition BilinearOrthotropic.h:38
BilinearOrthotropic(const unsigned T, const OrthotropicType TP, vec &&E, vec &&V, vec &&S, const double H, const double R)
Definition BilinearOrthotropic.h:44
Definition BilinearOrthotropic.h:57
unique_ptr< Material > get_copy() override
Definition BilinearOrthotropic.h:62
BilinearTsaiWu(const unsigned T, vec &&E, vec &&V, vec &&S, const double H, const double R)
Definition BilinearOrthotropic.h:59
The NonlinearOrthotropic class.
Definition NonlinearOrthotropic.h:40
OrthotropicType
Definition NonlinearOrthotropic.h:60
Definition BilinearOrthotropic.h:34
const double hardening_modulus
Definition BilinearOrthotropic.h:35