Initializes a boundary handler using a Body (works for both boundary handlings and boundary handling collections).
Configuration file syntax:
Body { shape sphere; radius 2.0; midpoint < 3,7,5>; <FlagUID> { <boundaryConfiguration> } }
The available bodies are sphere, cylinder, torus, ellipsoid and box for configuration options see BodyFromConfig.h
#include <BoundaryFromBody.h>
Public Member Functions | |
BoundaryFromBody (StructuredBlockStorage &structuredBlockStorage, BlockDataID &boundaryHandlerID) | |
void | init (BlockStorage &, const Config::BlockHandle &blockHandle) override |
Sets the boundary using information from a config-block. More... | |
void | init (const Config::BlockHandle &blockHandle) |
template<typename Body > | |
void | init (const Body &body, const BoundaryUID &uid, const shared_ptr< BoundaryConfiguration > &bcConfig) |
Function for manually setting a boundary condition on a Body. More... | |
template<typename Body > | |
void | init (const Body &body, const FlagUID &uid) |
Public Member Functions inherited from walberla::geometry::initializer::Initializer | |
virtual | ~Initializer ()=default |
Protected Member Functions | |
template<typename Body > | |
void | init (const Body &body, BoundarySetter< BoundaryHandlerT > &boundarySetter) |
Protected Attributes | |
StructuredBlockStorage & | structuredBlockStorage_ |
BlockDataID | boundaryHandlerID_ |
walberla::geometry::initializer::BoundaryFromBody< BoundaryHandlerT >::BoundaryFromBody | ( | StructuredBlockStorage & | structuredBlockStorage, |
BlockDataID & | boundaryHandlerID | ||
) |
|
inlineoverridevirtual |
Sets the boundary using information from a config-block.
The body parameters and the parameters for the boundary are read from configuration.
Implements walberla::geometry::initializer::Initializer.
|
protected |
void walberla::geometry::initializer::BoundaryFromBody< BoundaryHandlerT >::init | ( | const Body & | body, |
const BoundaryUID & | uid, | ||
const shared_ptr< BoundaryConfiguration > & | bcConfig | ||
) |
Function for manually setting a boundary condition on a Body.
void walberla::geometry::initializer::BoundaryFromBody< BoundaryHandlerT >::init | ( | const Body & | body, |
const FlagUID & | uid | ||
) |
void walberla::geometry::initializer::BoundaryFromBody< BoundaryHandlerT >::init | ( | const Config::BlockHandle & | blockHandle | ) |
|
protected |
|
protected |