walberla::geometry::initializer::BoundaryFromBody< BoundaryHandlerT > Class Template Reference

Detailed Description

template<typename BoundaryHandlerT>
class walberla::geometry::initializer::BoundaryFromBody< BoundaryHandlerT >

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>

+ Inheritance diagram for walberla::geometry::initializer::BoundaryFromBody< BoundaryHandlerT >:

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

StructuredBlockStoragestructuredBlockStorage_
 
BlockDataID boundaryHandlerID_
 

Constructor & Destructor Documentation

◆ BoundaryFromBody()

template<typename BoundaryHandlerT >
walberla::geometry::initializer::BoundaryFromBody< BoundaryHandlerT >::BoundaryFromBody ( StructuredBlockStorage structuredBlockStorage,
BlockDataID boundaryHandlerID 
)

Member Function Documentation

◆ init() [1/5]

template<typename BoundaryHandlerT >
void walberla::geometry::initializer::BoundaryFromBody< BoundaryHandlerT >::init ( BlockStorage ,
const Config::BlockHandle blockHandle 
)
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.

◆ init() [2/5]

template<typename BoundaryHandlerT >
template<typename Body >
void walberla::geometry::initializer::BoundaryFromBody< BoundaryHandlerT >::init ( const Body &  body,
BoundarySetter< BoundaryHandlerT > &  boundarySetter 
)
protected

◆ init() [3/5]

template<typename BoundaryHandlerT >
template<typename Body >
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.

◆ init() [4/5]

template<typename BoundaryHandlerT >
template<typename Body >
void walberla::geometry::initializer::BoundaryFromBody< BoundaryHandlerT >::init ( const Body &  body,
const FlagUID &  uid 
)

◆ init() [5/5]

template<typename BoundaryHandlerT >
void walberla::geometry::initializer::BoundaryFromBody< BoundaryHandlerT >::init ( const Config::BlockHandle blockHandle)

Member Data Documentation

◆ boundaryHandlerID_

template<typename BoundaryHandlerT >
BlockDataID walberla::geometry::initializer::BoundaryFromBody< BoundaryHandlerT >::boundaryHandlerID_
protected

◆ structuredBlockStorage_

template<typename BoundaryHandlerT >
StructuredBlockStorage& walberla::geometry::initializer::BoundaryFromBody< BoundaryHandlerT >::structuredBlockStorage_
protected

The documentation for this class was generated from the following files: