suanPan
Loading...
Searching...
No Matches
CustomCDP.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
******************************************************************************/
43
#ifndef CUSTOMCDP_H
44
#define CUSTOMCDP_H
45
46
#include "
NonlinearCDP.h
"
47
#include <
Toolbox/Expression.h
>
48
#include <
Toolbox/ResourceHolder.h
>
49
50
class
CustomCDP
final :
public
NonlinearCDP
{
51
const
unsigned
t_tag, c_tag;
52
53
ResourceHolder<Expression> t_expression, c_expression;
54
55
[[nodiscard]] podarray<double> compute_tension_backbone(
double
)
const override
;
56
[[nodiscard]] podarray<double> compute_compression_backbone(
double
)
const override
;
57
58
public
:
59
CustomCDP
(
60
unsigned
,
// tag
61
unsigned
,
// tension expression tag
62
unsigned
,
// compression expression tag
63
double
,
// elastic modulus
64
double
,
// poissons ratio
65
double
,
// normalized crack energy (+)
66
double
,
// normalized crush energy (+)
67
double
,
// dilatancy parameter
68
double
,
// biaxial compression strength ratio
69
double
,
// stiffness recovery
70
double
// density
71
);
72
73
int
initialize
(
const
shared_ptr<DomainBase>&)
override
;
74
75
unique_ptr<Material>
get_copy
()
override
;
76
};
77
78
#endif
79
Expression.h
NonlinearCDP.h
ResourceHolder.h
CustomCDP
The CustomCDP class.
Definition
CustomCDP.h:50
CustomCDP::get_copy
unique_ptr< Material > get_copy() override
Definition
CustomCDP.cpp:85
CustomCDP::CustomCDP
CustomCDP(unsigned, unsigned, unsigned, double, double, double, double, double, double, double, double)
Definition
CustomCDP.cpp:54
CustomCDP::initialize
int initialize(const shared_ptr< DomainBase > &) override
Definition
CustomCDP.cpp:59
NonlinearCDP
The NonlinearCDP class.
Definition
NonlinearCDP.h:54
Material
Material3D
Concrete
CustomCDP.h
Generated by
1.10.0