setRDeltaT.H File Reference

Go to the source code of this file.

Functions

scalar maxCo (pimpleDict.get< scalar >("maxCo"))
 
scalar maxDeltaT (pimpleDict.getOrDefault< scalar >("maxDeltaT", GREAT))
 
scalar rDeltaTSmoothingCoeff (pimpleDict.getOrDefault< scalar >("rDeltaTSmoothingCoeff", 0.1))
 
scalar rDeltaTDampingCoeff (pimpleDict.getOrDefault< scalar >("rDeltaTDampingCoeff", 1.0))
 
scalar alphaTemp (pimpleDict.getOrDefault< scalar >("alphaTemp", 0.05))
 
scalar alphaY (pimpleDict.getOrDefault< scalar >("alphaY", 1.0))
 
 Info<< "Time scales min/max:"<< endl;volScalarField rDeltaT0("rDeltaT0", rDeltaT);{ rDeltaT.ref()=(fvc::surfaceSum(mag(phi))()()/((2 *maxCo) *mesh.V() *rho()));rDeltaT.max(1/maxDeltaT);Info<< " Flow = "<< 1/gMax(rDeltaT.primitiveField())<< ", "<< 1/gMin(rDeltaT.primitiveField())<< endl;} if(alphaTemp< 1) { volScalarField::Internal rDeltaTT(mag(Qdot)/(alphaTemp *rho *thermo.Cp() *T));Info<< " Temperature = "<< 1/(gMax(rDeltaTT.field())+VSMALL)<< ", "<< 1/(gMin(rDeltaTT.field())+VSMALL)<< endl;rDeltaT.ref()=max(rDeltaT(), rDeltaTT);} if(alphaY< 1) { dictionary Yref(pimpleDict.subDict("Yref"));volScalarField::Internal rDeltaTY(IOobject("rDeltaTY", runTime.timeName(), mesh), mesh, dimensionedScalar(rDeltaT.dimensions(), Zero));bool foundY=false;forAll(Y, i) { if(i !=inertIndex &&composition.active(i)) { volScalarField &Yi=Y[i];if(Yref.found(Yi.name())) { foundY=true;const scalar Yrefi=Yref.get< scalar > (Yi.name())
 
rDeltaTY field ()
 
 if (foundY)
 
rDeltaT correctBoundaryConditions ()
 
 if (rDeltaTSmoothingCoeff< 1)
 
 if (rDeltaTDampingCoeff< 1 &&runTime.timeIndex() > runTime.startTimeIndex()+1)
 

Variables

const dictionary & pimpleDict = pimple.dict()
 
 else
 

Detailed Description

Original source file setRDeltaT.H

Definition in file setRDeltaT.H.

Function Documentation

◆ maxCo()

scalar maxCo ( pimpleDict.get< scalar >  "maxCo")

Referenced by if().

Here is the caller graph for this function:

◆ maxDeltaT()

scalar maxDeltaT ( pimpleDict.getOrDefault< scalar >  "maxDeltaT", GREAT)

◆ rDeltaTSmoothingCoeff()

scalar rDeltaTSmoothingCoeff ( pimpleDict.getOrDefault< scalar >  "rDeltaTSmoothingCoeff", 0.1)

Referenced by if().

Here is the caller graph for this function:

◆ rDeltaTDampingCoeff()

scalar rDeltaTDampingCoeff ( pimpleDict.getOrDefault< scalar >  "rDeltaTDampingCoeff", 1.0)

Referenced by if().

Here is the caller graph for this function:

◆ alphaTemp()

scalar alphaTemp ( pimpleDict.getOrDefault< scalar >  "alphaTemp", 0.05)

◆ alphaY()

scalar alphaY ( pimpleDict.getOrDefault< scalar >  "alphaY", 1.0)

◆ Info<< "Time scales min/max:"<< endl;volScalarField rDeltaT0("rDeltaT0", rDeltaT);{ rDeltaT.ref()=(fvc::surfaceSum(mag(phi))()()/((2 *maxCo) *mesh.V() *rho()));rDeltaT.max(1/maxDeltaT);Info<< " Flow = "<< 1/gMax(rDeltaT.primitiveField())<< ", "<< 1/gMin(rDeltaT.primitiveField())<< endl;} if(alphaTemp< 1) { volScalarField::Internal rDeltaTT(mag(Qdot)/(alphaTemp *rho *thermo.Cp() *T));Info<< " Temperature = "<< 1/(gMax(rDeltaTT.field())+VSMALL)<< ", "<< 1/(gMin(rDeltaTT.field())+VSMALL)<< endl;rDeltaT.ref()=max(rDeltaT(), rDeltaTT);} if(alphaY< 1) { dictionary Yref(pimpleDict.subDict("Yref"));volScalarField::Internal rDeltaTY(IOobject("rDeltaTY", runTime.timeName(), mesh), mesh, dimensionedScalar(rDeltaT.dimensions(), Zero));bool foundY=false;forAll(Y, i) { if(i !=inertIndex &&composition.active(i)) { volScalarField &Yi=Y[i];if(Yref.found(Yi.name())) { foundY=true;const scalar Yrefi=Yref.get< scalar >()

Info<< "Time scales min/max:"<< endl;volScalarField rDeltaT0("rDeltaT0", rDeltaT);{ rDeltaT.ref()=(fvc::surfaceSum(mag(phi))()()/((2 *maxCo) *mesh.V() *rho()));rDeltaT.max(1/maxDeltaT);Info<< " Flow = "<< 1/gMax(rDeltaT.primitiveField())<< ", "<< 1/gMin(rDeltaT.primitiveField())<< endl;} if(alphaTemp< 1) { volScalarField::Internal rDeltaTT(mag(Qdot)/(alphaTemp *rho *thermo.Cp() *T));Info<< " Temperature = "<< 1/(gMax(rDeltaTT.field())+VSMALL)<< ", "<< 1/(gMin(rDeltaTT.field())+VSMALL)<< endl;rDeltaT.ref()=max(rDeltaT(), rDeltaTT);} if(alphaY< 1) { dictionary Yref(pimpleDict.subDict("Yref"));volScalarField::Internal rDeltaTY(IOobject("rDeltaTY", runTime.timeName(), mesh), mesh, dimensionedScalar(rDeltaT.dimensions(), Zero));bool foundY=false;forAll(Y, i) { if(i !=inertIndex &&composition.active(i)) { volScalarField &Yi=Y[i];if(Yref.found(Yi.name())) { foundY=true;const scalar Yrefi=Yref.get< scalar > ( Yi.  name())

◆ field()

rDeltaTY field ( )

Referenced by phaseSystem::addField(), isotropic::addRegularisationTerm(), DimensionedField< Type, Foam::pointMesh >::average(), NURBS3DSurface::buildSurface(), fieldExtents::calcMask(), fieldMinMax::calcMinMaxFields(), fieldMinMax::calcMinMaxFieldType(), norm::calcNormType(), parseDriver::cellToFace(), parseDriver::cellToPoint(), ShapeSensitivitiesBase::clearMultipliers(), fieldValue::combineFields(), sizeDistribution::combineFields(), kinematicSingleLayer::constrainFilmField(), atmNutSource::correct(), CodedSource< Type >::correct(), optionList::correct(), multiphaseStabilizedTurbulence::correct(), optionList::d2dt2(), dimFieldDecomposer::decomposeField(), pointFieldDecomposer::decomposeField(), lagrangianFieldDecomposer::decomposeField(), faFieldDecomposer::decomposeField(), fvFieldDecomposer::decomposeField(), lagrangianFieldDecomposer::decomposeFieldField(), mapDistributeBase::distribute(), Foam::doCorrectBoundaryConditions(), Foam::MULES::explicitSolve(), parseDriver::faceToPoint(), extractEulerianParticles::faceValue(), exprDriver::fill_random(), sizeDistribution::filterField(), volFieldValue::filterField(), surfaceFieldValue::filterField(), forAll(), particleDistribution::generateDistribution(), GeometricBoundaryField< Foam::vector, Foam::fvPatchField, Foam::volMesh >::GeometricBoundaryField(), Foam::getAnimationColour(), Foam::getBoundedColours(), Foam::getData(), externalDisplacementMeshMover::getFixedValueBCs(), MMA::getOrDefaultScalarField(), Foam::getRefCellValue(), updateMethod::globalSum(), ensightFile::hasUndef(), liquidFilmModel::info(), interRegionHeatTransferModel::interpolate(), topODesignVariables::interpolate(), cellCellStencil::interpolate(), propellerInfo::interpolate(), limitFields::limitField(), limitFields::limitScalarField(), Foam::MapDimensionedFields(), fvMeshAdder::MapDimFields(), Foam::MapGeometricFields(), meshToMesh::mapInternalSrcToTgt(), meshToMesh::mapInternalTgtToSrc(), meshToMesh::mapSrcToTgt(), fvMeshAdder::MapSurfaceFields(), meshToMesh::mapTgtToSrc(), fvMeshAdder::MapVolFields(), propellerInfo::meanSampleDiskField(), fieldSmoother::minSmoothField(), objective::nullify(), variablesSet::nullifyField(), topODesignVariables::nullifyInSolid(), MapInternalField< Type, MeshMapper, surfaceMesh >::operator()(), MapInternalField< Type, MeshMapper, volMesh >::operator()(), MapInternalField< Type, MeshMapper, pointMesh >::operator()(), MapInternalField< Type, MeshMapper, areaMesh >::operator()(), MapInternalField< Type, MeshMapper, edgeMesh >::operator()(), optionList::operator()(), multivariateIndependentScheme< Type >::operator()(), multivariateScheme< Type, Scheme >::operator()(), multivariateSelectionScheme< Type >::operator()(), multivariateUpwind< Type >::operator()(), parseDriver::pointToCell(), parseDriver::pointToFace(), liquidFilmModel::preEvolveRegion(), fvMeshDistribute::printFieldInfo(), vtkUnstructuredReader::printFieldStats(), fvMeshDistribute::printIntFieldInfo(), particleDistribution::processField(), ensightSurfaceReader::readField(), GeometricBoundaryField< Foam::vector, Foam::fvPatchField, Foam::volMesh >::readField(), Foam::readFieldsAndWriteFluent(), Foam::ensightOutput::readWriteCloudField(), fft::realTransform1D(), mapDistributeBase::receive(), lagrangianReconstructor::reconstructField(), lagrangianReconstructor::reconstructFieldField(), KinematicCloud< Cloud< basicKinematicCollidingParcel > >::relax(), coordSetWriter::repackageFields(), KinematicCloud< Cloud< basicKinematicCollidingParcel > >::scale(), mapDistributeBase::send(), MMA::setOrDefaultScalarField(), Foam::setRefCell(), Foam::fvc::smooth(), optionList::source(), topOVariablesBase::sourceTerm(), Foam::fvc::spread(), faceSetOption::subsetFilter(), Foam::sumNeighbours(), Foam::fvc::sweep(), thresholdCellFaces::thresholdCellFaces(), fft::transform(), Foam::transformList(), advectiveFvPatchField< Type >::updateCoeffs(), speciesSorptionFvPatchScalarField::updateCoeffs(), topODesignVariables::updateField(), DimensionedField< Type, Foam::pointMesh >::weightedAverage(), GenericPatchGeoFieldsWriter< PatchType >::write(), internalWriter::write(), unequalBinWidth::write(), equalBinWidth::write(), patchWriter::write(), surfaceFieldWriter::write(), lagrangianWriter::write(), polyWriter::write(), NURBS3DCurve::write(), Foam::writeAreaField(), fileWriter::writeBasicField(), internalMeshWriter::writeCellData(), polyWriter::writeCellData(), Foam::ensightOutput::writeCloudField(), rotorDiskSource::writeField(), lagrangianWriter::writeFields(), ensightFile::writeList(), coordSetWriter::writePointData(), internalMeshWriter::writePointData(), polyWriter::writePointData(), Foam::writePointField(), writer::writeSolution(), abaqusWriter::writeTemplate(), gltfWriter::writeTemplate(), gltfWriter::writeTemplate_animate(), Foam::writeVolField(), vtkWrite::writeVolFieldsImpl(), ensightWrite::writeVolFieldsImpl(), and NURBS3DCurve::writeWParses().

◆ if() [1/3]

if ( foundY  )

Definition at line 132 of file setRDeltaT.H.

References Foam::endl(), Foam::gMax(), Foam::gMin(), Foam::Info, and Foam::max().

Here is the call graph for this function:

◆ correctBoundaryConditions()

rDeltaT correctBoundaryConditions ( )

◆ if() [2/3]

if ( )

Definition at line 152 of file setRDeltaT.H.

References rDeltaTSmoothingCoeff(), and Foam::fvc::smooth().

Here is the call graph for this function:

◆ if() [3/3]

if ( rDeltaTDampingCoeff< 1 &&runTime.timeIndex() > runTime.startTimeIndex()+  1)

Definition at line 161 of file setRDeltaT.H.

References Foam::max(), rDeltaT0(), and rDeltaTDampingCoeff().

Here is the call graph for this function:

Variable Documentation

◆ pimpleDict

const dictionary& pimpleDict = pimple.dict()

Definition at line 25 of file setRDeltaT.H.

◆ else

else
Initial value:
{
IOWarningIn(args.executable().c_str(), Yref)
<< "Cannot find any active species in Yref " << Yref
<< endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:531
const word & executable() const noexcept
Name of executable without the path.
Definition: argListI.H:44
#define IOWarningIn(functionName, ios)
Report an IO warning using Foam::Warning.
Foam::argList args(argc, argv)

Definition at line 141 of file setRDeltaT.H.