Loading...
Searching...
No Matches
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))
 if (rDeltaTDampingCoeff< 1 &&runTime.timeIndex() > runTime.startTimeIndex()+1)
 Info<< "Time scales min/max:"<< endl;{ rDeltaT.ref()=(fvc::surfaceSum(mag(phi))()()/((2 *maxCo) *mesh.V() *rho()));rDeltaT.clamp_min(1/maxDeltaT);auto limits=gMinMax(rDeltaT.primitiveField());limits.reset(1/(limits.max()+VSMALL), 1/(limits.min()+VSMALL));Info<< " Flow = "<< limits.min()<< ", "<< limits.max()<< endl;} if(alphaTemp< 1) { volScalarField::Internal rDeltaTT(mag(Qdot)/(alphaTemp *rho *thermo.Cp() *T));rDeltaT.primitiveFieldRef().clamp_min(rDeltaTT);auto limits=gMinMax(rDeltaTT.field());limits.reset(1/(limits.max()+VSMALL), 1/(limits.min()+VSMALL));Info<< " Temperature = "<< limits.min()<< ", "<< limits.max()<< endl;} 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 (rDeltaT0_damped)
limits reset (1/(limits.max()+VSMALL), 1/(limits.min()+VSMALL))

Variables

const dictionary & pimpleDict = pimple.dict()
tmp< volScalarField > rDeltaT0_damped
 else
auto limits = gMinMax(rDeltaT.field())

Detailed Description

Original source file setRDeltaT.H

Definition in file setRDeltaT.H.

Function Documentation

◆ maxCo()

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

References pimpleDict.

◆ maxDeltaT()

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

References pimpleDict.

◆ rDeltaTSmoothingCoeff()

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

References pimpleDict.

Referenced by correctBoundaryConditions(), and if().

Here is the caller graph for this function:

◆ rDeltaTDampingCoeff()

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

References pimpleDict.

Referenced by if().

Here is the caller graph for this function:

◆ alphaTemp()

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

References pimpleDict.

◆ alphaY()

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

References pimpleDict.

Referenced by field().

Here is the caller graph for this function:

◆ if() [1/4]

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

Definition at line 58 of file setRDeltaT.H.

References rDeltaT0_damped, rDeltaTDampingCoeff(), and runTime.

Here is the call graph for this function:

◆ Info<< "Time scales min/max:"<< endl;{ rDeltaT.ref()=(fvc::surfaceSum(mag(phi))()()/((2 *maxCo) *mesh.V() *rho()));rDeltaT.clamp_min(1/maxDeltaT);auto limits=gMinMax(rDeltaT.primitiveField());limits.reset(1/(limits.max()+VSMALL), 1/(limits.min()+VSMALL));Info<< " Flow = "<< limits.min()<< ", "<< limits.max()<< endl;} if(alphaTemp< 1) { volScalarField::Internal rDeltaTT(mag(Qdot)/(alphaTemp *rho *thermo.Cp() *T));rDeltaT.primitiveFieldRef().clamp_min(rDeltaTT);auto limits=gMinMax(rDeltaTT.field());limits.reset(1/(limits.max()+VSMALL), 1/(limits.min()+VSMALL));Info<< " Temperature = "<< limits.min()<< ", "<< limits.max()<< endl;} 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;{ rDeltaT.ref()=(fvc::surfaceSum(mag(phi))()()/((2 *maxCo) *mesh.V() *rho()));rDeltaT.clamp_min(1/maxDeltaT);auto limits=gMinMax(rDeltaT.primitiveField());limits.reset(1/(limits.max()+VSMALL), 1/(limits.min()+VSMALL));Info<< " Flow = "<< limits.min()<< ", "<< limits.max()<< endl;} if(alphaTemp< 1) { volScalarField::Internal rDeltaTT(mag(Qdot)/(alphaTemp *rho *thermo.Cp() *T));rDeltaT.primitiveFieldRef().clamp_min(rDeltaTT);auto limits=gMinMax(rDeltaTT.field());limits.reset(1/(limits.max()+VSMALL), 1/(limits.min()+VSMALL));Info<< " Temperature = "<< limits.min()<< ", "<< limits.max()<< endl;} 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 ( )

References alphaY(), mesh, reaction, and rho.

Referenced by phaseSystem::addField(), phaseSystem::addField(), phaseSystem::addField(), phaseSystem::addField(), Foam::addNamedToRunTimeSelectionTable(), Foam::addNamedToRunTimeSelectionTable(), isotropic::addRegularisationTerm(), contactHeatFluxSource::addSup(), DimensionedField< Type, GeoMesh >::average(), topOVariablesBase::beta(), cellCoBlended< Type >::blendingFactor(), NURBS3DSurface::buildSurface(), fieldExtents::calcMask(), fieldExtents::calcMask(), fieldMinMax::calcMinMaxFields(), fieldMinMax::calcMinMaxFieldType(), norm::calcNormType(), parseDriver::cellToFace(), parseDriver::cellToPoint(), ShapeSensitivitiesBase::clearMultipliers(), fieldValue::combineFields(), fieldValue::combineFields(), sizeDistribution::combineFields(), adjointBoundaryCondition< Type >::computePatchGrad(), kinematicSingleLayer::constrainFilmField(), option::correct(), option::correct(), option::correct(), option::correct(), option::correct(), optionList::correct(), atmNutSource::correct(), CodedSource< Type >::correct(), multiphaseStabilizedTurbulence::correct(), option::correct(), option::correct(), option::correct(), option::correct(), option::correct(), option::correct(), option::correct(), option::correct(), optionList::correct(), optionList::d2dt2(), optionList::d2dt2(), optionList::d2dt2(), optionList::d2dt2(), dimFieldDecomposer::decomposeField(), faFieldDecomposer::decomposeField(), faFieldDecomposer::decomposeField(), fvFieldDecomposer::decomposeField(), fvFieldDecomposer::decomposeField(), fvFieldDecomposer::decomposeField(), lagrangianFieldDecomposer::decomposeField(), lagrangianFieldDecomposer::decomposeFieldField(), mapDistributeBase::distribute(), mapDistributeBase::distribute(), mapDistributeBase::distribute(), Foam::doCorrectBoundaryConditions(), Foam::doCorrectBoundaryConditions(), Foam::doCorrectBoundaryConditions(), Foam::MULES::explicitSolve(), parseDriver::faceToPoint(), extractEulerianParticles::faceValue(), multivariateScheme< Type, Scheme >::fieldScheme::fieldScheme(), multivariateSelectionScheme< Type >::fieldScheme::fieldScheme(), multivariateSurfaceInterpolationScheme< Type >::fieldScheme::fieldScheme(), multivariateUpwind< Type >::fieldScheme::fieldScheme(), exprDriver::fill_random(), volFieldValue::filterField(), sizeDistribution::filterField(), forAll(), particleDistribution::generateDistribution(), Foam::getAnimationColour(), Foam::getBoundedColours(), Foam::getData(), externalDisplacementMeshMover::getFixedValueBCs(), MMA::getOrDefaultScalarField(), Foam::getRefCellValue(), updateMethod::globalSum(), ensightFile::hasUndef(), ensightFile::hasUndef(), ensightFile::hasUndef(), ensightFile::hasUndef(), IjkField< Type >::IjkField(), IjkField< Type >::IjkField(), IjkField< Type >::IjkField(), liquidFilmModel::info(), cellCellStencil::interpolate(), propellerInfo::interpolate(), interRegionHeatTransferModel::interpolate(), interRegionHeatTransferModel::interpolate(), interRegionHeatTransferModel::interpolate(), interRegionHeatTransferModel::interpolate(), topODesignVariables::interpolate(), interfaceCompositionModel::Kexp(), interfaceCompositionModel::KSp(), interfaceCompositionModel::KSu(), limitFields::limitField(), limitFields::limitScalarField(), Foam::MapDimensionedFields(), fvMeshAdder::MapDimFields(), fvMeshAdder::MapDimFields(), Foam::MapGeometricFields(), meshToMesh::mapInternalSrcToTgt(), meshToMesh::mapInternalSrcToTgt(), meshToMesh::mapInternalSrcToTgt(), meshToMesh::mapInternalSrcToTgt(), meshToMesh::mapInternalSrcToTgt(), meshToMesh::mapInternalSrcToTgt(), meshToMesh::mapInternalTgtToSrc(), meshToMesh::mapInternalTgtToSrc(), meshToMesh::mapInternalTgtToSrc(), meshToMesh::mapInternalTgtToSrc(), meshToMesh::mapInternalTgtToSrc(), meshToMesh::mapInternalTgtToSrc(), meshToMesh::mapSrcToTgt(), meshToMesh::mapSrcToTgt(), meshToMesh::mapSrcToTgt(), meshToMesh::mapSrcToTgt(), meshToMesh::mapSrcToTgt(), meshToMesh::mapSrcToTgt(), fvMeshAdder::MapSurfaceFields(), fvMeshAdder::MapSurfaceFields(), meshToMesh::mapTgtToSrc(), meshToMesh::mapTgtToSrc(), meshToMesh::mapTgtToSrc(), meshToMesh::mapTgtToSrc(), meshToMesh::mapTgtToSrc(), meshToMesh::mapTgtToSrc(), fvMeshAdder::MapVolFields(), fvMeshAdder::MapVolFields(), propellerInfo::meanSampleDiskField(), fieldSmoother::minSmoothField(), objective::nullify(), variablesSet::nullifyField(), topODesignVariables::nullifyInSolid(), optionList::operator()(), optionList::operator()(), optionList::operator()(), optionList::operator()(), optionList::operator()(), optionList::operator()(), optionList::operator()(), optionList::operator()(), optionList::operator()(), optionList::operator()(), optionList::operator()(), optionList::operator()(), optionList::operator()(), optionList::operator()(), MapInternalField< Type, MeshMapper, GeoMesh >::operator()(), MapInternalField< Type, MeshMapper, areaMesh >::operator()(), MapInternalField< Type, MeshMapper, edgeMesh >::operator()(), MapInternalField< Type, MeshMapper, pointMesh >::operator()(), MapInternalField< Type, MeshMapper, surfaceMesh >::operator()(), MapInternalField< Type, MeshMapper, volMesh >::operator()(), multivariateIndependentScheme< Type >::operator()(), multivariateScheme< scalar, LimitedScheme< scalar, GammaLimiter< NVDTVD >, limitFuncs::magSqr > >::operator()(), multivariateSelectionScheme< Type >::operator()(), multivariateSurfaceInterpolationScheme< Type >::operator()(), multivariateUpwind< Type >::operator()(), atmNutSource::operator=(), parseDriver::pointToCell(), parseDriver::pointToFace(), liquidFilmModel::preEvolveRegion(), fvMeshDistribute::printFieldInfo(), fvMeshDistribute::printIntFieldInfo(), particleDistribution::processField(), topODesignVariables::readField(), Foam::readFieldsAndWriteFluent(), fft::realTransform1D(), mapDistributeBase::receive(), mapDistributeBase::receive(), mapDistributeBase::receive(), KinematicCloud< CloudType >::relax(), KinematicCloud< Cloud< basicKinematicParcel > >::relax(), coordSetWriter::repackageFields(), KinematicCloud< CloudType >::scale(), KinematicCloud< Cloud< basicKinematicParcel > >::scale(), mapDistributeBase::send(), mapDistributeBase::send(), mapDistributeBase::send(), MMA::setOrDefaultScalarField(), Foam::setRefCell(), Foam::setRefCell(), Foam::setRefCells(), Foam::fvc::smooth(), optionList::source(), optionList::source(), topOVariablesBase::sourceTerm(), Foam::fvc::spread(), faceSetOption::subsetFilter(), Foam::sumNeighbours(), Foam::fvc::sweep(), thresholdCellFaces::thresholdCellFaces(), fft::transform(), Foam::transform(), Foam::transformList(), Foam::transformList(), Foam::transformList(), Foam::transformList(), Foam::transformList(), Foam::transformList(), fieldSmoother::TypeName(), thresholdCellFaces::TypeName(), advectiveFvPatchField< Type >::updateCoeffs(), speciesSorptionFvPatchScalarField::updateCoeffs(), topODesignVariables::updateField(), multivariateSurfaceInterpolationScheme< Type >::fieldScheme::weights(), equalBinWidth::write(), unequalBinWidth::write(), NURBS3DCurve::write(), NURBS3DCurve::write(), GenericPatchGeoFieldsWriter< indirectPrimitivePatch >::write(), GenericPatchGeoFieldsWriter< indirectPrimitivePatch >::write(), internalWriter::write(), internalWriter::write(), internalWriter::write(), lagrangianWriter::write(), patchWriter::write(), patchWriter::write(), patchWriter::write(), patchWriter::write(), polyWriter::write(), surfaceFieldWriter::write(), Foam::writeAreaField(), fileWriter::writeBasicField(), internalMeshWriter::writeCellData(), polyWriter::writeCellData(), Foam::ensightOutput::writeCloudField(), Foam::ensightOutput::writeCloudField(), rotorDiskSource::writeField(), ensightFile::writeLabels(), ensightFile::writeList(), ensightFile::writeList(), ensightFile::writeList(), ensightFile::writeList(), ensightFile::writeList(), internalMeshWriter::writePointData(), polyWriter::writePointData(), Foam::writePointField(), Foam::writePointField(), writer::writeSolution(), abaqusWriter::writeTemplate(), gltfWriter::writeTemplate(), gltfWriter::writeTemplate_animate(), Foam::writeVolField(), Foam::writeVTKField(), NURBS3DCurve::writeWParses(), NURBS3DCurve::writeWParses(), diffusionGasEvaporation< Thermo, OtherThermo >::~diffusionGasEvaporation(), interfaceHeatResistance< Thermo, OtherThermo >::~interfaceHeatResistance(), interfaceOxideRate< Thermo, OtherThermo >::~interfaceOxideRate(), kineticGasEvaporation< Thermo, OtherThermo >::~kineticGasEvaporation(), Lee< Thermo, OtherThermo >::~Lee(), multiphaseStabilizedTurbulence::~multiphaseStabilizedTurbulence(), option::~option(), and topODesignVariables::~topODesignVariables().

Here is the call graph for this function:

◆ if() [2/4]

if ( foundY )

Definition at line 148 of file setRDeltaT.H.

References limits.

◆ correctBoundaryConditions()

rDeltaT correctBoundaryConditions ( )

◆ if() [3/4]

if ( )

Definition at line 170 of file setRDeltaT.H.

References rDeltaTSmoothingCoeff().

Here is the call graph for this function:

◆ if() [4/4]

Definition at line 178 of file setRDeltaT.H.

References rDeltaT0_damped.

◆ reset()

limits reset ( 1/ limits.max()+VSMALL,
1/ limits.min()+VSMALL )

References limits.

Referenced by bitSet::andEq(), token::boolToken(), forces::calcForcesMoments(), equipotentialPointSmoother::calculate(), geometricElementTransformPointSmoother::calculate(), laplacianConstraintPointSmoother::calculate(), laplacianPointSmoother::calculate(), PackedList< Width >::clear(), token::doubleToken(), refPtr< Field< Type > >::emplace(), forceCoeffs::execute(), FilterField::FilterField(), FilterField::FilterField(), token::floatToken(), UPstream::commsStructList::get(), globalIndex::globalIndex(), globalIndex::globalIndex(), globalIndex::globalIndex(), globalIndex::globalIndex(), token::int32Token(), token::int64Token(), token::labelToken(), dimensionSet::operator*=(), dimensionSet::operator/=(), refPtr< T >::operator=(), tmp< T >::operator=(), token::operator=(), token::operator=(), token::operator=(), token::operator=(), token::operator=(), token::operator=(), token::operator=(), token::operator=(), token::operator=(), token::operator=(), token::operator=(), token::operator=(), token::operator=(), token::operator=(), UPstream::communicator::operator=(), PatchInteractionFields< CloudType >::preEvolve(), token::pToken(), token::read(), autoPtr< T >::reset(), fvMeshSubset::reset(), fvMeshSubset::reset(), fvMeshSubset::reset(), globalIndex::reset(), globalIndex::reset(), FilterField::reset(), primitiveMesh::reset(), UPstream::commsStruct::reset(), UPstream::commsStruct::reset_linear(), scalarRange::scalarRange(), token::setBad(), token::uint32Token(), token::uint64Token(), PatchInteractionFields< CloudType >::write(), bitSet::xorEq(), and token::~token().

Variable Documentation

◆ pimpleDict

const dictionary& pimpleDict = pimple.dict()

Definition at line 25 of file setRDeltaT.H.

◆ rDeltaT0_damped

tmp<volScalarField> rDeltaT0_damped

Definition at line 55 of file setRDeltaT.H.

Referenced by if(), and if().

◆ else

else
Initial value:
{
IOWarningIn(args.executable().c_str(), Yref)
<< "Cannot find any active species in Yref " << Yref
<< endl
#define IOWarningIn(functionName, ios)
Report an IO warning using Foam::Warning.
Foam::argList args(argc, argv)

Definition at line 158 of file setRDeltaT.H.

◆ limits

auto limits = gMinMax(rDeltaT.field())

Definition at line 186 of file setRDeltaT.H.

Referenced by isoAdvection::advect(), cellLimitedGrad< Type, Limiter >::calcGrad(), faceLimitedGrad< Type >::calcGrad(), snappySnapDriver::calcNearestSurface(), EDC< ReactionThermo >::correct(), correctBoundaryConditions(), ThermalPhaseChangePhaseSystem< BasePhaseSystem >::correctInterfaceThermo(), PDRblock::location::edgeLimits(), reactingOneDim::evolveRegion(), surfaceCourantNumber::execute(), ddtScheme< Type >::fvcDdtPhiCoeff(), ddtScheme< Type >::fvcDdtPhiCoeffExperimental(), if(), KinematicCloud< Foam::DSMCCloud< dsmcParcel > >::info(), MPPICCloud< Foam::DSMCCloud< dsmcParcel > >::info(), thermoSingleLayer::info(), uniformBin::initialise(), isoAdvection::isoAdvection(), makeFaGradScheme(), makeFaGradScheme(), makeFvGradScheme(), MPPICCloud< Foam::DSMCCloud< dsmcParcel > >::motion(), averageNeighbourFvGeometryScheme::movePoints(), highAspectRatioFvGeometryScheme::movePoints(), Distribution< Type >::normalised(), AMIInterpolation::normaliseWeights(), enthalpySorptionFvPatchScalarField::patchSource(), speciesSorptionFvPatchScalarField::patchSource(), Distribution< Type >::raw(), reset(), motionSmootherAlgo::scaleMesh(), Probes< ProbeType >::storeResults(), interfaceTrackingFvMesh::update(), thermalBaffle1DFvPatchScalarField< solidType >::updateCoeffs(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), electrostaticDepositionFvPatchScalarField::updateCoeffs(), enthalpySorptionFvPatchScalarField::updateCoeffs(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::updateCoeffs(), fixedMultiPhaseHeatFluxFvPatchScalarField::updateCoeffs(), humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs(), lumpedMassWallTemperatureFvPatchScalarField::updateCoeffs(), mappedFieldFvPatchField< Type >::updateCoeffs(), mappedFixedValueFvPatchField< Type >::updateCoeffs(), mappedMixedFieldFvPatchField< Type >::updateCoeffs(), mappedMixedFvPatchField< Type >::updateCoeffs(), fixedIncidentRadiationFvPatchScalarField::updateCoeffs(), greyDiffusiveViewFactorFixedValueFvPatchScalarField::updateCoeffs(), speciesSorptionFvPatchScalarField::updateCoeffs(), timeVaryingMappedFixedValueFvPatchField< Type >::updateCoeffs(), timeVaryingMappedFixedValuePointPatchField< Type >::updateCoeffs(), turbulentDFSEMInletFvPatchVectorField::updateCoeffs(), waveSurfacePressureFvPatchScalarField::updateCoeffs(), KinematicCloud< Foam::DSMCCloud< dsmcParcel > >::updateMesh(), Distribution< Type >::validLimits(), MappedFile< Type >::value(), wallShearStress::write(), and yPlus::write().