46 printf(
"Error: Unknown boundary type!\n");
60 return std::string(
value);
72 T r = *
reinterpret_cast<T*
>(&
value[0]);
79 template double property::get<double>();
80 template float property::get<float>();
81 template int property::get<int>();
82 template bool property::get<bool>();
84 template timeScheme property::get<timeScheme>();
85 template ibmScheme property::get<ibmScheme>();
87 template std::vector<body> *property::get<std::vector<body>*>();
98 if (*
type ==
typeid(
int))
99 return toString(this->get<int>()).c_str();
100 else if (*
type ==
typeid(
double))
101 return toString(this->get<double>()).c_str();
102 else if (*
type ==
typeid(
float))
103 return toString(this->get<float>()).c_str();
104 else if (*
type ==
typeid(std::string))
105 return (
const char *)
value;
108 printf(
"Error: Unsupported type!\n");
122 strncpy(
value, s.c_str(), 256);
131 template <
typename T>
136 *
reinterpret_cast<T*
>(&
value[0]) = v;
Definition of the class body.
Definition of the class boundaryCondition.
Dirichlet boundary condition.
Neumann boundary condition.
ibmScheme
Specifies the immersed boundary method used to solve the flow.
timeScheme
Specifies the numerical scheme used for time-integration.
preconditionerType
Specifies the type of preconditioner.
void set(T v)
Sets the value of the property given a type.
T get()
Gets the value of the property as a given type.
const std::type_info * type
const char * print()
Returns a string describing the value of property as appropriate.
Declaration of the class property.
convective boundary condition
interpolationType
Specifies the type of interpolation.
bcType
Specifies the type of boundary condition.
std::string toString(T num)
Converts a number to a string.
Stores the type of boundary condition and its value.