suanPan
Loading...
Searching...
No Matches
CustomCDP.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 ******************************************************************************/
43#ifndef CUSTOMCDP_H
44#define CUSTOMCDP_H
45
46#include "NonlinearCDP.h"
47#include <Toolbox/Expression.h>
49
50class 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
58public:
59 CustomCDP(unsigned, // tag
60 unsigned, // tension expression tag
61 unsigned, // compression expression tag
62 double, // elastic modulus
63 double, // poissons ratio
64 double, // normalized crack energy (+)
65 double, // normalized crush energy (+)
66 double, // dilatancy parameter
67 double, // biaxial compression strength ratio
68 double, // stiffness recovery
69 double // density
70 );
71
72 int initialize(const shared_ptr<DomainBase>&) override;
73
74 unique_ptr<Material> get_copy() override;
75};
76
77#endif
78
The CustomCDP class.
Definition: CustomCDP.h:50
unique_ptr< Material > get_copy() override
Definition: CustomCDP.cpp:85
int initialize(const shared_ptr< DomainBase > &) override
Definition: CustomCDP.cpp:59
The NonlinearCDP class.
Definition: NonlinearCDP.h:54
Definition: ResourceHolder.h:31