Applies a given constant external force to a force field.
Utility function when using external forces with methods that couple over the force field. GNS speciality: the external force is additionally multiplied by the fluid volume fraction before it is added.
#include <GNSExternalForceToForceFieldAdder.h>
Public Types | |
using | ForceField_T = GhostLayerField< Vector3< real_t >, 1 > |
using | ScalarField_T = GhostLayerField< real_t, 1 > |
Public Member Functions | |
GNSExternalForceToForceFieldAdder (const BlockDataID &forceFieldID, const ConstBlockDataID &solidVolumeFractionFieldID, const Vector3< real_t > &externalForce) | |
void | operator() (IBlock *const block) |
void | reset (const Vector3< real_t > &newExternalForce) |
Private Attributes | |
const BlockDataID | forceFieldID_ |
const ConstBlockDataID | solidVolumeFractionFieldID_ |
Vector3< real_t > | externalForce_ |
using walberla::pe_coupling::discrete_particle_methods::GNSExternalForceToForceFieldAdder::ForceField_T = GhostLayerField<Vector3<real_t>, 1> |
using walberla::pe_coupling::discrete_particle_methods::GNSExternalForceToForceFieldAdder::ScalarField_T = GhostLayerField<real_t, 1> |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |