suanPan
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>
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:
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
76};
77
78#endif
79
The CustomCDP class.
Definition: CustomCDP.h:50
unique_ptr< Material > get_copy() override
Definition: CustomCDP.cpp:85
CustomCDP(unsigned, unsigned, unsigned, double, double, double, double, double, double, double, double)
Definition: CustomCDP.cpp:54
int initialize(const shared_ptr< DomainBase > &) override
Definition: CustomCDP.cpp:59
The NonlinearCDP class.
Definition: NonlinearCDP.h:54