Go to the documentation of this file.
29 #include "surfaceInterpolate.H"
46 template<
class Type,
class GType>
60 deltaCoeffs.dimensions()*gammaMagSf.dimensions()*vf.dimensions()
93 template<
class Type,
class GType>
109 "gammaSnGradCorr("+vf.name()+
')',
116 SfGammaCorr.dimensions()
117 *vf.dimensions()*
mesh.deltaCoeffs().dimensions()
121 for (
direction cmpt = 0; cmpt < pTraits<Type>::nComponents; cmpt++)
123 tgammaSnGradCorr.
ref().replace
130 return tgammaSnGradCorr;
136 template<
class Type,
class GType>
150 tLaplacian.
ref().rename(
"laplacian(" + vf.name() +
')');
156 template<
class Type,
class GType>
180 this->tsnGradScheme_().deltaCoeffs(vf),
185 tmp<SType> tfaceFluxCorrection = gammaSnGradCorr(SfGammaCorr, vf);
187 if (this->tsnGradScheme_().corrected())
189 tfaceFluxCorrection.
ref() +=
190 SfGammaSn*this->tsnGradScheme_().correction(vf);
193 const word corrName(tfaceFluxCorrection().
name());
195 tmp<SType> trelaxedCorrection(
new SType(tfaceFluxCorrection()));
197 const word oldName(corrName +
"_0");
198 const scalar
relax(vf.mesh().equationRelaxationFactor(oldName));
205 trelaxedCorrection.ref() *=
relax;
206 trelaxedCorrection.ref() += (1.0-
relax)*oldCorrection;
208 oldCorrection = tfaceFluxCorrection;
212 SType*
s =
new SType(oldName, tfaceFluxCorrection);
221 )().primitiveField();
223 if (
mesh.fluxRequired(vf.name()))
232 template<
class Type,
class GType>
254 SfGammaSn*this->tsnGradScheme_().
snGrad(vf)
255 + gammaSnGradCorr(SfGammaCorr, vf)
259 tLaplacian.
ref().rename
261 "laplacian(" +
gamma.name() +
',' + vf.name() +
')'
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Defines the attributes of an object for which implicit objectRegistry management is supported,...
tmp< GeometricField< cmptType, PatchField, GeoMesh > > component(const direction) const
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
tmp< fvMatrix< Type > > fvmLaplacian(const GeometricField< GType, fvsPatchField, surfaceMesh > &, const GeometricField< Type, fvPatchField, volMesh > &)
A class for handling words, derived from Foam::string.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
static tmp< GeometricField< typename innerProduct< vector, Type >::type, fvsPatchField, surfaceMesh > > dotInterpolate(const surfaceVectorField &Sf, const GeometricField< Type, fvPatchField, volMesh > &tvf)
A class for managing temporary objects.
const Internal::FieldType & primitiveField() const
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
tmp< GeometricField< Type, fvPatchField, volMesh > > fvcLaplacian(const GeometricField< Type, fvPatchField, volMesh > &)
Calculate the divergence of the given field.
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
const FieldField< Field, Type > & boundaryCoeffs() const
bool foundObject(const word &name, const bool recursive=false) const
A special matrix type and solver, designed for finite volume solutions of scalar equations.
Registry of regIOobjects.
virtual bool coupled() const
virtual tmp< Field< Type > > gradientInternalCoeffs() const
static tmp< fvMatrix< Type > > fvmLaplacianUncorrected(const surfaceScalarField &gammaMagSf, const surfaceScalarField &deltaCoeffs, const GeometricField< Type, fvPatchField, volMesh > &)
Mesh data needed to do the Finite Volume discretisation.
Type & lookupObjectRef(const word &name, const bool recursive=false) const
Basic second-order laplacian using face-gradients and Gauss' theorem.
virtual tmp< Field< Type > > gradientBoundaryCoeffs() const
static scalar Sn(const scalar a, const scalar x)
Calculate the gradient of the given field.
word name(const expressions::valueTypeCode typeCode)
faceFluxFieldPtrType & faceFluxCorrectionPtr()
const FieldField< Field, Type > & internalCoeffs() const
Generic GeometricField class.
const Boundary & boundaryField() const