Foam::blockMeshTools Namespace Reference

Tools for parsing label(List) with dictionary lookup. More...

Functions

void read (Istream &, label &val, const dictionary &)
 In-place read with dictionary lookup. More...
 
template<class T >
void read (Istream &, List< T > &list, const dictionary &)
 In-place read with dictionary lookup. More...
 
label read (Istream &, const dictionary &)
 Return-read with dictionary lookup. More...
 
void write (Ostream &, const label val, const dictionary &)
 Write with dictionary lookup. More...
 
const entryfindEntry (const dictionary &dict, const label val)
 Linear search for labelled entry, nullptr if not found. More...
 

Detailed Description

Tools for parsing label(List) with dictionary lookup.

Source files

Function Documentation

◆ read() [1/3]

void read ( Istream is,
label &  val,
const dictionary dict 
)

In-place read with dictionary lookup.

Definition at line 50 of file blockMeshTools.C.

References dict, Foam::exit(), IOstream::fatalCheck(), Foam::FatalIOError, FatalIOErrorInFunction, FUNCTION_NAME, token::info(), token::isLabel(), token::isWord(), token::labelToken(), Foam::readLabel(), entry::stream(), and token::wordToken().

Referenced by ABAQUSsurfaceFormat< Face >::ABAQUSsurfaceFormat(), abort::abort(), AC3DsurfaceFormat< Face >::AC3DsurfaceFormat(), areaWrite::areaWrite(), binField::binField(), CodedSource< Type >::CodedSource(), Pstream::combineGather(), Pstream::combineScatter(), processorLduInterface::compressedReceive(), processorLduInterface::compressedSend(), contactHeatFluxSource::contactHeatFluxSource(), CSV< Type >::CSV(), decomposedBlockData::decomposedBlockData(), metisLikeDecomp::decomposeGeneral(), derivedFields::derivedFields(), dictionary::dictionary(), dimensioned< vector >::dimensioned(), mapDistributeBase::distribute(), drivenLinearMotion::drivenLinearMotion(), edgeMesh::edgeMesh(), edgeMeshFormat::edgeMeshFormat(), equalBinWidth::equalBinWidth(), mapDistributeBase::exchangeMasks(), Pstream::exchangeSizes(), explicitPorositySource::explicitPorositySource(), extendedEdgeMeshFormat::extendedEdgeMeshFormat(), extendedFeatureEdgeMeshFormat::extendedFeatureEdgeMeshFormat(), externalFileSource::externalFileSource(), externalForce::externalForce(), externalHeatFluxSource::externalHeatFluxSource(), fieldExpression::fieldExpression(), fieldsExpression::fieldsExpression(), fieldValue::fieldValue(), fixedReferenceTemperature::fixedReferenceTemperature(), FixedValueConstraint< Type >::FixedValueConstraint(), FunctionObjectTrigger< Type >::FunctionObjectTrigger(), FunctionObjectValue< Type >::FunctionObjectValue(), Pstream::gather(), globalIndex::gather(), Pstream::gatherList(), globalIndex::gatherValues(), GTSsurfaceFormat< Face >::GTSsurfaceFormat(), HashPtrTable< exprResult >::HashPtrTable(), heatExchangerSource::heatExchangerSource(), histogram::histogram(), calculatedProcessorFvPatchField< Type >::initEvaluate(), processorFaPatchField< Type >::initEvaluate(), processorFvPatchField< Type >::initEvaluate(), lduCalculatedProcessorField< Type >::initInterfaceMatrixUpdate(), calculatedProcessorGAMGInterfaceField::initInterfaceMatrixUpdate(), calculatedProcessorFvPatchField< Type >::initInterfaceMatrixUpdate(), processorFaPatchField< Type >::initInterfaceMatrixUpdate(), processorFvPatchField< Type >::initInterfaceMatrixUpdate(), processorCyclicPointPatchField< Type >::initSwapAddSeparated(), InputValueMapper< Type >::InputValueMapper(), jouleHeatingSource::jouleHeatingSource(), limitFields::limitFields(), limitHeight::limitHeight(), line::line(), linearAxialAngularSpring::linearAxialAngularSpring(), linearDamper::linearDamper(), linearMotion::linearMotion(), linearSpring::linearSpring(), linearSpringDamper::linearSpringDamper(), Pstream::listCombineGather(), Pstream::listCombineScatter(), localReferenceTemperature::localReferenceTemperature(), MeshedSurface< Foam::face >::MeshedSurface(), multiFieldValue::multiFieldValue(), MultiInteraction< CloudType >::MultiInteraction(), multiMotion::multiMotion(), multiphaseMangrovesTurbulenceModel::multiphaseMangrovesTurbulenceModel(), multiRegion::multiRegion(), NASsurfaceFormat< Face >::NASsurfaceFormat(), OBJedgeFormat::OBJedgeFormat(), OBJsurfaceFormat< Face >::OBJsurfaceFormat(), OFFsurfaceFormat< Face >::OFFsurfaceFormat(), orientation::orientation(), oscillatingRotatingMotion::oscillatingRotatingMotion(), particleDistribution::particleDistribution(), ParticleHistogram< CloudType >::ParticleHistogram(), ParticlePostProcessing< CloudType >::ParticlePostProcessing(), ParticleZoneInfo< CloudType >::ParticleZoneInfo(), plane::plane(), point::point(), prescribedRotation::prescribedRotation(), processorField::processorField(), reactionsSensitivityAnalysis< chemistryType >::reactionsSensitivityAnalysis(), read(), linearViscousStress< RASModel< BasicTurbulenceModel > >::read(), HerschelBulkley::read(), powerLaw::read(), extendedFeatureEdgeMeshFormat::read(), BirdCarreau::read(), EddyDiffusivity< compressible::turbulenceModel >::read(), eddyViscosity< RASModel< BasicTurbulenceModel > >::read(), OneResistanceHeatTransferPhaseSystem< BasePhaseSystem >::read(), strainRateFunction::read(), options::read(), Casson::read(), noCombustion< ReactionThermo >::read(), PopulationBalancePhaseSystem< BasePhaseSystem >::read(), Newtonian::read(), CrossPowerLaw::read(), specieReactionRates< ChemistryModelType >::read(), TwoResistanceHeatTransferPhaseSystem< BasePhaseSystem >::read(), PhaseTransferPhaseSystem< BasePhaseSystem >::read(), ReynoldsStress< RASModel< BasicTurbulenceModel > >::read(), blockVertex::read(), softWall::read(), Arrhenius< ViscousModel >::read(), dsmcFields::read(), CombustionModel< ReactionThermo >::read(), edgeMeshFormat::read(), ThermalPhaseChangePhaseSystem< BasePhaseSystem >::read(), laminarModel< BasicMomentumTransportModel >::read(), localReferenceTemperature::read(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::read(), runTimeControl::read(), fixedReferenceTemperature::read(), FixedValueConstraint< Type >::read(), limitVelocity::read(), limitTurbulenceViscosity::read(), LESModel< BasicTurbulenceModel >::read(), limitTemperature::read(), surfaceInterpolate::read(), PhaseLimitStabilization< Type >::read(), moleFractions< ThermoType >::read(), SpalartAllmarasBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::read(), RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > >::read(), surfaceDistance::read(), velocityDampingConstraint::read(), referenceTemperature::read(), reactionsSensitivityAnalysis< chemistryType >::read(), CodedSource< Type >::read(), areaWrite::read(), multiFieldValue::read(), Curle::read(), MomentumTransferPhaseSystem< BasePhaseSystem >::read(), SemiImplicitSource< Type >::read(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::read(), dimensioned< vector >::read(), heThermo< BasicSolidThermo, MixtureType >::read(), sampledSets::read(), effectivenessTable::read(), sampledSurfaces::read(), regionSizeDistribution::read(), actuationDiskSource::read(), waveModel::readDict(), readFields::readFields(), processorLduInterface::receive(), distributedDILUPreconditioner::receive(), removeRegisteredObject::removeRegisteredObject(), resolutionIndex::resolutionIndex(), runTimeControl::runTimeControl(), Scale< Type >::Scale(), Pstream::scatter(), globalIndex::scatter(), Pstream::scatterList(), SemiImplicitSource< Type >::SemiImplicitSource(), processorLduInterface::send(), mapDistributeBase::send(), setTimeStepFaRegionsFunctionObject::setTimeStepFaRegionsFunctionObject(), setTimeStepFunctionObject::setTimeStepFunctionObject(), SIMPLEControl::SIMPLEControl(), SimplifiedDynamicFvMesh< DynamicMeshType >::SimplifiedDynamicFvMesh(), softWall::softWall(), LUscalarMatrix::solve(), sphericalAngularDamper::sphericalAngularDamper(), sphericalAngularSpring::sphericalAngularSpring(), STARCDsurfaceFormat< Face >::STARCDsurfaceFormat(), STLsurfaceFormat< Face >::STLsurfaceFormat(), surfaceDistance::surfaceDistance(), surfaceInterpolate::surfaceInterpolate(), processorCyclicPointPatchField< Type >::swapAddSeparated(), syncObjects::syncObjects(), tabulated6DoFAcceleration::tabulated6DoFAcceleration(), tabulated6DoFMotion::tabulated6DoFMotion(), tabulatedAxialAngularSpring::tabulatedAxialAngularSpring(), timeControl::timeControl(), trimModel::trimModel(), TRIsurfaceFormat< Face >::TRIsurfaceFormat(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::turbulentTemperatureRadCoupledMixedFvPatchScalarField(), unequalBinWidth::unequalBinWidth(), VTKedgeFormat::VTKedgeFormat(), VTKsurfaceFormat< Face >::VTKsurfaceFormat(), writeCellCentres::writeCellCentres(), writeCellVolumes::writeCellVolumes(), Foam::ensightOutput::writeCloudField(), Foam::ensightOutput::writeCloudPositions(), Foam::ensightOutput::Detail::writeFieldComponents(), Foam::vtk::writeListParallel(), Foam::vtk::writeListsParallel(), writeObjects::writeObjects(), and XiReactionRate::XiReactionRate().

Here is the call graph for this function:

◆ read() [2/3]

◆ read() [3/3]

Foam::List< T > read ( Istream is,
const dictionary dict 
)

Return-read with dictionary lookup.

Definition at line 93 of file blockMeshTools.C.

References dict, and read().

Here is the call graph for this function:

◆ write()

void write ( Ostream os,
const label  val,
const dictionary dict 
)

Write with dictionary lookup.

Definition at line 105 of file blockMeshTools.C.

References dict, Foam::constant::electromagnetic::e, entry::keyword(), os(), and Foam::resolveLabel().

Referenced by blockVertex::write(), and blockDescriptor::write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findEntry()

const Foam::entry * findEntry ( const dictionary dict,
const label  val 
)

Linear search for labelled entry, nullptr if not found.

Definition at line 125 of file blockMeshTools.C.

References dict, Foam::constant::electromagnetic::e, and Foam::resolveLabel().

Referenced by dictionary::found(), and dictionary::lookupEntry().

Here is the call graph for this function:
Here is the caller graph for this function: