suanPan
Gap01.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 ******************************************************************************/
33#ifndef GAP01_H
34#define GAP01_H
35
37
38struct DataGap01 {
39 const double elastic_modulus;
40 const double yield_stress;
41 const double gap_strain;
42};
43
44class Gap01 final : protected DataGap01, public Material1D {
45public:
46 Gap01(
47 unsigned, // tag
48 double, // elastic modulus
49 double, // yield stress
50 double = 0., // gap strain
51 double = 0. // density
52 );
53
54 int initialize(const shared_ptr<DomainBase>&) override;
55
57
58 int update_trial_status(const vec&) override;
59
60 int clear_status() override;
61 int commit_status() override;
62 int reset_status() override;
63
64 void print() override;
65};
66
67#endif
68
The Gap01 class defines a gap material. This material does not response to compression,...
Definition: Gap01.h:44
unique_ptr< Material > get_copy() override
Definition: Gap01.cpp:33
void print() override
Definition: Gap01.cpp:89
int update_trial_status(const vec &) override
Definition: Gap01.cpp:35
int initialize(const shared_ptr< DomainBase > &) override
Definition: Gap01.cpp:25
int clear_status() override
Definition: Gap01.cpp:65
int commit_status() override
Definition: Gap01.cpp:73
Gap01(unsigned, double, double, double=0., double=0.)
Definition: Gap01.cpp:21
int reset_status() override
Definition: Gap01.cpp:81
A Material1D class.
Definition: Material1D.h:36
Definition: Gap01.h:38
const double elastic_modulus
Definition: Gap01.h:39
const double yield_stress
Definition: Gap01.h:40
const double gap_strain
Definition: Gap01.h:41