suanPan
B21E.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  ******************************************************************************/
29 #ifndef B21E_H
30 #define B21E_H
31 
32 #include "B21.h"
33 
34 class B21E final : public B21 {
35  static const unsigned max_iteration;
36  static const double tolerance;
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(unsigned, // tag
45  unsigned, // which
46  uvec&&, // node tags
47  unsigned, // section tag
48  unsigned = 6, // integration points
49  bool = false // nonlinear geometry switch
50  );
51 
52  int update_status() override;
53 
54  int commit_status() override;
55  int clear_status() override;
56  int reset_status() override;
57 };
58 
59 #endif
60 
The B21E class.
Definition: B21E.h:34
int commit_status() override
Definition: B21E.cpp:79
int reset_status() override
Definition: B21E.cpp:89
B21E(unsigned, unsigned, uvec &&, unsigned, unsigned=6, bool=false)
Definition: B21E.cpp:26
int update_status() override
Definition: B21E.cpp:31
int clear_status() override
Definition: B21E.cpp:84
The B21 class.
Definition: B21.h:36