suanPan
ExpJ2.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  ******************************************************************************/
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 : 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(unsigned, // tag
60  double, // elastic modulus
61  double, // poisson's ratio
62  double, // yield stress
63  double, // a
64  double, // b
65  double = 0. // density
66  );
67 
68  unique_ptr<Material> get_copy() override;
69 
70  void print() override;
71 };
72 
73 #endif
74 
The ExpJ2 class.
Definition: ExpJ2.h:52
void print() override
Definition: ExpJ2.cpp:40
ExpJ2(unsigned, double, double, double, double, double, double=0.)
Definition: ExpJ2.cpp:34
unique_ptr< Material > get_copy() override
Definition: ExpJ2.cpp:38
The NonlinearJ2 class.
Definition: NonlinearJ2.h:41
Definition: ExpJ2.h:47
const double a
Definition: ExpJ2.h:49
const double b
Definition: ExpJ2.h:49
const double yield_stress
Definition: ExpJ2.h:48