29#include "surfaceInterpolate.H"
51Foam::motionDirectionalDiffusivity::motionDirectionalDiffusivity
57 uniformDiffusivity(
mesh, mdData),
58 diffusivityVector_(mdData)
72 static bool first =
true;
88 + (diffusivityVector_.x() - diffusivityVector_.y())*cellMotionU
93 D.correctBoundaryConditions();
102 const velocityMotionSolver& mSolver =
105 const_cast<velocityMotionSolver&
>(mSolver).
solve();
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Mesh data needed to do the Finite Volume discretisation.
static const word & zeroGradientType() noexcept
The type name for zeroGradient patch fields.
Abstract base class for cell-centre mesh motion diffusivity.
const fvMesh & mesh() const
Return reference to the mesh.
MotionDirectional finite volume mesh motion diffusivity.
virtual void correct()
Correct the motion diffusivity.
virtual ~motionDirectionalDiffusivity()
Destructor.
const Type & lookupObject(const word &name, const bool recursive=false) const
Lookup and return const reference to the object of the given Type. Fatal if not found or the wrong ty...
Virtual base class for velocity motion solver.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
GeometricField< vector, fvPatchField, volMesh > volVectorField
const dimensionSet dimVelocity
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionedScalar & D