suanPan
🧮 An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
Loading...
Searching...
No Matches
Substepping.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 SUBSTEPPING_H
29#define SUBSTEPPING_H
30
31#include <Material/Material.h>
33
34class Substepping final : public Material {
35 const unsigned max_iteration;
36
37 const unsigned mat_tag;
38
39 ResourceHolder<Material> trial_mat_obj, current_mat_obj;
40
41public:
43 unsigned, // tag
44 unsigned, // mat tag
45 unsigned // max iteration
46 );
47
48 int initialize(const shared_ptr<DomainBase>&) override;
49
50 unique_ptr<Material> unique_copy() override;
51
52 [[nodiscard]] double get(Parameter) const override;
53
54 [[nodiscard]] const mat& get_initial_damping() const override;
55 [[nodiscard]] const vec& get_initial_history() const override;
56 [[nodiscard]] const mat& get_initial_stiffness() const override;
57
58 const mat& get_current_damping() override;
59 const mat& get_current_secant() override;
60 const mat& get_current_stiffness() override;
61
62 const mat& get_trial_damping() override;
63 const mat& get_trial_secant() override;
64 const mat& get_trial_stiffness() override;
65
66 const vec& get_current_strain() override;
67 const vec& get_current_strain_rate() override;
68 const vec& get_current_stress() override;
69
70 const vec& get_trial_strain() override;
71 const vec& get_trial_strain_rate() override;
72 const vec& get_trial_stress() override;
73
74 void set_initial_history(const vec&) 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 [[nodiscard]] std::vector<vec> record(OutputType) const override;
83
84 void print() override;
85};
86
87#endif
88
OutputType
Definition OutputType.h:23
A Material abstract base class.
Definition Material.h:114
Parameter
Definition Material.h:126
Definition ResourceHolder.h:32
A Substepping material class.
Definition Substepping.h:34
const vec & get_trial_strain_rate() override
Definition Substepping.cpp:75
const mat & get_initial_stiffness() const override
Definition Substepping.cpp:53
const mat & get_initial_damping() const override
Definition Substepping.cpp:49
const vec & get_initial_history() const override
Definition Substepping.cpp:51
const mat & get_trial_damping() override
Definition Substepping.cpp:61
int update_trial_status(const vec &) override
Definition Substepping.cpp:90
int commit_status() override
Definition Substepping.cpp:133
const vec & get_trial_stress() override
Definition Substepping.cpp:77
int clear_status() override
Definition Substepping.cpp:125
const vec & get_trial_strain() override
Definition Substepping.cpp:73
const vec & get_current_strain_rate() override
Definition Substepping.cpp:69
const mat & get_trial_secant() override
Definition Substepping.cpp:63
std::vector< vec > record(OutputType) const override
Definition Substepping.cpp:84
const mat & get_current_damping() override
Definition Substepping.cpp:55
const mat & get_trial_stiffness() override
Definition Substepping.cpp:65
unique_ptr< Material > unique_copy() override
Definition Substepping.cpp:45
int reset_status() override
Definition Substepping.cpp:139
int initialize(const shared_ptr< DomainBase > &) override
Definition Substepping.cpp:27
const mat & get_current_secant() override
Definition Substepping.cpp:57
void set_initial_history(const vec &) override
Definition Substepping.cpp:79
const vec & get_current_strain() override
Definition Substepping.cpp:67
const mat & get_current_stiffness() override
Definition Substepping.cpp:59
const vec & get_current_stress() override
Definition Substepping.cpp:71
void print() override
Definition Substepping.cpp:86
double get(Parameter) const override
Definition Substepping.cpp:47