Tools for parsing label(List) with dictionary lookup. More...
Functions | |
void | read (Istream &, label &val, const dictionary &) |
template<class T > | |
void | read (Istream &, List< T > &list, const dictionary &) |
label | read (Istream &, const dictionary &) |
void | write (Ostream &, const label val, const dictionary &) |
const entry * | findEntry (const dictionary &dict, const label val) |
Tools for parsing label(List) with dictionary lookup.
void read | ( | Istream & | is, |
label & | val, | ||
const dictionary & | dict | ||
) |
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(), 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< Type >::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(), strainRateFunction::read(), BirdCarreau::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(), FixedValueConstraint< Type >::read(), LESModel< BasicTurbulenceModel >::read(), fixedReferenceTemperature::read(), PhaseLimitStabilization< Type >::read(), surfaceInterpolate::read(), moleFractions< ThermoType >::read(), surfaceDistance::read(), reactionsSensitivityAnalysis< chemistryType >::read(), areaWrite::read(), CodedSource< Type >::read(), multiFieldValue::read(), SemiImplicitSource::read(), MomentumTransferPhaseSystem< BasePhaseSystem >::read(), dimensioned< Type >::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::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(), UnsortedMeshedSurface< Face >::UnsortedMeshedSurface(), 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().
void read | ( | Istream & | is, |
List< T > & | list, | ||
const dictionary & | dict | ||
) |
Definition at line 26 of file blockMeshToolsTemplates.C.
References LList::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::resize(), and T.
Foam::label read | ( | Istream & | is, |
const dictionary & | dict | ||
) |
void write | ( | Ostream & | os, |
const label | val, | ||
const dictionary & | dict | ||
) |
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().
const Foam::entry * findEntry | ( | const dictionary & | dict, |
const label | val | ||
) |
Definition at line 125 of file blockMeshTools.C.
References dict, Foam::constant::electromagnetic::e, and Foam::resolveLabel().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.