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