suanPan
Rebar3D.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2024 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 REBAR3D_H
29#define REBAR3D_H
30
33
34class Rebar3D final : public Material3D {
35 const unsigned tag_x, tag_y, tag_z;
36
37 const double ratio_x, ratio_y, ratio_z;
38
39 const mat trans_mat;
40
41 ResourceHolder<Material> rebar_x, rebar_y, rebar_z;
42
43public:
44 Rebar3D(
45 unsigned, // tag
46 unsigned, // material tag along x axis
47 unsigned, // material tag along y axis
48 unsigned, // material tag along z axis
49 double, // reinforcement ratio along x axis
50 double, // reinforcement ratio along y axis
51 double, // reinforcement ratio along z axis
52 double = 0. // inclination
53 );
54
55 int initialize(const shared_ptr<DomainBase>&) override;
56
58
59 int update_trial_status(const vec&) override;
60
61 int clear_status() override;
62 int commit_status() override;
63 int reset_status() override;
64
65 vector<vec> record(OutputType) override;
66};
67
68#endif
69
OutputType
Definition: OutputType.h:23
The Material3D class.
Definition: Material3D.h:37
A Rebar3D material class.
Definition: Rebar3D.h:34
unique_ptr< Material > get_copy() override
Definition: Rebar3D.cpp:48
int update_trial_status(const vec &) override
Definition: Rebar3D.cpp:50
vector< vec > record(OutputType) override
Definition: Rebar3D.cpp:91
Rebar3D(unsigned, unsigned, unsigned, unsigned, double, double, double, double=0.)
Definition: Rebar3D.cpp:22
int commit_status() override
Definition: Rebar3D.cpp:77
int reset_status() override
Definition: Rebar3D.cpp:84
int clear_status() override
Definition: Rebar3D.cpp:70
int initialize(const shared_ptr< DomainBase > &) override
Definition: Rebar3D.cpp:31