suanPan
🧮 An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
Loading...
Searching...
No Matches
Balloon1D.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 BALLOON1D_H
29#define BALLOON1D_H
30
33
35 const double elastic; // elastic modulus
36 const double kr; // plastic strain split ratio
37 const unsigned zr_size; // memory size
39
41
42 const std::vector<BalloonSaturation> bfc, bac, bna, bnd;
43};
44
45class Balloon1D final : protected DataBalloon1D, protected BalloonBase, public Material1D {
46 static constexpr unsigned max_iteration = 20u;
47
48 BalloonBuffer current_zr{zr_size}, trial_zr{zr_size};
49
50 [[nodiscard]] double initial_check(double);
51
52 [[nodiscard]] auto compute_isotropic_bound(double, double, double);
53 [[nodiscard]] auto compute_kinematic_bound(double, double, double);
54
55public:
57 unsigned, // tag
58 DataBalloon1D&&, // data
59 double = 0. // density
60 );
61
62 int initialize(const shared_ptr<DomainBase>&) override;
63
64 unique_ptr<Material> unique_copy() override;
65
66 int update_trial_status(const vec&) override;
67
68 int clear_status() override;
69 int commit_status() override;
70 int reset_status() override;
71
72 void print() override;
73};
74
75#endif
76
A Balloon1D material class.
Definition Balloon1D.h:45
unique_ptr< Material > unique_copy() override
Definition Balloon1D.cpp:132
int update_trial_status(const vec &) override
Definition Balloon1D.cpp:134
int initialize(const shared_ptr< DomainBase > &) override
Definition Balloon1D.cpp:124
int reset_status() override
Definition Balloon1D.cpp:267
void print() override
Definition Balloon1D.cpp:276
int commit_status() override
Definition Balloon1D.cpp:258
int clear_status() override
Definition Balloon1D.cpp:249
Definition BalloonUtil.h:96
Definition BalloonUtil.h:67
Definition BalloonUtil.h:24
Type
Definition BalloonUtil.h:33
A Material1D class.
Definition Material1D.h:34
Definition Balloon1D.h:34
const double kr
Definition Balloon1D.h:36
const BalloonBuffer::Type zr_type
Definition Balloon1D.h:38
const BalloonBound bound_fc
Definition Balloon1D.h:40
const BalloonBound bound_u
Definition Balloon1D.h:40
const unsigned zr_size
Definition Balloon1D.h:37
const std::vector< BalloonSaturation > bna
Definition Balloon1D.h:42
const BalloonBound bound_ac
Definition Balloon1D.h:40
const std::vector< BalloonSaturation > bfc
Definition Balloon1D.h:42
const std::vector< BalloonSaturation > bnd
Definition Balloon1D.h:42
const std::vector< BalloonSaturation > bac
Definition Balloon1D.h:42
const BalloonBound bound_am
Definition Balloon1D.h:40
const double elastic
Definition Balloon1D.h:35
const BalloonBound bound_fm
Definition Balloon1D.h:40