suanPan
Loading...
Searching...
No Matches
NonlinearHoffman.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 ******************************************************************************/
31#ifndef NONLINEARHOFFMAN_H
32#define NONLINEARHOFFMAN_H
33
35
37 const vec modulus, ratio;
38
40
41 double C1 = 0., C2 = 0., C3 = 0., C4 = 0., C5 = 0., C6 = 0., C7 = 0., C8 = 0., C9 = 0.;
42};
43
45 static const double four_third;
46 static const double root_two_third;
47 static const unsigned max_iteration;
48
49 [[nodiscard]] virtual double compute_k(double) const = 0;
50 [[nodiscard]] virtual double compute_dk(double) const = 0;
51
52 [[nodiscard]] double compute_yield_function(const vec&) const;
53
54public:
55 NonlinearHoffman(unsigned, // tag
56 vec&&, // elastic modulus
57 vec&&, // poissons ratio
58 vec&&, // sigma
59 double = 0. // density
60 );
61
62 int initialize(const shared_ptr<DomainBase>&) override;
63
64 [[nodiscard]] double get_parameter(ParameterType) const override;
65
66 int update_trial_status(const vec&) override;
67
68 int clear_status() override;
69 int commit_status() override;
70 int reset_status() override;
71
72 void print() override;
73};
74
75#endif
76
ParameterType
Definition: ParameterType.h:21
The Material3D class.
Definition: Material3D.h:37
The NonlinearHoffman class.
Definition: NonlinearHoffman.h:44
int commit_status() override
Definition: NonlinearHoffman.cpp:144
int clear_status() override
Definition: NonlinearHoffman.cpp:136
double get_parameter(ParameterType) const override
Definition: NonlinearHoffman.cpp:72
void print() override
Definition: NonlinearHoffman.cpp:160
int update_trial_status(const vec &) override
Definition: NonlinearHoffman.cpp:77
int reset_status() override
Definition: NonlinearHoffman.cpp:152
int initialize(const shared_ptr< DomainBase > &) override
Definition: NonlinearHoffman.cpp:62
Definition: NonlinearHoffman.h:36
mat inv_stiffness
Definition: NonlinearHoffman.h:39
double C1
Definition: NonlinearHoffman.h:41
double C4
Definition: NonlinearHoffman.h:41
double C8
Definition: NonlinearHoffman.h:41
const vec ratio
Definition: NonlinearHoffman.h:37
double C2
Definition: NonlinearHoffman.h:41
double C7
Definition: NonlinearHoffman.h:41
double C6
Definition: NonlinearHoffman.h:41
double C9
Definition: NonlinearHoffman.h:41
mat proj_a
Definition: NonlinearHoffman.h:39
double C5
Definition: NonlinearHoffman.h:41
double C3
Definition: NonlinearHoffman.h:41
mat proj_b
Definition: NonlinearHoffman.h:39
const vec modulus
Definition: NonlinearHoffman.h:37