suanPan
ConcreteTable.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 ******************************************************************************/
29#ifndef CONCRETETABLE_H
30#define CONCRETETABLE_H
31
33
34class ConcreteTable final : public SimpleHysteresis {
35 mat c_table, t_table;
36
37 const double c_strain, t_strain;
38
39 [[nodiscard]] podarray<double> compute_compression_initial_reverse() const override;
40 [[nodiscard]] podarray<double> compute_tension_initial_reverse() const override;
41 [[nodiscard]] podarray<double> compute_compression_backbone(double) const override;
42 [[nodiscard]] podarray<double> compute_tension_backbone(double) const override;
43 [[nodiscard]] double compute_compression_residual(double, double) const override;
44 [[nodiscard]] double compute_tension_residual(double, double) const override;
45
46public:
48 unsigned, // tag
49 mat&&, // compression table
50 mat&&, // tension table
51 double, // middle point
52 double = 0. // density
53 );
54
55 int initialize(const shared_ptr<DomainBase>&) override;
56
57 [[nodiscard]] double get_parameter(ParameterType) const override;
58
60};
61
62#endif
63
ParameterType
Definition: ParameterType.h:21
A ConcreteTable material class.
Definition: ConcreteTable.h:34
int initialize(const shared_ptr< DomainBase > &) override
Definition: ConcreteTable.cpp:101
unique_ptr< Material > get_copy() override
Definition: ConcreteTable.cpp:114
double get_parameter(ParameterType) const override
Definition: ConcreteTable.cpp:107
ConcreteTable(unsigned, mat &&, mat &&, double, double=0.)
Definition: ConcreteTable.cpp:94
A SimpleHysteresis material class.
Definition: SimpleHysteresis.h:40