Generic dimensioned Type class. More...
Public Types | |
typedef Type | value_type |
The underlying data type. More... | |
typedef pTraits< Type >::cmptType | cmptType |
Component type. More... | |
Public Member Functions | |
dimensioned () | |
A dimensionless Zero, named "0". More... | |
dimensioned (const dimensionSet &dims) | |
A dimensioned Zero, named "0". More... | |
dimensioned (const dimensionSet &dims, const zero) | |
A dimensioned Zero, named "0". More... | |
dimensioned (const Type &val) | |
Implicit construct dimensionless from given value. More... | |
dimensioned (const word &name, const dimensioned< Type > &dt) | |
Copy construct dimensioned Type with a new name. More... | |
dimensioned (const word &name, const dimensionSet &dims, const Type &val) | |
Construct from components (name, dimensions, value). More... | |
dimensioned (const primitiveEntry &e) | |
Construct from primitive entry with given name. More... | |
dimensioned (const primitiveEntry &e, const dimensionSet &dims) | |
Construct from primitive entry with given name and dimensions. More... | |
dimensioned (const word &name, const dictionary &dict) | |
Construct from dictionary lookup with a given name. More... | |
dimensioned (const word &name, const dimensionSet &dims, const dictionary &dict) | |
Construct from dictionary lookup with a given name and dimensions. More... | |
dimensioned (const word &name, const dimensionSet &dims, const dictionary &dict, const word &entryName) | |
Construct from dictionary lookup with a given name and dimensions. More... | |
dimensioned (const word &name, const dimensionSet &dims, const Type &val, const dictionary &dict) | |
const word & | name () const |
Return const reference to name. More... | |
word & | name () |
Return non-const reference to name. More... | |
const dimensionSet & | dimensions () const |
Return const reference to dimensions. More... | |
dimensionSet & | dimensions () |
Return non-const reference to dimensions. More... | |
const Type & | value () const |
Return const reference to value. More... | |
Type & | value () |
Return non-const reference to value. More... | |
dimensioned< cmptType > | component (const direction d) const |
Return a component as a dimensioned<cmptType> More... | |
void | replace (const direction d, const dimensioned< cmptType > &dc) |
Return a component with a dimensioned<cmptType> More... | |
dimensioned< Type > | T () const |
Return transpose. More... | |
bool | read (const dictionary &dict) |
bool | readIfPresent (const dictionary &dict) |
bool | read (const word &entryName, const dictionary &dict) |
bool | readIfPresent (const word &entryName, const dictionary &dict) |
Istream & | read (Istream &is, const bool readName=true) |
Istream & | read (Istream &is, const dictionary &readSet) |
Istream & | read (Istream &is, const HashTable< dimensionedScalar > &readSet) |
void | writeEntry (const word &keyword, Ostream &os) const |
Write as a dictionary entry with keyword. More... | |
dimensioned< cmptType > | operator[] (const direction d) const |
Return a component as a dimensioned<cmptType> More... | |
void | operator+= (const dimensioned< Type > &dt) |
void | operator-= (const dimensioned< Type > &dt) |
void | operator*= (const scalar s) |
void | operator/= (const scalar s) |
dimensioned (Istream &is) FOAM_DEPRECATED(2018-11) | |
dimensioned (const word &name, Istream &is) FOAM_DEPRECATED(2018-11) | |
dimensioned (const word &name, const dimensionSet &dims, Istream &is) FOAM_DEPRECATED(2018-11) | |
Static Public Member Functions | |
static dimensioned< Type > | getOrDefault (const word &name, const dictionary &dict, const dimensionSet &dims=dimless, const Type &deflt=Type(Zero)) |
static dimensioned< Type > | getOrDefault (const word &name, const dictionary &dict, const Type &deflt=Type(Zero)) |
Construct dimensionless from dictionary, with default value. More... | |
static dimensioned< Type > | getOrAddToDict (const word &name, dictionary &dict, const dimensionSet &dims=dimless, const Type &deflt=Type(Zero)) |
Construct dimensioned from dictionary, with default value. More... | |
static dimensioned< Type > | getOrAddToDict (const word &name, dictionary &dict, const Type &deflt=Type(Zero)) |
Construct dimensionless from dictionary, with default value. More... | |
static dimensioned< Type > | lookupOrDefault (const word &name, const dictionary &dict, const dimensionSet &dims=dimless, const Type &deflt=Type(Zero)) |
static dimensioned< Type > | lookupOrDefault (const word &name, const dictionary &dict, const Type &deflt=Type(Zero)) |
Construct dimensionless from dictionary, with default value. More... | |
static dimensioned< Type > | lookupOrAddToDict (const word &name, dictionary &dict, const dimensionSet &dims=dimless, const Type &deflt=Type(Zero)) |
Construct dimensioned from dictionary, with default value. More... | |
static dimensioned< Type > | lookupOrAddToDict (const word &name, dictionary &dict, const Type &deflt=Type(Zero)) |
Construct dimensionless from dictionary, with default value. More... | |
Friends | |
Istream & | operator>> (Istream &is, dimensioned< Type > &dt) |
Read from stream. The name and dimensions are optional. More... | |
Generic dimensioned Type class.
Definition at line 43 of file dimensionedScalarFwd.H.
typedef Type value_type |
The underlying data type.
Definition at line 117 of file dimensionedType.H.
Component type.
Definition at line 120 of file dimensionedType.H.
dimensioned | ( | ) |
A dimensionless Zero, named "0".
Definition at line 113 of file dimensionedType.C.
|
explicit |
A dimensioned Zero, named "0".
Definition at line 122 of file dimensionedType.C.
|
explicit |
A dimensioned Zero, named "0".
Definition at line 131 of file dimensionedType.C.
|
inline |
Implicit construct dimensionless from given value.
Definition at line 135 of file dimensionedType.H.
dimensioned | ( | const word & | name, |
const dimensioned< Type > & | dt | ||
) |
Copy construct dimensioned Type with a new name.
Definition at line 141 of file dimensionedType.C.
dimensioned | ( | const word & | name, |
const dimensionSet & | dims, | ||
const Type & | val | ||
) |
Construct from components (name, dimensions, value).
Definition at line 154 of file dimensionedType.C.
|
explicit |
Construct from primitive entry with given name.
The entry may contain optional name and dimensions.
[name] [dims] value
If the optional name is found, it is used for renaming. If the optional dimensions are present, they are read and used without further verification. If no dimensions are found, the quantity is dimensionless. Fatal if not primitiveEntry or if number of tokens is incorrect.
Definition at line 168 of file dimensionedType.C.
|
explicit |
Construct from primitive entry with given name and dimensions.
The entry may contain optional name and dimensions.
[name] [dims] value
If the optional name is found, it is used for renaming. If the optional dimensions are present, they are read and verified against the expected dimensions. Fatal if not primitiveEntry or if number of tokens is incorrect.
Definition at line 187 of file dimensionedType.C.
dimensioned | ( | const word & | name, |
const dictionary & | dict | ||
) |
Construct from dictionary lookup with a given name.
The entry may contain optional name and dimensions.
[name] [dims] value
If the optional name is found, it is used for renaming. If the optional dimensions are present, they are read and used without further verification. If no dimensions are found, the quantity is dimensionless.
Definition at line 207 of file dimensionedType.C.
dimensioned | ( | const word & | name, |
const dimensionSet & | dims, | ||
const dictionary & | dict | ||
) |
Construct from dictionary lookup with a given name and dimensions.
The entry may contain optional name and dimensions.
[name] [dims] value
If the optional name is found, it is used for renaming. If the optional dimensions are present, they are read and verified against the expected dimensions.
Definition at line 223 of file dimensionedType.C.
dimensioned | ( | const word & | name, |
const dimensionSet & | dims, | ||
const dictionary & | dict, | ||
const word & | entryName | ||
) |
Construct from dictionary lookup with a given name and dimensions.
The entry may contain optional name and dimensions.
[name] [dims] value
If the optional name is found, it is used for renaming. If the optional dimensions are present, they are read and verified against the expected dimensions.
entryName | dictionary lookup name |
Definition at line 240 of file dimensionedType.C.
dimensioned | ( | const word & | name, |
const dimensionSet & | dims, | ||
const Type & | val, | ||
const dictionary & | dict | ||
) |
Construct from components (name, dimensions, value) with optional dictionary override.
The entry may contain optional name and dimensions.
[name] [dims] value
Definition at line 258 of file dimensionedType.C.
|
explicit |
Deprecated(2018-11) Construct from Istream (expects name, dimensions, value)
Definition at line 275 of file dimensionedType.C.
dimensioned | ( | const word & | name, |
Istream & | is | ||
) |
Deprecated(2018-11) Construct from Istream with given name (expects dimensions, value)
Definition at line 285 of file dimensionedType.C.
dimensioned | ( | const word & | name, |
const dimensionSet & | dims, | ||
Istream & | is | ||
) |
Deprecated(2018-11) Construct from Istream with given name and expected dimensions.
Expects value, but supports optional name and dimensions. If the optional dimensions are present, they are read and verified against the expected dimensions.
Definition at line 299 of file dimensionedType.C.
|
static |
Construct dimensioned from dictionary, with default value. FatalIOError if there are excess tokens.
Definition at line 318 of file dimensionedType.C.
Referenced by dimensioned< vector >::lookupOrDefault().
|
static |
Construct dimensionless from dictionary, with default value.
FatalIOError if it is found and there are excess tokens.
Definition at line 332 of file dimensionedType.C.
|
static |
Construct dimensioned from dictionary, with default value.
If the value is not found, it is added into the dictionary. FatalIOError if it is found and there are excess tokens.
Definition at line 344 of file dimensionedType.C.
Referenced by dimensioned< vector >::lookupOrAddToDict().
|
static |
Construct dimensionless from dictionary, with default value.
If the value is not found, it is added into the dictionary. FatalIOError if it is found and there are excess tokens.
Definition at line 363 of file dimensionedType.C.
const Foam::word & name | ( | ) | const |
Return const reference to name.
Definition at line 376 of file dimensionedType.C.
Referenced by Foam::atan2(), Foam::cbrt(), Foam::checkMethod(), Foam::cof(), Foam::fac::d2dt2(), Foam::fvc::ddt(), Foam::fac::ddt(), Foam::fvm::ddt(), Foam::det(), Foam::dev(), Foam::dev2(), Foam::eigenValues(), Foam::eigenVectors(), EulerFaD2dt2Scheme< Type >::facD2dt2(), steadyStateFaDdtScheme< Type >::facDdt(), EulerFaDdtScheme< Type >::facDdt(), backwardFaDdtScheme< Type >::facDdt(), boundedBackwardFaDdtScheme::facDdt(), steadyStateFaDdtScheme< Type >::facDdt0(), EulerFaDdtScheme< Type >::facDdt0(), backwardFaDdtScheme< Type >::facDdt0(), boundedBackwardFaDdtScheme::facDdt0(), forAll(), steadyStateDdtScheme< Type >::fvcDdt(), EulerDdtScheme< Type >::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), localEulerDdtScheme< Type >::fvcDdt(), CrankNicolsonDdtScheme< Type >::fvcDdt(), CrankNicolsonDdtScheme< Type >::fvmDdt(), Foam::innerSqr(), Foam::inv(), dimensioned< vector >::lookupOrAddToDict(), dimensioned< vector >::lookupOrDefault(), Foam::neg(), Foam::neg0(), Foam::negPart(), seriesLess::operator()(), Foam::operator*(), Time::operator++(), Foam::operator==(), Foam::pos(), Foam::pos0(), Foam::posPart(), Foam::pow(), Foam::pow025(), Foam::pow3(), Foam::pow4(), Foam::pow5(), Foam::pow6(), Time::readDict(), Time::setTime(), Foam::sign(), Foam::skew(), multiphaseSystem::solve(), Foam::sqr(), Foam::sqrt(), Foam::stabilise(), Foam::symm(), dimensioned< vector >::T(), Time::timeName(), Foam::tr(), Foam::twoSymm(), dimensionSet::write(), and regionSizeDistribution::write().
Foam::word & name | ( | ) |
Return non-const reference to name.
Definition at line 383 of file dimensionedType.C.
const Foam::dimensionSet & dimensions | ( | ) | const |
Return const reference to dimensions.
Definition at line 390 of file dimensionedType.C.
Referenced by DarcyForchheimer::calcTransformModelData(), Foam::cbrt(), Foam::checkMethod(), Foam::cof(), Foam::det(), Foam::dev(), Foam::dev2(), dimensionSets::dimensionSets(), Foam::eigenValues(), EulerFaD2dt2Scheme< Type >::facD2dt2(), steadyStateFaDdtScheme< Type >::facDdt(), EulerFaDdtScheme< Type >::facDdt(), backwardFaDdtScheme< Type >::facDdt(), boundedBackwardFaDdtScheme::facDdt(), steadyStateFaDdtScheme< Type >::facDdt0(), EulerFaDdtScheme< Type >::facDdt0(), backwardFaDdtScheme< Type >::facDdt0(), boundedBackwardFaDdtScheme::facDdt0(), EulerD2dt2Scheme< Type >::fvcD2dt2(), steadyStateDdtScheme< Type >::fvcDdt(), EulerDdtScheme< Type >::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), localEulerDdtScheme< Type >::fvcDdt(), CrankNicolsonDdtScheme< Type >::fvcDdt(), steadyStateDdtScheme< Type >::fvmDdt(), EulerDdtScheme< Type >::fvmDdt(), CoEulerDdtScheme< Type >::fvmDdt(), backwardDdtScheme< Type >::fvmDdt(), SLTSDdtScheme< Type >::fvmDdt(), localEulerDdtScheme< Type >::fvmDdt(), ddtScheme< Type >::fvmDdt(), CrankNicolsonDdtScheme< Type >::fvmDdt(), heSolidThermo< BasicSolidThermo, MixtureType >::heSolidThermo(), Foam::innerSqr(), Foam::inv(), Foam::makeDimensionedMinMax(), Foam::neg(), Foam::neg0(), Foam::negPart(), optionList::operator()(), optionAdjointList::operator()(), Foam::operator*(), DimensionedField< Type, Foam::pointMesh >::operator=(), Foam::pos(), Foam::pos0(), Foam::posPart(), Foam::pow(), Foam::pow025(), Foam::pow3(), Foam::pow4(), Foam::pow5(), Foam::pow6(), dimensionSet::read(), Foam::sign(), Foam::skew(), Foam::fam::Sp(), Foam::sqr(), Foam::sqrt(), Foam::stabilise(), Foam::symm(), dimensioned< vector >::T(), Foam::tr(), and Foam::twoSymm().
Foam::dimensionSet & dimensions | ( | ) |
Return non-const reference to dimensions.
Definition at line 397 of file dimensionedType.C.
const Type & value | ( | ) | const |
Return const reference to value.
Definition at line 404 of file dimensionedType.C.
Referenced by tabulated6DoFAcceleration::acceleration(), objective::accumulateJMean(), interRegionHeatTransferModel::addSup(), powerLawUniformBinary::addToBinaryBreakupRate(), hydrodynamic::addToCoalescenceRate(), wallBoiling::addToNucleationRate(), porosityModel::adjustNegativeResistance(), maxDurationCondition::apply(), Foam::atan2(), surfaceWriter::beginTime(), Foam::bound(), NonInertialFrameForce< CloudType >::cacheFields(), Curle::calc(), SprayParcel< ParcelType >::calcAtomization(), BrownianMotionForce< CloudType >::calcCoupled(), ThermoParcel< ParcelType >::calcHeatTransfer(), SRFForce< CloudType >::calcNonCoupled(), ParamagneticForce< CloudType >::calcNonCoupled(), powerLaw::calcNu(), DarcyForchheimer::calcTransformModelData(), viewFactor::calculate(), Foam::cbrt(), SIMPLEControlSingleRun::checkEndTime(), GeometricField< Type, fvPatchField, volMesh >::clip(), Foam::cof(), fixedTemperatureConstraint::constrain(), constantNucleation::correct(), BrunDrippingInjection::correct(), adjointSpalartAllmaras::correct(), logFiles::createFiles(), curvatureSeparation::curvatureSeparation(), thermoCoupleProbes::derivatives(), DEShybrid< Type >::DEShybrid(), Foam::det(), Foam::dev(), Foam::dev2(), adjointSpalartAllmaras::diffusionCoeffVar1(), Foam::eigenValues(), Foam::eigenVectors(), engineMesh::engineMesh(), ThermoCloud< Foam::DSMCCloud >::Ep(), DSMCCloud< ParcelType >::equipartitionInternalEnergy(), dimensionedScalarEntry::evaluate(), EulerFaD2dt2Scheme< Type >::facD2dt2(), EulerFaDdtScheme< Type >::facDdt(), backwardFaDdtScheme< Type >::facDdt(), boundedBackwardFaDdtScheme::facDdt(), EulerFaDdtScheme< Type >::facDdt0(), backwardFaDdtScheme< Type >::facDdt0(), boundedBackwardFaDdtScheme::facDdt0(), interfaceTrackingFvMesh::freeSurfacePressureJump(), basicCombustionMixture::fres(), EulerD2dt2Scheme< Type >::fvcD2dt2(), EulerDdtScheme< Type >::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), waveMakerPointPatchVectorField::g(), populationBalanceModel::gamma(), GeometricField< Type, fvPatchField, volMesh >::GeometricField(), if(), reactingOneDim::info(), InjectionModel< CloudType >::injectSteadyState(), Foam::innerSqr(), Foam::inv(), Foam::invTransform(), objective::isWithinIntegrationTime(), laminarFlameSpeed::laminarFlameSpeed(), hexRef8::level0EdgeLength(), pressureControl::limit(), ArdenBuck::lnPSat(), Foam::makeDimensionedMinMax(), GeometricField< Type, fvPatchField, volMesh >::max(), GeometricField< Type, fvPatchField, volMesh >::min(), inhomogeneousMixture< ThermoType >::mixture(), egrMixture< ThermoType >::mixture(), movingConeTopoFvMesh::movingConeTopoFvMesh(), Foam::neg(), Foam::neg0(), Foam::negPart(), Schaeffer::nu(), JohnsonJacksonSchaeffer::nu(), Foam::operator!=(), seriesLess::operator()(), Instant< T >::less::operator()(), Foam::operator*(), Foam::operator+(), Time::operator+=(), Foam::operator-(), Foam::operator<(), Foam::operator<<(), DimensionedField< Type, Foam::pointMesh >::operator=(), GeometricField< Type, fvPatchField, volMesh >::operator=(), Foam::operator==(), GeometricField< Type, fvPatchField, volMesh >::operator==(), Foam::operator>(), Foam::operator>>(), UniformDimensionedField< vector >::operator[](), PatchFlowRateInjection< CloudType >::parcelsToInject(), freePiston::pistonPosition(), pointHistory::pointHistory(), Foam::pos(), Foam::pos0(), Foam::posPart(), Foam::pow(), Foam::pow025(), Foam::pow3(), Foam::pow4(), Foam::pow5(), Foam::pow6(), dimensionSet::read(), SIMPLEControlSingleRun::readIters(), GeometricField< Type, fvPatchField, volMesh >::replace(), linearSpringDamper::restrain(), incompressibleTwoPhaseInteractingMixture::rho(), rpm::rpm(), timeSelector::selectIfPresent(), powerLaw::setBreakupRate(), exponential::setBreakupRate(), scene::setCamera(), Time::setDeltaT(), Time::setEndTime(), vtmWriter::setTime(), Time::setTime(), masterUncollatedFileOperation::setTime(), constantRadiation::Shs(), Foam::sign(), Foam::skew(), sixDoFRigidBodyMotionSolver::solve(), rigidBodyMeshMotionSolver::solve(), rigidBodyMeshMotion::solve(), thermalBaffle::solveEnergy(), adjointSimple::solveIter(), Foam::fam::Sp(), Foam::sqr(), Foam::sqrt(), Foam::stabilise(), particle< Type >::stepFractionSpan(), Foam::symm(), dimensioned< vector >::T(), Foam::tr(), Foam::transform(), Foam::twoSymm(), interfaceTrackingFvMesh::update(), oscillatingDisplacementPointPatchVectorField::updateCoeffs(), waveDisplacementPointPatchVectorField::updateCoeffs(), oscillatingVelocityPointPatchVectorField::updateCoeffs(), angularOscillatingVelocityPointPatchVectorField::updateCoeffs(), angularOscillatingDisplacementPointPatchVectorField::updateCoeffs(), JohnsonJacksonParticleSlipFvPatchVectorField::updateCoeffs(), JohnsonJacksonParticleThetaFvPatchScalarField::updateCoeffs(), fixedIncidentRadiationFvPatchScalarField::updateCoeffs(), MarshakRadiationFvPatchScalarField::updateCoeffs(), fixedPressureCompressibleDensityFvPatchScalarField::updateCoeffs(), MarshakRadiationFixedTemperatureFvPatchScalarField::updateCoeffs(), SRFFreestreamVelocityFvPatchVectorField::updateCoeffs(), Sine< Type >::value(), PatchFlowRateInjection< CloudType >::volumeToInject(), fvMesh::Vsc(), fvMesh::Vsc0(), objectiveForceTarget::write(), objectivePartialVolume::write(), objectivePtLosses::write(), FacePostProcessing< CloudType >::write(), ParticleCollector< CloudType >::write(), dimensionSet::write(), objective::write(), objective::writeInstantaneousValue(), and objective::writeMeanValue().
Type & value | ( | ) |
Return non-const reference to value.
Definition at line 411 of file dimensionedType.C.
Foam::dimensioned< typename Foam::dimensioned< Type >::cmptType > component | ( | const direction | d | ) | const |
Return a component as a dimensioned<cmptType>
Definition at line 420 of file dimensionedType.C.
Referenced by Foam::ComplexField(), Foam::ReComplexField(), and coordinateScaling< scalar >::transform().
void replace | ( | const direction | d, |
const dimensioned< cmptType > & | dc | ||
) |
Return a component with a dimensioned<cmptType>
Definition at line 435 of file dimensionedType.C.
dimensionedTensor T | ( | ) | const |
Return transpose.
Definition at line 38 of file dimensionedSphericalTensor.C.
Referenced by eddy::eddy(), Foam::inv(), leastSquares::stencilWeights(), dimensioned< vector >::T(), and SVD::VSinvUt().
bool read | ( | const dictionary & | dict | ) |
Update the value of dimensioned<Type>, lookup in dictionary with the name().
Definition at line 446 of file dimensionedType.C.
Referenced by Foam::unitSet().
bool readIfPresent | ( | const dictionary & | dict | ) |
Update the value of dimensioned<Type> if found in the dictionary, lookup in dictionary with the name().
Definition at line 453 of file dimensionedType.C.
Referenced by crankConRod::crankConRod(), ShihQuadraticKE::read(), LamBremhorstKE::read(), phasePressureModel::read(), qZeta::read(), LienLeschziner::read(), LienCubicKE::read(), SpalartAllmaras< BasicTurbulenceModel >::read(), SpalartAllmarasDES< BasicTurbulenceModel >::read(), kkLOmega::read(), adjointSpalartAllmaras::read(), and sixDoFRigidBodyMotionSolver::solve().
bool read | ( | const word & | entryName, |
const dictionary & | dict | ||
) |
Update the value of dimensioned<Type>, using an alternative entry name
Definition at line 461 of file dimensionedType.C.
bool readIfPresent | ( | const word & | entryName, |
const dictionary & | dict | ||
) |
Update the value of dimensioned<Type> if found in the dictionary, using an alternative entry name
Definition at line 473 of file dimensionedType.C.
Foam::Istream & read | ( | Istream & | is, |
const bool | readName = true |
||
) |
Read (name, dimensions, value) from stream, using units from system table.
Optionally skip reading the name
Definition at line 484 of file dimensionedType.C.
Foam::Istream & read | ( | Istream & | is, |
const dictionary & | readSet | ||
) |
Read (name, dimensions, value) from stream, using units from dictionary
Definition at line 507 of file dimensionedType.C.
Foam::Istream & read | ( | Istream & | is, |
const HashTable< dimensionedScalar > & | readSet | ||
) |
Read (name, dimensions, value) from stream, using units from table
Definition at line 527 of file dimensionedType.C.
Write as a dictionary entry with keyword.
The name is not written when it is identical to keyword. The dimensions are always written.
Definition at line 550 of file dimensionedType.C.
Foam::dimensioned< typename Foam::dimensioned< Type >::cmptType > operator[] | ( | const direction | d | ) | const |
Return a component as a dimensioned<cmptType>
Definition at line 579 of file dimensionedType.C.
void operator+= | ( | const dimensioned< Type > & | dt | ) |
Definition at line 589 of file dimensionedType.C.
void operator-= | ( | const dimensioned< Type > & | dt | ) |
Definition at line 600 of file dimensionedType.C.
void operator*= | ( | const scalar | s | ) |
Definition at line 611 of file dimensionedType.C.
void operator/= | ( | const scalar | s | ) |
Definition at line 621 of file dimensionedType.C.
|
inlinestatic |
Construct dimensioned from dictionary, with default value. FatalIOError if there are excess tokens.
Definition at line 399 of file dimensionedType.H.
|
inlinestatic |
Construct dimensionless from dictionary, with default value.
FatalIOError if it is found and there are excess tokens.
Definition at line 412 of file dimensionedType.H.
|
inlinestatic |
Construct dimensioned from dictionary, with default value.
If the value is not found, it is added into the dictionary. FatalIOError if it is found and there are excess tokens.
Definition at line 425 of file dimensionedType.H.
|
inlinestatic |
Construct dimensionless from dictionary, with default value.
If the value is not found, it is added into the dictionary. FatalIOError if it is found and there are excess tokens.
Definition at line 439 of file dimensionedType.H.
|
friend |
Read from stream. The name and dimensions are optional.
If the optional dimensions are present, they are used without further verification.