suanPan
B3DOSC.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  ******************************************************************************/
36 #ifndef B3DOSC_H
37 #define B3DOSC_H
38 
39 #include "B3DC.h"
40 
41 class B3DOSC : public B3DC {
42 protected:
43  void update_transformation() override;
44 
45  [[nodiscard]] unsigned nodal_size() const override;
46 
47 public:
48  B3DOSC(unsigned, vec&&);
49 
50  [[nodiscard]] OrientationType get_orientation_type() const override;
51 
52  unique_ptr<Orientation> get_copy() override;
53 
54  [[nodiscard]] vec to_local_vec(const vec&) const override;
55  [[nodiscard]] mat to_global_geometry_mat(const mat&) const override;
56 };
57 
58 #endif
59 
A B3DC class.
Definition: B3DC.h:41
A B3DOSC class.
Definition: B3DOSC.h:41
B3DOSC(unsigned, vec &&)
Definition: B3DOSC.cpp:22
unsigned nodal_size() const override
Definition: B3DOSC.cpp:118
mat to_global_geometry_mat(const mat &) const override
Definition: B3DOSC.cpp:124
vec to_local_vec(const vec &) const override
transform anything from global to local system e.g., disp -> disp, vel -> vel, acc -> acc,...
Definition: B3DOSC.cpp:122
unique_ptr< Orientation > get_copy() override
Definition: B3DOSC.cpp:120
void update_transformation() override
Definition: B3DOSC.cpp:30
OrientationType get_orientation_type() const override
Definition: B3DOSC.cpp:28
OrientationType
Definition: Orientation.h:38