suanPan
BilinearDP.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 ******************************************************************************/
29#ifndef BILINEARDP_H
30#define BILINEARDP_H
31
33
35 const double cohesion, cohesion_slope;
36 const double critical = -cohesion / cohesion_slope;
37};
38
39class BilinearDP final : protected DataBilinearDP, public NonlinearDruckerPrager {
40 [[nodiscard]] double compute_c(double) const override;
41 [[nodiscard]] double compute_dc(double) const override;
42
43public:
45 unsigned, // tag
46 double, // elastic modulus
47 double, // poisson's ratio
48 double, // eta_yield (hydrostatic stress related)
49 double, // eta_flow (dilatancy angle related)
50 double, // xi (cohesion related)
51 double, // cohesion
52 double, // cohesion slope
53 double = 0. // density
54 );
55
57
58 void print() override;
59};
60
61#endif
62
The BilinearDP class.
Definition: BilinearDP.h:39
void print() override
Definition: BilinearDP.cpp:30
unique_ptr< Material > get_copy() override
Definition: BilinearDP.cpp:28
BilinearDP(unsigned, double, double, double, double, double, double, double, double=0.)
Definition: BilinearDP.cpp:24
The NonlinearDruckerPrager class.
Definition: NonlinearDruckerPrager.h:45
Definition: BilinearDP.h:34
const double cohesion
Definition: BilinearDP.h:35
const double critical
Definition: BilinearDP.h:36
const double cohesion_slope
Definition: BilinearDP.h:35