suanPan
🧮 An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
Loading...
Searching...
No Matches
UniversalOS.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 ******************************************************************************/
28#ifndef UNIVERSALOS_H
29#define UNIVERSALOS_H
30
32
33class UniversalOS : public StressWrapper {
34public:
36 unsigned, // tag
37 unsigned, // 3D material tag
38 unsigned, // max iteration
39 uvec&&,
40 uvec&&
41 );
42
43 void print() override;
44};
45
46class OS146 final : public UniversalOS {
47public:
48 OS146(
49 unsigned, // tag
50 unsigned, // 3D material tag
51 unsigned // max iteration
52 );
53
54 unique_ptr<Material> unique_copy() override;
55};
56
57class OS146S final : public Material {
58 const unsigned base_tag;
59
60 const double shear_modulus;
61
63
64public:
65 OS146S(
66 unsigned, // tag
67 unsigned, // 3D material tag
68 double // shear modulus
69 );
70
71 int initialize(const shared_ptr<DomainBase>&) override;
72
73 [[nodiscard]] double get(Parameter) const override;
74
75 unique_ptr<Material> unique_copy() 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 [[nodiscard]] std::vector<vec> record(OutputType) const override;
84
85 void print() override;
86};
87
88#endif
89
OutputType
Definition OutputType.h:23
A Material abstract base class.
Definition Material.h:114
Parameter
Definition Material.h:126
Definition UniversalOS.h:46
unique_ptr< Material > unique_copy() override
Definition UniversalOS.cpp:35
Definition UniversalOS.h:57
int clear_status() override
Definition UniversalOS.cpp:72
int reset_status() override
Definition UniversalOS.cpp:86
void print() override
Definition UniversalOS.cpp:95
double get(Parameter) const override
Definition UniversalOS.cpp:57
int commit_status() override
Definition UniversalOS.cpp:79
int initialize(const shared_ptr< DomainBase > &) override
Definition UniversalOS.cpp:42
unique_ptr< Material > unique_copy() override
Definition UniversalOS.cpp:59
std::vector< vec > record(OutputType) const override
Definition UniversalOS.cpp:93
int update_trial_status(const vec &) override
Definition UniversalOS.cpp:61
Definition ResourceHolder.h:32
A StressWrapper class.
Definition StressWrapper.h:37
A UniversalOS class.
Definition UniversalOS.h:33
void print() override
Definition UniversalOS.cpp:25