Functions | |
| unitSet | newFraction () |
| unitSet | newPercent () |
| unitSet | newRadians () |
| unitSet | newRotations () |
| unitSet | newDegrees () |
| const HashTable< unitSet > & | table () |
| Get the table of unit conversions. More... | |
| void | add (const word &name, const unitSet &unit) |
| Add a unit conversion. More... | |
| const unitSet & | lookup (const word &unitName) |
| Lookup and return the named unit from the table. More... | |
| void | setLength (const unitSet &length) |
| Set the length scale to the given unit set. More... | |
| void | setLength (const scalar length) |
| Set the length scale to the given value. More... | |
Variables | |
| unitSet | length_ (dimensionSet(0, 1, 0, 0, 0), 0, 0, 1) |
| const unitSet | unitless |
| const unitSet | any |
| const unitSet | none |
| const unitSet | fraction |
| const unitSet | percent |
| const unitSet | radians |
| const unitSet | rotations |
| const unitSet | degrees |
| const unitSet & | length = Foam::units::length_ |
| unitSet Foam::units::newPercent | ( | ) |
| unitSet Foam::units::newRadians | ( | ) |
| unitSet Foam::units::newRotations | ( | ) |
Definition at line 107 of file units.C.
References Foam::constant::mathematical::pi().
Referenced by table().


| unitSet Foam::units::newDegrees | ( | ) |
Definition at line 112 of file units.C.
References Foam::constant::mathematical::pi().
Referenced by table().


| const Foam::HashTable< Foam::unitSet > & table | ( | ) |
Get the table of unit conversions.
Definition at line 142 of file units.C.
References Foam::addedUnitsPtr_(), any, token::BEGIN_SQR, Foam::dimless, token::END_SQR, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, forAllConstIter, found, HashTable< T, Key, Hash >::found(), HashTable< T, Key, Hash >::insert(), token::isNumber(), token::isPunctuation(), dictionary::lookup(), Foam::name(), dimensionSet::nDimensions, newDegrees(), newPercent(), newRadians(), newRotations(), tokeniser::nextToken(), token::number(), p, token::pToken(), Istream::putBack(), tokeniser::putBack(), tokeniser::stream(), dictionary::subDict(), Foam::unitsDict(), Foam::unitsPtr_(), and token::wordToken().
Referenced by Foam::operator>>(), and rigidBodyState::read().


Add a unit conversion.
Definition at line 331 of file units.C.
References Foam::addedUnitsPtr_(), Foam::deleteDemandDrivenData(), Foam::name(), Foam::unitsDictPtr_(), and Foam::unitsPtr_().
Referenced by engine::engine(), and engine::read().


| const Foam::unitSet & lookup | ( | const word & | unitName | ) |
Lookup and return the named unit from the table.
Definition at line 346 of file units.C.
References Foam::dimensions::table.
Referenced by greyMean::aCont(), wideBand::aCont(), solidificationMelting::addSupFields(), boundaryRegion::boundaryTypes(), fixedTemperature::constrain(), DAC< ThermoType >::DAC(), DRG< ThermoType >::DRG(), DRGEP< ThermoType >::DRGEP(), FacePostProcessing< CloudType >::FacePostProcessing(), if(), LocalInteraction< CloudType >::LocalInteraction(), cellTable::materialTypes(), boundaryRegion::names(), cellTable::names(), phaseSolidThermophysicalTransportModel::New(), userTime::New(), solidThermophysicalTransportModel::New(), omega::omega(), Foam::operator>>(), dictionary::operator[](), ParticleCollector< CloudType >::ParticleCollector(), ParticleErosion< CloudType >::ParticleErosion(), PatchPostProcessing< CloudType >::PatchPostProcessing(), PFA< ThermoType >::PFA(), multiphaseVoFMixture::read(), tolerances::read(), NASsurfaceFormat< Face >::read(), OBJsurfaceFormat< Face >::read(), STARCDsurfaceFormat< Face >::read(), generatedZoneSet::read(), STARCDsurfaceFormatCore::readInpCellTable(), Maxwell< BasicMomentumTransportModel >::readModeCoefficients(), cellTable::selectType(), UnsortedMeshedSurface< Face >::sortedZones(), dictionaryEntry::stream(), engine::units(), USERD_get_part_elements_by_type(), omega::write(), and Foam::zeroDimensionalFvMesh().

| void setLength | ( | const unitSet & | length | ) |
Set the length scale to the given unit set.
Definition at line 352 of file units.C.
References Foam::dimensions::length, length_, and unitSet::reset().

| void setLength | ( | const scalar | length | ) |
Set the length scale to the given value.
Definition at line 358 of file units.C.
References Foam::dimLength, Foam::dimensions::length, length_, and unitSet::reset().

| unitSet length_(dimensionSet(0, 1, 0, 0, 0), 0, 0, 1) | ( | dimensionSet(0, 1, 0, 0, 0) | , |
| 0 | , | ||
| 0 | , | ||
| 1 | |||
| ) |
|
extern |
|
extern |
Referenced by Coded< Type >::Coded(), dimensioned< scalar >::dimensioned(), unknownTypeFunction1::integral(), multiFixedValue::multiFixedValue(), Function1< scalar >::name(), normalise::normalise(), ProductFunction1s< Type, rank >::ProductFunction1s(), ProductFunction1s< Type, 0 >::ProductFunction1s(), table(), tabulatedCumulative::tabulatedCumulative(), tabulatedDensity::tabulatedDensity(), unknownTypeFunction1::value(), flowRateInletVelocityFvPatchVectorField::write(), flowRateOutletVelocityFvPatchVectorField::write(), swirlFlowRateInletVelocityFvPatchVectorField::write(), totalPressureVelocityMagnitudeLagrangianScalarFieldSource::write(), multiFixedValue::write(), tabulatedCumulative::write(), tabulatedDensity::write(), ProductFunction1s< Type, rank >::write(), ProductFunction1s< Type, 0 >::write(), and Foam::writeEntry().
|
extern |
Referenced by timeControl::active(), scalarTransport::execute(), timeControl::execute(), CrankNicolson< Type >::LagrangianmNoDdt(), Foam::name(), Foam::operator*(), Foam::operator+(), Foam::operator/(), plane::plane(), fvMesh::postConstruct(), Foam::pow(), surfaceFieldValue::processValuesTypeType(), volFieldValue::processValuesTypeType(), scalarTransport::read(), timeControl::read(), fvMesh::readUpdate(), timeControl::timeToNextAction(), Switch::valid(), surfaceFieldValue::write(), volFieldValue::write(), fanDirectionLagrangianVectorFieldSource::write(), totalPressureConeVelocityLagrangianVectorFieldSource::write(), totalPressureVelocityLagrangianVectorFieldSource::write(), surfaceFieldValue::writeFileHeader(), volFieldValue::writeFileHeader(), Time::writeIntervalUnits(), surfaceFieldValue::writeValues(), and volFieldValue::writeValues().
|
extern |
Referenced by coupledTemperatureFvPatchScalarField::coupledTemperatureFvPatchScalarField(), CrankNicolsonDdtScheme< Type >::CrankNicolsonDdtScheme(), LagrangianMesh::crossFaces(), reboundVelocityLagrangianPatchVectorField::evaluate(), stickVelocityLagrangianPatchVectorField::evaluate(), emptyLagrangianPatchField< Type >::evaluate(), processorCyclicLagrangianPatchField< Type >::evaluate(), symmetryLagrangianPatchField< Type >::evaluate(), symmetryPlaneLagrangianPatchField< Type >::evaluate(), cloudVelocityLagrangianPatch::evaluate(), nonConformalCyclicLagrangianPatch::evaluate(), nonConformalProcessorCyclicLagrangianPatch::evaluate(), processorLagrangianPatch::evaluate(), wedgeLagrangianPatch::evaluate(), externalTemperatureFvPatchScalarField::externalTemperatureFvPatchScalarField(), GodaJONSWAP::fFraction(), JONSWAP::fFraction(), PiersonMoskowitz::fFraction(), waveSpectrum::fFraction(), Foam::tracking::toCell< Foam::Pair< Foam::vector > >(), Foam::tracking::toFace< Foam::Pair< Foam::vector > >(), greyDiffusiveRadiationMixedFvPatchScalarField::greyDiffusiveRadiationMixedFvPatchScalarField(), particle::hitFace(), streamlinesParticle::hitNonConformalCyclicPatch(), particle::hitNonConformalCyclicPatch(), MomentumParcel< ParcelType >::hitNonConformalCyclicPatch(), nonConformalProcessorCyclicLagrangianPatch::initEvaluate(), processorLagrangianPatch::initEvaluate(), Square< Type >::integral(), LagrangianMesh::locate(), maxwellSlipUFvPatchVectorField::maxwellSlipUFvPatchVectorField(), mixedFvPatchField< Type >::mixedFvPatchField(), diskInjection::modify(), manualInjection::modify(), patchInjection::modify(), pointInjection::modify(), volumeInjection::modify(), LagrangianSubMesh::nf(), SprayCloud< CloudType >::penetration(), cloudFunctionObjectUList::postCrossFaces(), cloudBoundaryCollisionFlux::postCrossFaces(), cloudFlux::postCrossFaces(), cloudPosition::postCrossFaces(), cloudSurfaceDistribution::postCrossFaces(), cloudFunctionObjectUList::preCrossFaces(), cloudFlux::preCrossFaces(), radiationCoupledBase::radiationCoupledBase(), nonConformalCyclicPolyPatch::ray(), fvMatrix< Type >::setValue(), cloud::solve(), rays::srcToTgtRay(), rays::tgtToSrcRay(), thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField(), Foam::tracking::toMovingTri(), Foam::tracking::toStationaryTri(), LagrangianMesh::track(), particle::track(), particle::trackToAndHitFace(), particle::trackToCell(), particle::trackToFace(), LagrangianSubMesh::Uf(), unitSet::unitSet(), ReitzDiwakar< CloudType >::update(), ReitzKHRT< CloudType >::update(), plenumPressureFvPatchScalarField::updateCoeffs(), Square< Type >::value(), and wideBandDiffusiveRadiationMixedFvPatchScalarField::wideBandDiffusiveRadiationMixedFvPatchScalarField().
|
extern |
|
extern |
Referenced by omega::omega(), axisRotationMotion::read(), axialAngularSpring::read(), and omega::write().
|
extern |
|
extern |
Referenced by Foam::meshCheck::checkMesh(), Foam::degToRad(), EulerCoordinateRotation::EulerCoordinateRotation(), Foam::radToDeg(), checkMesh::read(), fixedTrim::read(), targetCoeffTrim::read(), sixDoFMotion::read(), refinementParameters::refinementParameters(), STARCDCoordinateRotation::STARCDCoordinateRotation(), cyclicTransform::str(), coneDirectionLagrangianVectorFieldSource::write(), coneDiskDirectionLagrangianVectorFieldSource::write(), fanDirectionLagrangianVectorFieldSource::write(), cyclicTransform::write(), constant::write(), dynamic::write(), and gravitational::write().
|
extern |