Tools for parsing label(List) with dictionary lookup. More...
Functions | |
void | read (Istream &, label &, const dictionary &) |
In-place read with dictionary lookup. More... | |
template<class T > | |
void | read (Istream &, List< T > &, 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, const dictionary &) |
Write with dictionary lookup. More... | |
const keyType & | findEntry (const dictionary &, const label) |
Linear search for label entry. More... | |
Tools for parsing label(List) with dictionary lookup.
void read | ( | Istream & | is, |
label & | val, | ||
const dictionary & | dict | ||
) |
In-place read with dictionary lookup.
Definition at line 31 of file blockMeshTools.C.
References Foam::exit(), IOstream::fatalCheck(), Foam::FatalIOError, FatalIOErrorInFunction, token::info(), token::isLabel(), token::isWord(), token::labelToken(), dictionary::lookupScopedEntryPtr(), Foam::readLabel(), entry::stream(), and token::wordToken().
Referenced by AC3DsurfaceFormat< Face >::AC3DsurfaceFormat(), cloudSolution::cloudSolution(), CodedSource< Type >::CodedSource(), Pstream::combineGather(), Pstream::combineScatter(), processorLduInterface::compressedReceive(), processorLduInterface::compressedSend(), CSV< Type >::CSV(), dictionary::dictionary(), dimensioned< vector >::dimensioned(), mapDistributeBase::distribute(), edgeMesh::edgeMesh(), edgeMeshFormat::edgeMeshFormat(), Pstream::exchange(), extendedEdgeMeshFormat::extendedEdgeMeshFormat(), extendedFeatureEdgeMeshFormat::extendedFeatureEdgeMeshFormat(), FixedValueConstraint< Type >::FixedValueConstraint(), globalIndex::gather(), GTSsurfaceFormat< Face >::GTSsurfaceFormat(), HashPtrTable< ThermoType >::HashPtrTable(), ILList< LListBase, T >::ILList(), processorFvPatchField< Type >::initEvaluate(), processorFvPatchField< Type >::initInterfaceMatrixUpdate(), processorCyclicPointPatchField< Type >::initSwapAddSeparated(), IOPtrList< coordinateSystem >::IOPtrList(), Pstream::listCombineGather(), Pstream::listCombineScatter(), LPtrList< LListBase, T >::LPtrList(), MeshedSurface< Foam::face >::MeshedSurface(), IOOutputFilter< OutputFilter >::movePoints(), MultiInteraction< CloudType >::MultiInteraction(), NASedgeFormat::NASedgeFormat(), NASsurfaceFormat< Face >::NASsurfaceFormat(), OBJedgeFormat::OBJedgeFormat(), OBJsurfaceFormat< Face >::OBJsurfaceFormat(), OFFsurfaceFormat< Face >::OFFsurfaceFormat(), OFSsurfaceFormat< Face >::OFSsurfaceFormat(), PackedList< 2 >::PackedList(), PtrList< transferModel >::PtrList(), read(), linearViscousStress< RASModel< BasicTurbulenceModel > >::read(), extendedFeatureEdgeMeshFormat::read(), noCombustion< CombThermoType >::read(), options::read(), EddyDiffusivity< compressible::turbulenceModel >::read(), eddyViscosity< RASModel< BasicTurbulenceModel > >::read(), FixedValueConstraint< Type >::read(), singleStepCombustion< CombThermoType, ThermoType >::read(), specieReactionRates< ChemistryModelType >::read(), OFSsurfaceFormat< Face >::read(), laminar< Type >::read(), ReynoldsStress< RASModel< BasicTurbulenceModel > >::read(), zoneCombustion< Type >::read(), IOOutputFilter< OutputFilter >::read(), blockVertex::read(), edgeMeshFormat::read(), laminarModel< BasicTurbulenceModel >::read(), RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > >::read(), LESModel< BasicTurbulenceModel >::read(), EDC< Type >::read(), SemiImplicitSource< Type >::read(), CodedSource< Type >::read(), kOmegaSST< LESeddyViscosity< BasicTurbulenceModel >, BasicTurbulenceModel >::read(), heThermo< BasicSolidThermo, MixtureType >::read(), rotorDiskSource::read(), MeshedSurface< Foam::face >::read(), processorLduInterface::receive(), Scale< Type >::Scale(), globalIndex::scatter(), SemiImplicitSource< Type >::SemiImplicitSource(), processorLduInterface::send(), Sine< Type >::Sine(), LUscalarMatrix::solve(), Square< Type >::Square(), STARCDsurfaceFormat< Face >::STARCDsurfaceFormat(), STLsurfaceFormat< Face >::STLsurfaceFormat(), processorCyclicPointPatchField< Type >::swapAddSeparated(), TRIsurfaceFormat< Face >::TRIsurfaceFormat(), TRIsurfaceFormatCore::TRIsurfaceFormatCore(), IOOutputFilter< OutputFilter >::updateMesh(), VTKedgeFormat::VTKedgeFormat(), VTKsurfaceFormat< Face >::VTKsurfaceFormat(), and ZoneMesh< cellZone, polyMesh >::ZoneMesh().
void read | ( | Istream & | is, |
List< T > & | L, | ||
const dictionary & | dict | ||
) |
In-place read with dictionary lookup.
Definition at line 30 of file blockMeshToolsTemplates.C.
References LList< LListBase, T >::append(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, token::info(), token::isLabel(), token::isPunctuation(), token::labelToken(), token::pToken(), Istream::putBack(), read(), Istream::readBeginList(), Istream::readEndList(), s(), List< T >::setSize(), and T.
Foam::List< T > read | ( | Istream & | is, |
const dictionary & | dict | ||
) |
Return-read with dictionary lookup.
Definition at line 80 of file blockMeshTools.C.
References read(), and write().
void write | ( | Ostream & | os, |
const label | val, | ||
const dictionary & | dict | ||
) |
Write with dictionary lookup.
Definition at line 92 of file blockMeshTools.C.
References findEntry(), forAllConstIter(), and Foam::readLabel().
Referenced by arraySet::arraySet(), meshRefinement::balanceAndRefine(), triSurface::checkEdges(), circleSet::circleSet(), cloudSet::cloudSet(), Pstream::combineGather(), Pstream::combineScatter(), processorLduInterface::compressedSend(), constAnIsoSolidTransport< Thermo >::constAnIsoSolidTransport(), constIsoSolidTransport< Thermo >::constIsoSolidTransport(), constTransport< Thermo >::constTransport(), fvFieldDecomposer::decomposeFields(), mapDistributeBase::distribute(), ensightGeoFile::ensightGeoFile(), Pstream::exchange(), exponentialSolidTransport< Thermo >::exponentialSolidTransport(), faceOnlySet::faceOnlySet(), GAMGSolver::GAMGSolver(), globalIndex::gather(), Foam::stringOps::getVariable(), processorFvPatchField< Type >::initEvaluate(), processorFvPatchField< Type >::initInterfaceMatrixUpdate(), processorCyclicPointPatchField< Type >::initSwapAddSeparated(), Foam::stringOps::inplaceExpand(), NonEquilibriumReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::kr(), ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::kr(), Pstream::listCombineGather(), Pstream::listCombineScatter(), meshRefinement::mergeEdgesUndo(), meshRefinement::mergePatchFacesUndo(), midPointAndFaceSet::midPointAndFaceSet(), midPointSet::midPointSet(), dictionary::parent(), patchCloudSet::patchCloudSet(), patchSeedSet::patchSeedSet(), polyLineSet::polyLineSet(), regionModelFunctionObject::postEvolveRegion(), read(), Foam::reconstructLagrangianPositions(), codedMixedFvPatchField< Type >::redirectPatchField(), meshRefinement::refineAndBalance(), globalIndex::scatter(), processorLduInterface::send(), LUscalarMatrix::solve(), triSurfaceMeshPointSet::triSurfaceMeshPointSet(), thermo< Thermo, Type >::typeName(), uniformSet::uniformSet(), AC3DsurfaceFormat< Face >::write(), OBJstream::write(), specieReactionRates< ChemistryModelType >::write(), CloudSubModelBase< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::write(), DispersionRASModel< CloudType >::write(), edgeMeshFormat::write(), processorField::write(), IOOutputFilter< OutputFilter >::write(), blockVertex::write(), cellMotionFvPatchField< Type >::write(), timeVaryingAlphaContactAngleFvPatchScalarField::write(), constantAlphaContactAngleFvPatchScalarField::write(), inclinedFilmNusseltHeightFvPatchScalarField::write(), fixedNormalSlipPointPatchField< Type >::write(), timeVaryingUniformFixedValuePointPatchField< Type >::write(), perfectGas< Specie >::write(), fixedFluxPressureFvPatchScalarField::write(), rhoConst< Specie >::write(), hConstThermo< EquationOfState >::write(), alphaContactAngleFvPatchScalarField::write(), solidBodyMotionDisplacementPointPatchVectorField::write(), hRefConstThermo< EquationOfState >::write(), kqRWallFunctionFvPatchField< Type >::write(), eConstThermo< EquationOfState >::write(), sutherlandTransport< Thermo >::write(), writer< Foam::SphericalTensor >::write(), uniformFixedValuePointPatchField< Type >::write(), perfectFluid< Specie >::write(), incompressiblePerfectGas< Specie >::write(), linear< Type >::write(), IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::write(), fixedMeanFvPatchField< Type >::write(), NonEquilibriumReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::write(), valuePointPatchField< vector >::write(), calculatedFvPatchField< Type >::write(), uniformFixedValueFvPatchField< Type >::write(), freestreamFvPatchField< Type >::write(), adiabaticPerfectFluid< Specie >::write(), uniformFixedGradientFvPatchField< Type >::write(), PengRobinsonGas< Specie >::write(), polynomialSolidTransport< Thermo, PolySize >::write(), Boussinesq< Specie >::write(), mappedFixedInternalValueFvPatchField< Type >::write(), ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::write(), polynomialTransport< Thermo, PolySize >::write(), outletInletFvPatchField< Type >::write(), uniformJumpAMIFvPatchField< Type >::write(), uniformJumpFvPatchField< Type >::write(), temperatureDependentAlphaContactAngleFvPatchScalarField::write(), wideBandDiffusiveRadiationMixedFvPatchScalarField::write(), outletMappedUniformInletFvPatchField< Type >::write(), mappedFixedPushedInternalValueFvPatchField< Type >::write(), janafThermo< EquationOfState >::write(), variableHeightFlowRateInletVelocityFvPatchVectorField::write(), inletOutletFvPatchField< Type >::write(), icoPolynomial< Specie, PolySize >::write(), fixedJumpAMIFvPatchField< scalar >::write(), greyDiffusiveViewFactorFixedValueFvPatchScalarField::write(), waveAlphaFvPatchScalarField::write(), timeVaryingMappedFixedValuePointPatchField< Type >::write(), greyDiffusiveRadiationMixedFvPatchScalarField::write(), logPolynomialTransport< Thermo, PolySize >::write(), fixedJumpFvPatchField< scalar >::write(), fixedValueFvPatchField< scalar >::write(), surfaceDisplacementPointPatchVectorField::write(), MarshakRadiationFvPatchScalarField::write(), MarshakRadiationFixedTemperatureFvPatchScalarField::write(), uniformInletOutletFvPatchField< Type >::write(), mappedFixedValueFvPatchField< Type >::write(), hPolynomialThermo< EquationOfState, PolySize >::write(), directionMixedFvPatchField< Type >::write(), fanFvPatchField< Type >::write(), slicedFvPatchField< Type >::write(), fixedNormalSlipFvPatchField< Type >::write(), partialSlipFvPatchField< Type >::write(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::write(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::write(), coupledFvPatchField< scalar >::write(), cyclicFvPatchField< Type >::write(), waveVelocityFvPatchVectorField::write(), fixedProfileFvPatchField< Type >::write(), cyclicAMIFvPatchField< Type >::write(), codedFixedValueFvPatchField< Type >::write(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::write(), codedFixedValuePointPatchField< Type >::write(), mappedFieldFvPatchField< Type >::write(), blockDescriptor::write(), waveTransmissiveFvPatchField< Type >::write(), codedMixedFvPatchField< Type >::write(), advectiveFvPatchField< Type >::write(), thermalBaffle1DFvPatchScalarField< solidType >::write(), UnsortedMeshedSurface< Face >::write(), fixedGradientFvPatchField< Type >::write(), cyclicACMIFvPatchField< Type >::write(), timeVaryingMappedFixedValueFvPatchField< Type >::write(), turbulentInletFvPatchField< Type >::write(), MeshedSurface< Foam::face >::write(), mixedFvPatchField< scalar >::write(), thermo< Thermo, Type >::write(), externalCoupledMixedFvPatchField< scalar >::write(), meshRefinement::write(), Foam::writeCellGraph(), writer< Foam::SphericalTensor >::writeCoord(), Foam::writePatchGraph(), OBJstream::writeQuoted(), and writer< Foam::SphericalTensor >::writeTable().
const Foam::keyType & findEntry | ( | const dictionary & | dict, |
const label | val | ||
) |
Linear search for label entry.
Definition at line 115 of file blockMeshTools.C.
References forAllConstIter(), and Foam::readLabel().
Referenced by write().