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 57 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(), axis::axis(), CodedSource< Type >::CodedSource(), Pstream::combineGather(), Pstream::combineScatter(), processorLduInterface::compressedReceive(), processorLduInterface::compressedSend(), contactHeatFluxSource::contactHeatFluxSource(), CSV< Type >::CSV(), decomposedBlockData::decomposedBlockData(), derivedFields::derivedFields(), dictionary::dictionary(), dimensioned< vector >::dimensioned(), mapDistributeBase::distribute(), drivenLinearMotion::drivenLinearMotion(), edgeMesh::edgeMesh(), edgeMeshFormat::edgeMeshFormat(), 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(), globalIndex::gather(), GTSsurfaceFormat< Face >::GTSsurfaceFormat(), HashPtrTable< exprResult >::HashPtrTable(), processorFvPatchField< Type >::initEvaluate(), calculatedProcessorFvPatchField< Type >::initEvaluate(), calculatedProcessorGAMGInterfaceField::initInterfaceMatrixUpdate(), processorGAMGInterfaceField::initInterfaceMatrixUpdate(), processorFvPatchField< Type >::initInterfaceMatrixUpdate(), calculatedProcessorFvPatchField< Type >::initInterfaceMatrixUpdate(), processorCyclicPointPatchField< Type >::initSwapAddSeparated(), InputValueMapper< Type >::InputValueMapper(), jouleHeatingSource::jouleHeatingSource(), limitFields::limitFields(), 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(), oscillatingLinearMotion::oscillatingLinearMotion(), oscillatingRotatingMotion::oscillatingRotatingMotion(), particleDistribution::particleDistribution(), plane::plane(), point::point(), prescribedRotation::prescribedRotation(), processorField::processorField(), reactionsSensitivityAnalysis< chemistryType >::reactionsSensitivityAnalysis(), read(), HerschelBulkley::read(), powerLaw::read(), linearViscousStress< RASModel< BasicTurbulenceModel > >::read(), extendedFeatureEdgeMeshFormat::read(), options::read(), BirdCarreau::read(), strainRateFunction::read(), OneResistanceHeatTransferPhaseSystem< BasePhaseSystem >::read(), noCombustion< ReactionThermo >::read(), eddyViscosity< RASModel< BasicTurbulenceModel > >::read(), EddyDiffusivity< compressible::turbulenceModel >::read(), PopulationBalancePhaseSystem< BasePhaseSystem >::read(), Casson::read(), Newtonian::read(), specieReactionRates< ChemistryModelType >::read(), TwoResistanceHeatTransferPhaseSystem< BasePhaseSystem >::read(), CrossPowerLaw::read(), PhaseTransferPhaseSystem< BasePhaseSystem >::read(), ReynoldsStress< RASModel< BasicTurbulenceModel > >::read(), Arrhenius< ViscousModel >::read(), blockVertex::read(), CombustionModel< ReactionThermo >::read(), dsmcFields::read(), edgeMeshFormat::read(), ThermalPhaseChangePhaseSystem< BasePhaseSystem >::read(), runTimeControl::read(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::read(), laminarModel< BasicMomentumTransportModel >::read(), localReferenceTemperature::read(), RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > >::read(), LESModel< BasicTurbulenceModel >::read(), FixedValueConstraint< Type >::read(), fixedReferenceTemperature::read(), PhaseLimitStabilization< Type >::read(), surfaceInterpolate::read(), moleFractions< ThermoType >::read(), surfaceDistance::read(), reactionsSensitivityAnalysis< chemistryType >::read(), areaWrite::read(), CodedSource< Type >::read(), multiFieldValue::read(), SemiImplicitSource< Type >::read(), MomentumTransferPhaseSystem< BasePhaseSystem >::read(), dimensioned< vector >::read(), Curle::read(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::read(), heThermo< BasicSolidThermo, MixtureType >::read(), sampledSurfaces::read(), actuationDiskSource::read(), waveModel::readDict(), readFields::readFields(), processorLduInterface::receive(), removeRegisteredObject::removeRegisteredObject(), runTimeControl::runTimeControl(), Scale< Type >::Scale(), globalIndex::scatter(), SemiImplicitSource< Type >::SemiImplicitSource(), processorLduInterface::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(), VTKedgeFormat::VTKedgeFormat(), VTKsurfaceFormat< Face >::VTKsurfaceFormat(), decomposedBlockData::writeBlocks(), writeCellCentres::writeCellCentres(), writeCellVolumes::writeCellVolumes(), Foam::ensightOutput::writeCloudField(), Foam::ensightOutput::writeCloudPositions(), Foam::ensightOutput::Detail::writeFieldContent(), Foam::vtk::writeListParallel(), Foam::vtk::writeListsParallel(), writeObjects::writeObjects(), XiReactionRate::XiReactionRate(), and ZoneMesh< cellZone, polyMesh >::ZoneMesh().

Here is the call graph for this function:

◆ read() [2/3]

void read ( Istream is,
List< T > &  list,
const dictionary dict 
)

In-place read with dictionary lookup.

Definition at line 33 of file blockMeshToolsTemplates.C.

References LList< LListBase, T >::append(), dict, Foam::exit(), IOstream::fatalCheck(), Foam::FatalIOError, FatalIOErrorInFunction, FUNCTION_NAME, token::info(), token::isLabel(), token::isPunctuation(), token::labelToken(), Foam::nl, Istream::putBack(), read(), Istream::readBeginList(), Istream::readEndList(), List< T >::resize(), and T.

Here is the call graph for this function:

◆ read() [3/3]

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

Return-read with dictionary lookup.

Definition at line 100 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 112 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 132 of file blockMeshTools.C.

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

Here is the call graph for this function: