waves
Basic FE playground
wKuttaElement.h
Go to the documentation of this file.
1 /*
2  * Copyright 2022 University of Liège
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef WKUTTAELEMENT_H
18 #define WKUTTAELEMENT_H
19 
20 #include "flow.h"
21 #include "wObject.h"
22 #include "wElement.h"
23 #include <vector>
24 
25 namespace flow
26 {
27 
44 class FLOW_API KuttaElement : public fwk::wObject
45 {
46 public:
47  size_t no;
48  tbox::Element *surE;
49  tbox::Element *volE;
50 
51  size_t nRow;
52  size_t nCol;
53  size_t nDim;
54 
55  std::vector<std::pair<size_t, tbox::Node *>> teN;
56  int sign;
57 
58  KuttaElement(size_t _no, tbox::Element *&_surE, tbox::Element *&_volE, std::vector<std::pair<size_t, tbox::Node *>> &_teN, int _sign);
59 
60 #ifndef SWIG
61  virtual void write(std::ostream &out) const override;
62 #endif
63 };
64 
65 } // namespace flow
66 
67 #endif //WKUTTAELEMENT_H
FLOW_API
#define FLOW_API
Definition: flow.h:29
flow
Namespace for flow module.
Definition: flow.h:37
flow::KuttaElement::nCol
size_t nCol
number of columns in stiffness matrix
Definition: wKuttaElement.h:52
flow::KuttaElement::nDim
size_t nDim
dimension of volume element
Definition: wKuttaElement.h:53
flow::KuttaElement::no
size_t no
ID.
Definition: wKuttaElement.h:47
flow::KuttaElement::sign
int sign
+1 if upper element, -1 if lower element
Definition: wKuttaElement.h:56
flow::KuttaElement
Kutta finite element.
Definition: wKuttaElement.h:44
flow::KuttaElement::nRow
size_t nRow
number of rows in stiffness matrix
Definition: wKuttaElement.h:51
flow::KuttaElement::teN
std::vector< std::pair< size_t, tbox::Node * > > teN
Map of local node indices and trailing edge nodes.
Definition: wKuttaElement.h:55
flow::KuttaElement::surE
tbox::Element * surE
Surface element.
Definition: wKuttaElement.h:48
flow::KuttaElement::volE
tbox::Element * volE
Connected volume element.
Definition: wKuttaElement.h:49
flow.h