waves
Basic FE playground
wBlowing.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 WBLOWING_H
18 #define WBLOWING_H
19 
20 #include "flow.h"
21 #include "wGroup.h"
22 #include "wF0El.h"
23 #include <vector>
24 
25 namespace flow
26 {
27 
32 class FLOW_API Blowing : public tbox::Group
33 {
34 public:
35  std::vector<tbox::Node *> nodes;
36 #ifndef SWIG
37  std::vector<std::pair<tbox::Element *, F0ElC *>> uE;
38 #endif
39 
40  Blowing(std::shared_ptr<tbox::MshData> _msh, int nos);
41  Blowing(std::shared_ptr<tbox::MshData> _msh, std::string const &names);
42  virtual ~Blowing();
43 
44  void setU(size_t i, double ue);
45 
46 #ifndef SWIG
47  virtual void write(std::ostream &out) const override;
48 #endif
49 
50 private:
51  void create();
52 };
53 
54 } // namespace flow
55 
56 #endif //WBLOWING_H
flow::Blowing::nodes
std::vector< tbox::Node * > nodes
nodes of Blowing
Definition: wBlowing.h:35
FLOW_API
#define FLOW_API
Definition: flow.h:29
wF0El.h
flow::Blowing
Manage blowing boundary condition.
Definition: wBlowing.h:32
flow
Namespace for flow module.
Definition: flow.h:37
flow.h
flow::Blowing::uE
std::vector< std::pair< tbox::Element *, F0ElC * > > uE
blowing velocity for each element
Definition: wBlowing.h:37