suanPan
ExpJ2.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
******************************************************************************/
42
#ifndef EXPJ2_H
43
#define EXPJ2_H
44
45
#include "
NonlinearJ2.h
"
46
47
struct
DataExpJ2
{
48
const
double
yield_stress
;
49
const
double
a
,
b
;
50
};
51
52
class
ExpJ2
final :
protected
DataExpJ2
,
public
NonlinearJ2
{
53
[[nodiscard]]
double
compute_k(
double
)
const override
;
54
[[nodiscard]]
double
compute_dk(
double
)
const override
;
55
[[nodiscard]]
double
compute_h(
double
)
const override
;
56
[[nodiscard]]
double
compute_dh(
double
)
const override
;
57
58
public
:
59
ExpJ2
(
60
unsigned
,
// tag
61
double
,
// elastic modulus
62
double
,
// poisson's ratio
63
double
,
// yield stress
64
double
,
// a
65
double
,
// b
66
double
= 0.
// density
67
);
68
69
unique_ptr<Material>
get_copy
()
override
;
70
71
void
print
()
override
;
72
};
73
74
#endif
75
NonlinearJ2.h
ExpJ2
The ExpJ2 class.
Definition:
ExpJ2.h:52
ExpJ2::print
void print() override
Definition:
ExpJ2.cpp:40
ExpJ2::ExpJ2
ExpJ2(unsigned, double, double, double, double, double, double=0.)
Definition:
ExpJ2.cpp:34
ExpJ2::get_copy
unique_ptr< Material > get_copy() override
Definition:
ExpJ2.cpp:38
NonlinearJ2
The NonlinearJ2 class.
Definition:
NonlinearJ2.h:41
unique_ptr< Material >
DataExpJ2
Definition:
ExpJ2.h:47
DataExpJ2::a
const double a
Definition:
ExpJ2.h:49
DataExpJ2::b
const double b
Definition:
ExpJ2.h:49
DataExpJ2::yield_stress
const double yield_stress
Definition:
ExpJ2.h:48
Material
Material3D
vonMises
ExpJ2.h
Generated by
1.9.4