cuIBM
A GPU-based Immersed Boundary Method code
boundaryCondition.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include <string>
10 #include <sstream>
11 #include "types.h"
12 #include "parameterDB.h"
13 
14 
20 {
21 public:
24 
28  boundaryCondition() : type(DIRICHLET), value(0) {};
29 
37  boundaryCondition(bcType _type, real _value) : type(_type), value(_value) {};
38 
39 }; // boundaryCondition
Definition of custom types required by the code.
double real
Is a float or a double depending on the machine precision.
Definition: types.h:116
Dirichlet boundary condition.
Definition: types.h:35
Declaration of the class property.
bcType
Specifies the type of boundary condition.
Definition: types.h:33
boundaryCondition(bcType _type, real _value)
Constructor overloading. Sets boundary condition to a given type with a given value.
bcType type
type of boundary condition
Stores the type of boundary condition and its value.
real value
numerical value associated with the boundary condition
boundaryCondition()
Constructor. Sets Dirichlet boundary condition with value.