suanPan
Loading...
Searching...
No Matches
Rebar3D.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2023 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
32
33class Rebar3D final : public Material3D {
34 const unsigned tag_x, tag_y, tag_z;
35
36 const double ratio_x, ratio_y, ratio_z;
37
38 const mat trans_mat;
39
40 unique_ptr<Material> rebar_x, rebar_y, rebar_z;
41
42public:
43 Rebar3D(unsigned, // tag
44 unsigned, // material tag along x axis
45 unsigned, // material tag along y axis
46 unsigned, // material tag along z axis
47 double, // reinforcement ratio along x axis
48 double, // reinforcement ratio along y axis
49 double, // reinforcement ratio along z axis
50 double = 0. // inclination
51 );
52 Rebar3D(const Rebar3D&);
53 Rebar3D(Rebar3D&&) = delete;
54 Rebar3D& operator=(const Rebar3D&) = delete;
56 ~Rebar3D() override = default;
57
58 int initialize(const shared_ptr<DomainBase>&) override;
59
60 unique_ptr<Material> get_copy() override;
61
62 int update_trial_status(const vec&) override;
63
64 int clear_status() override;
65 int commit_status() override;
66 int reset_status() override;
67
68 vector<vec> record(OutputType) override;
69};
70
71#endif
72
OutputType
Definition: OutputType.h:21
The Material3D class.
Definition: Material3D.h:37
A Rebar3D material class.
Definition: Rebar3D.h:33
unique_ptr< Material > get_copy() override
Definition: Rebar3D.cpp:61
int update_trial_status(const vec &) override
Definition: Rebar3D.cpp:63
Rebar3D & operator=(Rebar3D &&)=delete
vector< vec > record(OutputType) override
Definition: Rebar3D.cpp:104
Rebar3D(Rebar3D &&)=delete
int commit_status() override
Definition: Rebar3D.cpp:90
~Rebar3D() override=default
int reset_status() override
Definition: Rebar3D.cpp:97
int clear_status() override
Definition: Rebar3D.cpp:83
Rebar3D & operator=(const Rebar3D &)=delete
int initialize(const shared_ptr< DomainBase > &) override
Definition: Rebar3D.cpp:44