walberla::pe_coupling::ForceOnBodiesAdder Class Reference

#include <ForceOnBodiesAdder.h>

Public Member Functions

 ForceOnBodiesAdder (const shared_ptr< StructuredBlockStorage > &blockStorage, const BlockDataID &bodyStorageID, const Vector3< real_t > &force, const std::function< bool(pe::BodyID)> &bodySelectorFct=selectRegularBodies)
 
void operator() ()
 
void updateForce (const Vector3< real_t > &newForce)
 

Private Attributes

shared_ptr< StructuredBlockStorageblockStorage_
 
const BlockDataID bodyStorageID_
 
Vector3< real_tforce_
 
const std::function< bool(pe::BodyID)> bodySelectorFct_
 

Constructor & Destructor Documentation

◆ ForceOnBodiesAdder()

walberla::pe_coupling::ForceOnBodiesAdder::ForceOnBodiesAdder ( const shared_ptr< StructuredBlockStorage > &  blockStorage,
const BlockDataID bodyStorageID,
const Vector3< real_t > &  force,
const std::function< bool(pe::BodyID)> &  bodySelectorFct = selectRegularBodies 
)
inline

Member Function Documentation

◆ operator()()

void walberla::pe_coupling::ForceOnBodiesAdder::operator() ( )

◆ updateForce()

void walberla::pe_coupling::ForceOnBodiesAdder::updateForce ( const Vector3< real_t > &  newForce)

Member Data Documentation

◆ blockStorage_

shared_ptr<StructuredBlockStorage> walberla::pe_coupling::ForceOnBodiesAdder::blockStorage_
private

◆ bodySelectorFct_

const std::function<bool(pe::BodyID)> walberla::pe_coupling::ForceOnBodiesAdder::bodySelectorFct_
private

◆ bodyStorageID_

const BlockDataID walberla::pe_coupling::ForceOnBodiesAdder::bodyStorageID_
private

◆ force_

Vector3<real_t> walberla::pe_coupling::ForceOnBodiesAdder::force_
private

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