waves
Basic FE playground
wWake.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 WWAKE_H
18 #define WWAKE_H
19 
20 #include "flow.h"
21 #include "wGroups.h"
22 #include "wTag.h"
23 #include "wElement.h"
24 #include "wNode.h"
25 #include "wWakeElement.h"
26 #include <vector>
27 #include <string>
28 
29 namespace flow
30 {
31 
36 class FLOW_API Wake : public tbox::Groups
37 {
38 public:
39  std::map<tbox::Node *, tbox::Node *> nodMap;
40  std::vector<WakeElement *> wEle;
41 
42  Wake(std::shared_ptr<tbox::MshData> _msh, std::vector<int> const &nos);
43  Wake(std::shared_ptr<tbox::MshData> _msh, std::vector<std::string> const &names);
44  virtual ~Wake();
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 connectSurElements(std::map<tbox::Element *, tbox::Element *> &ssMap);
54  void connectVolElements(tbox::Tag *tagS, tbox::Tag *tagV, std::map<tbox::Element *, tbox::Element *> &svMap);
55  void findNodes(std::map<tbox::Element *, std::vector<std::pair<size_t, tbox::Node *>>> &mapEN);
56 };
57 
58 } // namespace flow
59 
60 #endif //WWAKE_H
FLOW_API
#define FLOW_API
Definition: flow.h:29
flow
Namespace for flow module.
Definition: flow.h:37
flow::Wake::wEle
std::vector< WakeElement * > wEle
Definition: wWake.h:40
wWakeElement.h
flow::Wake
Handle wake boundary condition.
Definition: wWake.h:36
flow.h
flow::Wake::nodMap
std::map< tbox::Node *, tbox::Node * > nodMap
upper to lower surface nodes map
Definition: wWake.h:39