suanPan
🧮 An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
Loading...
Searching...
No Matches
Prestrain.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 ******************************************************************************/
32#ifndef PRESTRAIN_H
33#define PRESTRAIN_H
34
38
39class Prestrain final : public Material1D {
40 const unsigned base_tag, amplitude_tag;
41
42 const double magnitude;
43
44 const double* analysis_time{};
45
47
49
50 [[nodiscard]] double get_prestrain() const;
51
52public:
54 unsigned, // tag
55 unsigned, // base tag
56 unsigned, // amplitude tag
57 double // magnitude
58 );
59
60 int initialize(const shared_ptr<DomainBase>&) override;
61
62 unique_ptr<Material> unique_copy() override;
63
64 int update_trial_status(const vec&) override;
65 int update_trial_status(const vec&, const vec&) override;
66
67 int clear_status() override;
68 int commit_status() override;
69 int reset_status() override;
70
71 [[nodiscard]] std::vector<vec> record(OutputType) const override;
72
73 void print() override;
74};
75
76#endif
OutputType
Definition OutputType.h:23
A Material1D class.
Definition Material1D.h:34
A Prestrain material class.
Definition Prestrain.h:39
Definition ResourceHolder.h:32
int reset_status() override
Definition Prestrain.cpp:98
int clear_status() override
Definition Prestrain.cpp:80
unique_ptr< Material > unique_copy() override
Definition Prestrain.cpp:54
std::vector< vec > record(OutputType) const override
Definition Prestrain.cpp:107
int commit_status() override
Definition Prestrain.cpp:89
void print() override
Definition Prestrain.cpp:109
int update_trial_status(const vec &) override
Definition Prestrain.cpp:56
int initialize(const shared_ptr< DomainBase > &) override
Definition Prestrain.cpp:32