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