suanPan
Loading...
Searching...
No Matches
TimberPD.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 ******************************************************************************/
29#ifndef TIMBERPD_H
30#define TIMBERPD_H
31
32#include "BilinearHoffman.h"
33
35 const double ini_r_t, b_t, m_t, ini_r_c, b_c, m_c;
36};
37
38class TimberPD final : protected DataTimberPD, public BilinearHoffman {
39 const mat hill_t, hill_c;
40
41 [[nodiscard]] double compute_damage_c(double) const;
42 [[nodiscard]] double compute_damage_t(double) const;
43 [[nodiscard]] double update_damage_t(const vec&, mat&);
44 [[nodiscard]] double update_damage_c(const vec&, mat&);
45
46public:
47 TimberPD(unsigned, // tag
48 vec&&, // elastic modulus
49 vec&&, // poissons ratio
50 vec&&, // sigma
51 vec&&, // hardening
52 double = 0. // density
53 );
54
55 int initialize(const shared_ptr<DomainBase>&) override;
56
57 unique_ptr<Material> get_copy() override;
58
59 int update_trial_status(const vec&) override;
60
61 vector<vec> record(OutputType) override;
62
63 void print() override;
64};
65
66#endif
67
OutputType
Definition OutputType.h:21
The BilinearHoffman class.
Definition BilinearHoffman.h:38
The TimberPD class.
Definition TimberPD.h:38
int initialize(const shared_ptr< DomainBase > &) override
Definition TimberPD.cpp:28
unique_ptr< Material > get_copy() override
Definition TimberPD.cpp:37
void print() override
Definition TimberPD.cpp:113
vector< vec > record(OutputType) override
Definition TimberPD.cpp:105
int update_trial_status(const vec &) override
Definition TimberPD.cpp:39
Definition TimberPD.h:34
const double ini_r_c
Definition TimberPD.h:35
const double ini_r_t
Definition TimberPD.h:35
const double m_t
Definition TimberPD.h:35
const double b_t
Definition TimberPD.h:35
const double b_c
Definition TimberPD.h:35
const double m_c
Definition TimberPD.h:35