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