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