waves
Basic FE playground
wKutta.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 WKUTTA_H
18 #define WKUTTA_H
19 
20 #include "flow.h"
21 #include "wGroups.h"
22 #include "wElement.h"
23 #include "wNode.h"
24 #include "wKuttaElement.h"
25 #include <vector>
26 #include <string>
27 
28 namespace flow
29 {
30 
35 class FLOW_API Kutta : public tbox::Groups
36 {
37 public:
38  std::vector<std::pair<tbox::Node *, tbox::Node *>> nodMap;
39  std::vector<std::pair<tbox::Element *, tbox::Element *>> teMap;
40  std::vector<KuttaElement *> kEle;
41 
42  Kutta(std::shared_ptr<tbox::MshData> _msh, std::vector<int> const &nos);
43  Kutta(std::shared_ptr<tbox::MshData> _msh, std::vector<std::string> const &names);
44  virtual ~Kutta();
45 
46 #ifndef SWIG
47  virtual void write(std::ostream &out) const override;
48 #endif
49 
50 private:
51  void connectNodes();
52  void createElements();
53  void connectElements(std::vector<std::pair<tbox::Element *, tbox::Element *>> &svPair, std::vector<std::vector<std::pair<size_t, tbox::Node *>>> &surN, bool uFlag);
54 };
55 
56 } // namespace flow
57 
58 #endif //WKUTTA_H
FLOW_API
#define FLOW_API
Definition: flow.h:29
flow
Namespace for flow module.
Definition: flow.h:37
wKuttaElement.h
flow::Kutta::kEle
std::vector< KuttaElement * > kEle
list of Kutta elements
Definition: wKutta.h:40
flow::Kutta::teMap
std::vector< std::pair< tbox::Element *, tbox::Element * > > teMap
upper to lower trailing edge elements map
Definition: wKutta.h:39
flow::Kutta::nodMap
std::vector< std::pair< tbox::Node *, tbox::Node * > > nodMap
upper to lower trailing edge nodes map
Definition: wKutta.h:38
flow::Kutta
Handle Kutta condition.
Definition: wKutta.h:35
flow.h