suanPan
BilinearOO.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 BILINEAROO_H
29#define BILINEAROO_H
30
32
34 const double elastic_modulus;
35
36 const double t_strain;
37 const double t_hardening;
38 const double c_strain;
39 const double c_hardening;
40};
41
42class BilinearOO final : protected DataBilinearOO, public OriginOriented {
43 const double t_stress = elastic_modulus * t_strain;
44 const double c_stress = elastic_modulus * c_strain;
45
46 [[nodiscard]] podarray<double> compute_tension_backbone(double) const override;
47 [[nodiscard]] podarray<double> compute_compression_backbone(double) const override;
48
49public:
51 int, // tag
52 double, // elastic modulus
53 double, // tension yield strain
54 double, // tension hardening ratio
55 double, // compression yield strain
56 double, // compression hardening ratio
57 double // density
58 );
59
60 int initialize(const shared_ptr<DomainBase>&) override;
61
63
64 void print() override;
65};
66
67#endif
68
A BilinearOO material class.
Definition: BilinearOO.h:42
int initialize(const shared_ptr< DomainBase > &) override
Definition: BilinearOO.cpp:50
unique_ptr< Material > get_copy() override
Definition: BilinearOO.cpp:56
BilinearOO(int, double, double, double, double, double, double)
Definition: BilinearOO.cpp:46
void print() override
Definition: BilinearOO.cpp:58
A OriginOriented material class.
Definition: OriginOriented.h:33
Definition: BilinearOO.h:33
const double c_hardening
Definition: BilinearOO.h:39
const double t_strain
Definition: BilinearOO.h:36
const double c_strain
Definition: BilinearOO.h:38
const double elastic_modulus
Definition: BilinearOO.h:34
const double t_hardening
Definition: BilinearOO.h:37