suanPan
B21E.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  ******************************************************************************/
29 #ifndef B21E_H
30 #define B21E_H
31 
32 #include "B21.h"
33 
34 class B21E final : public B21 {
35  static constexpr unsigned max_iteration = 20u;
36  static constexpr double tolerance = 1E-14;
37 
38  const uvec a, b;
39 
40  vec trial_rotation = zeros(a.n_elem);
41  vec current_rotation = zeros(a.n_elem);
42 
43 public:
44  B21E(
45  unsigned, // tag
46  unsigned, // which
47  uvec&&, // node tags
48  unsigned, // section tag
49  unsigned = 6, // integration points
50  bool = false // nonlinear geometry switch
51  );
52 
53  int update_status() override;
54 
55  int commit_status() override;
56  int clear_status() override;
57  int reset_status() override;
58 };
59 
60 #endif
61 
The B21E class.
Definition: B21E.h:34
int commit_status() override
Definition: B21E.cpp:78
int reset_status() override
Definition: B21E.cpp:88
B21E(unsigned, unsigned, uvec &&, unsigned, unsigned=6, bool=false)
Definition: B21E.cpp:23
int update_status() override
Definition: B21E.cpp:28
int clear_status() override
Definition: B21E.cpp:83
The B21 class.
Definition: B21.h:36