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 unsigned which;
39 
40  const uvec a{which};
41  const uvec b = 1llu == which ? uvec{0, 2} : uvec{0, 1};
42 
43  vec trial_rotation = zeros(a.n_elem);
44  vec current_rotation = zeros(a.n_elem);
45 
46 public:
47  B21E(unsigned, // tag
48  unsigned, // which
49  uvec&&, // node tags
50  unsigned, // section tag
51  unsigned = 6, // integration points
52  bool = false // nonlinear geometry switch
53  );
54 
55  int update_status() override;
56 
57  int commit_status() override;
58  int clear_status() override;
59  int reset_status() override;
60 };
61 
62 #endif
63 
The B21E class.
Definition: B21E.h:34
int clear_status() override
Definition: B21E.cpp:85
B21E(unsigned, unsigned, uvec &&, unsigned, unsigned=6, bool=false)
Definition: B21E.cpp:26
The B21 class.
Definition: B21.h:36
int update_status() override
Definition: B21E.cpp:30
int commit_status() override
Definition: B21E.cpp:78
int reset_status() override
Definition: B21E.cpp:92