suanPan
MooneyRivlin.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (C) 2017-2022 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  ******************************************************************************/
31 #ifndef MOONEYRIVLIN_H
32 #define MOONEYRIVLIN_H
33 
35 
37  const double K;
38  const double A10, A01;
39 };
40 
41 class MooneyRivlin final : DataMooneyRivlin, public Material3D {
42  static const vec weight;
43  static const vec I1E;
44  static const mat I2EE;
45  static const double one_three, two_three, four_three, five_three, eight_nine;
46 
47 public:
48  MooneyRivlin(unsigned, // tag
49  double, // bulk modulus
50  double = 80, // a10
51  double = 20, // a01
52  double = 0. // density
53  );
54 
55  int initialize(const shared_ptr<DomainBase>&) override;
56 
57  unique_ptr<Material> get_copy() override;
58 
59  int update_trial_status(const vec&) override;
60 
61  int clear_status() override;
62  int commit_status() override;
63  int reset_status() override;
64 
65  void print() override;
66 };
67 
68 #endif
69 
The Material3D class.
Definition: Material3D.h:37
The MooneyRivlin class defines a Mooney-Rivlin hyperelastic material for 3D problems.
Definition: MooneyRivlin.h:41
int initialize(const shared_ptr< DomainBase > &) override
Definition: MooneyRivlin.cpp:34
int commit_status() override
Definition: MooneyRivlin.cpp:113
int update_trial_status(const vec &) override
Definition: MooneyRivlin.cpp:52
int clear_status() override
Definition: MooneyRivlin.cpp:104
int reset_status() override
Definition: MooneyRivlin.cpp:120
MooneyRivlin(unsigned, double, double=80, double=20, double=0.)
Definition: MooneyRivlin.cpp:30
unique_ptr< Material > get_copy() override
Definition: MooneyRivlin.cpp:49
void print() override
Definition: MooneyRivlin.cpp:127
Definition: MooneyRivlin.h:36
const double A01
Definition: MooneyRivlin.h:38
const double K
Definition: MooneyRivlin.h:37
const double A10
Definition: MooneyRivlin.h:38