suanPan
🧮 An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
Loading...
Searching...
No Matches
ComplexHysteresis.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2026 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 COMPLEXHYSTERESIS_H
30#define COMPLEXHYSTERESIS_H
31
33
35private:
36 [[nodiscard]] virtual pod2 compute_compression_backbone(double) = 0;
37 [[nodiscard]] virtual pod2 compute_tension_backbone(double) = 0;
38 [[nodiscard]] virtual pod2 compute_compression_unload(double) = 0;
39 [[nodiscard]] virtual pod2 compute_tension_unload(double) = 0;
40 [[nodiscard]] virtual pod2 compute_compression_reload(double) = 0;
41 [[nodiscard]] virtual pod2 compute_tension_reload(double) = 0;
42 [[nodiscard]] virtual pod2 compute_compression_subunload(double) = 0;
43 [[nodiscard]] virtual pod2 compute_tension_subunload(double) = 0;
44
45 virtual void update_compression_unload(double) = 0;
46 virtual void update_tension_unload(double) = 0;
47
48protected:
49 enum class Status {
50 NONE,
53 CUNLOAD,
54 TUNLOAD,
57 CRELOAD,
58 TRELOAD,
59 CTRANS,
60 TTRANS
61 };
62
64
65 const double elastic_modulus;
66
67public:
69 unsigned, // tag
70 double, // elastic modulus
71 double = 0. // density
72 );
73
74 int initialize(const shared_ptr<DomainBase>&) override;
75
76 int update_trial_status(const vec&) override;
77
78 int clear_status() override;
79 int commit_status() override;
80 int reset_status() override;
81};
82
83#endif
84
A ComplexHysteresis material class.
Definition ComplexHysteresis.h:34
int update_trial_status(const vec &) override
Definition ComplexHysteresis.cpp:32
int commit_status() override
Definition ComplexHysteresis.cpp:211
Status current_load_status
Definition ComplexHysteresis.h:63
const double elastic_modulus
Definition ComplexHysteresis.h:65
Status
Definition ComplexHysteresis.h:49
int clear_status() override
Definition ComplexHysteresis.cpp:202
Status trial_load_status
Definition ComplexHysteresis.h:63
int reset_status() override
Definition ComplexHysteresis.cpp:220
int initialize(const shared_ptr< DomainBase > &) override
Definition ComplexHysteresis.cpp:24
A Material1D class.
Definition Material1D.h:34
std::array< double, 2 > pod2
Definition Material.h:34