Generic dimensioned Type class. More...
#include <OpenFOAM/dimensionedType.H>
Generic dimensioned Type class.
Definition at line 65 of file dimensionedType.H.
Public Types | |
typedef pTraits< Type >::cmptType | cmptType |
Component type. |
Public Member Functions | |
dimensioned (const word &, const dimensionSet &, const Type) | |
Construct given a name, a value and its dimensionSet. | |
dimensioned (const word &, const dimensioned< Type > &) | |
Construct from a dimensioned<Type> changing the name. | |
dimensioned (const Type &t) | |
Construct given a value (creates dimensionless value). | |
dimensioned (Istream &) | |
Construct from Istream. | |
dimensioned (const word &, Istream &) | |
Construct from an Istream with a given name. | |
dimensioned (const word &, const dimensionSet &, Istream &) | |
Construct from an Istream with a given name and dimensions. | |
const word & | name () const |
Return const reference to name. | |
word & | name () |
Return non-const reference to name. | |
const dimensionSet & | dimensions () const |
Return const reference to dimensions. | |
dimensionSet & | dimensions () |
Return non-const reference to dimensions. | |
const Type & | value () const |
Return const reference to value. | |
Type & | value () |
Return non-const reference to value. | |
dimensioned< cmptType > | component (const direction) const |
Return a component as a dimensioned<cmptType> | |
void | replace (const direction, const dimensioned< cmptType > &) |
Return a component with a dimensioned<cmptType> | |
dimensioned< Type > | T () const |
Return transpose. | |
bool | readIfPresent (const dictionary &) |
Update the value of dimensioned<Type> if found in the dictionary. | |
dimensioned< cmptType > | operator[] (const direction) const |
Return a component as a dimensioned<cmptType> | |
void | operator+= (const dimensioned< Type > &) |
void | operator-= (const dimensioned< Type > &) |
void | operator*= (const scalar) |
void | operator/= (const scalar) |
Static Public Member Functions | |
static dimensioned< Type > | lookupOrDefault (const word &, const dictionary &, const Type &defaultValue=pTraits< Type >::zero, const dimensionSet &dims=dimless) |
Construct from dictionary, with default value. | |
static dimensioned< Type > | lookupOrAddToDict (const word &, dictionary &, const Type &defaultValue=pTraits< Type >::zero, const dimensionSet &dims=dimless) |
Construct from dictionary, with default value. |
Friends | |
Istream & | operator>> (Istream &, dimensioned< Type > &) |
Ostream & | operator (Ostream &, const dimensioned< Type > &) |
Component type.
Definition at line 82 of file dimensionedType.H.
dimensioned | ( | const word & | name, |
const dimensionSet & | dimSet, | ||
const Type | t | ||
) |
Construct given a name, a value and its dimensionSet.
Definition at line 69 of file dimensionedType.C.
dimensioned | ( | const word & | name, |
const dimensioned< Type > & | dt | ||
) |
Construct from a dimensioned<Type> changing the name.
Definition at line 83 of file dimensionedType.C.
|
inline |
Construct given a value (creates dimensionless value).
Definition at line 94 of file dimensionedType.H.
dimensioned | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 96 of file dimensionedType.C.
dimensioned | ( | const word & | name, |
Istream & | is | ||
) |
Construct from an Istream with a given name.
Definition at line 108 of file dimensionedType.C.
dimensioned | ( | const word & | name, |
const dimensionSet & | dimSet, | ||
Istream & | is | ||
) |
Construct from an Istream with a given name and dimensions.
Definition at line 121 of file dimensionedType.C.
|
static |
Construct from dictionary, with default value.
Definition at line 39 of file dimensionedType.C.
References dictionary::lookupOrDefault(), and Foam::name().
|
static |
Construct from dictionary, with default value.
If the value is not found, it is added into the dictionary.
Definition at line 53 of file dimensionedType.C.
References dictionary::lookupOrAddDefault(), and Foam::name().
const word & name | ( | ) | const |
Return const reference to name.
Reimplemented in UniformDimensionedField< Type >.
Definition at line 136 of file dimensionedType.C.
Referenced by Foam::cbrt(), Foam::checkMethod(), Foam::cof(), Foam::fvm::d2dt2(), Foam::fvc::ddt(), Foam::fvm::ddt(), Foam::det(), Foam::dev(), Foam::dev2(), Foam::eigenValues(), Foam::eigenVectors(), steadyStateDdtScheme< Type >::fvcDdt(), EulerDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), localEulerDdtScheme< Type >::fvcDdt(), boundedBackwardDdtScheme::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), CrankNicholsonDdtScheme< Type >::fvcDdt(), CrankNicholsonDdtScheme< Type >::fvmDdt(), Foam::hypot(), Foam::inv(), Foam::resError::laplacian(), Foam::fvc::laplacian(), Foam::fvm::laplacian(), Foam::mag(), Foam::magSqr(), Foam::max(), Foam::min(), Foam::neg(), Foam::operator*(), Foam::operator+(), Foam::operator-(), Foam::operator/(), Foam::operator<<(), Foam::pos(), Foam::pow(), Foam::pow3(), Foam::pow4(), Foam::pow5(), Foam::pow6(), Time::readDict(), Foam::sign(), Foam::skew(), Foam::sqr(), Foam::sqrt(), Foam::stabilise(), Foam::symm(), dimensioned< Type >::T(), Foam::tr(), Foam::transform(), and Foam::twoSymm().
word & name | ( | ) |
Return non-const reference to name.
Definition at line 142 of file dimensionedType.C.
const dimensionSet & dimensions | ( | ) | const |
Return const reference to dimensions.
Definition at line 149 of file dimensionedType.C.
Referenced by Foam::cbrt(), Foam::checkMethod(), Foam::cof(), Foam::det(), Foam::dev(), Foam::dev2(), Foam::eigenValues(), EulerD2dt2Scheme< Type >::fvcD2dt2(), steadyStateDdtScheme< Type >::fvcDdt(), EulerDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), localEulerDdtScheme< Type >::fvcDdt(), boundedBackwardDdtScheme::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), CrankNicholsonDdtScheme< Type >::fvcDdt(), steadyStateD2dt2Scheme< Type >::fvmD2dt2(), EulerD2dt2Scheme< Type >::fvmD2dt2(), steadyStateDdtScheme< Type >::fvmDdt(), EulerDdtScheme< Type >::fvmDdt(), backwardDdtScheme< Type >::fvmDdt(), localEulerDdtScheme< Type >::fvmDdt(), boundedBackwardDdtScheme::fvmDdt(), CoEulerDdtScheme< Type >::fvmDdt(), SLTSDdtScheme< Type >::fvmDdt(), CrankNicholsonDdtScheme< Type >::fvmDdt(), Foam::hypot(), Foam::inv(), Foam::mag(), Foam::magSqr(), Foam::max(), Foam::min(), Foam::neg(), Foam::operator*(), Foam::operator+(), Foam::operator-(), Foam::operator/(), Foam::operator<<(), DimensionedField< Type, GeoMesh >::operator=(), porousZone::porousZone(), Foam::pos(), Foam::pow(), Foam::pow3(), Foam::pow4(), Foam::pow5(), Foam::pow6(), Foam::sign(), Foam::skew(), Foam::resError::Sp(), Foam::fvm::Sp(), Foam::sqr(), Foam::sqrt(), Foam::stabilise(), Foam::symm(), dimensioned< Type >::T(), Foam::tr(), and Foam::twoSymm().
dimensionSet & dimensions | ( | ) |
Return non-const reference to dimensions.
Definition at line 155 of file dimensionedType.C.
const Type & value | ( | ) | const |
Return const reference to value.
Definition at line 162 of file dimensionedType.C.
Referenced by Time::adjustDeltaT(), spray::atomizationLoop(), LISA::atomizeParcel(), blobsSwirlInjector::blobsSwirlInjector(), Foam::bound(), spray::breakupLoop(), ThermoParcel< ParcelType >::calcHeatTransfer(), fieldMinMax::calcMinMaxFields(), spray::calculateAmbientPressure(), spray::calculateAmbientTemperature(), fieldAverage::calculateMeanFields(), fieldAverage::calculatePrime2MeanFields(), Foam::cbrt(), ChomiakInjector::ChomiakInjector(), Foam::cof(), constInjector::constInjector(), LienLeschzinerLowRe::correct(), LRR::correct(), LaunderGibsonRSTM::correct(), definedHollowConeInjector::definedHollowConeInjector(), definedPressureSwirlInjector::definedPressureSwirlInjector(), Foam::det(), Foam::dev(), Foam::dev2(), gradientDispersionRAS::disperseParcels(), stochasticDispersionRAS::disperseParcels(), LRR::divDevReff(), LaunderGibsonRSTM::divDevReff(), blackBodyEmission::EbDeltaLambdaT(), Foam::eigenValues(), Foam::eigenVectors(), engineMesh::engineMesh(), ThermoCloud< ParcelType >::Ep(), evaluateError::evaluateError(), spray::evaporationSource(), spray::evolve(), Foam::MULES::explicitSolve(), basicMultiComponentMixture::fres(), EulerD2dt2Scheme< Type >::fvcD2dt2(), EulerDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), localEulerDdtScheme< Type >::fvcDdt(), boundedBackwardDdtScheme::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), CrankNicholsonDdtScheme< Type >::fvcDdt(), EulerD2dt2Scheme< Type >::fvmD2dt2(), EulerDdtScheme< Type >::fvmDdt(), backwardDdtScheme< Type >::fvmDdt(), localEulerDdtScheme< Type >::fvmDdt(), boundedBackwardDdtScheme::fvmDdt(), CoEulerDdtScheme< Type >::fvmDdt(), SLTSDdtScheme< Type >::fvmDdt(), CrankNicholsonDdtScheme< Type >::fvmDdt(), GeometricField< Type, PatchField, GeoMesh >::GeometricField(), greyDiffusiveRadiationMixedFvPatchScalarField::greyDiffusiveRadiationMixedFvPatchScalarField(), spray::heatTransferSource(), Foam::hypot(), if(), ignitionSite::ignited(), ignitionSite::igniting(), spray::inject(), Foam::inv(), Foam::MULES::limiter(), Foam::mag(), Foam::magSqr(), MarshakRadiationFixedTMixedFvPatchScalarField::MarshakRadiationFixedTMixedFvPatchScalarField(), MarshakRadiationFvPatchScalarField::MarshakRadiationFvPatchScalarField(), Foam::max(), GeometricField< Type, PatchField, GeoMesh >::max(), Foam::min(), GeometricField< Type, PatchField, GeoMesh >::min(), spray::momentumSource(), layeredEngineMesh::move(), fvMotionSolverEngineMesh::move(), solidParticleCloud::move(), solidParticle::move(), trackedParticle::move(), molecule::move(), parcel::move(), movingConeTopoFvMesh::movingConeTopoFvMesh(), SchaefferFrictionalStress::muf(), Foam::neg(), Foam::operator*(), Foam::operator+(), Time::operator+=(), Foam::operator-(), Foam::operator/(), Foam::operator<(), Foam::operator<<(), DimensionedField< Type, GeoMesh >::operator=(), GeometricField< Type, PatchField, GeoMesh >::operator=(), GeometricField< Type, PatchField, GeoMesh >::operator==(), Foam::operator>(), porousZone::porousZone(), Foam::pos(), Foam::pow(), Foam::pow3(), Foam::pow4(), Foam::pow5(), Foam::pow6(), pressureSwirlInjector::pressureSwirlInjector(), GenSGSStress::read(), LRR::read(), LaunderGibsonRSTM::read(), Time::readDict(), GeometricField< Type, PatchField, GeoMesh >::replace(), Time::setDeltaT(), Time::setEndTime(), Time::setTime(), Foam::sign(), Foam::skew(), Foam::resError::Sp(), Foam::fvm::Sp(), Foam::sqr(), Foam::sqrt(), Foam::stabilise(), Foam::symm(), dimensioned< Type >::T(), Foam::tr(), Foam::transform(), Foam::twoSymm(), movingWallVelocityFvPatchVectorField::updateCoeffs(), oscillatingDisplacementPointPatchVectorField::updateCoeffs(), buoyantPressureFvPatchScalarField::updateCoeffs(), SRFFreestreamVelocityFvPatchVectorField::updateCoeffs(), oscillatingVelocityPointPatchVectorField::updateCoeffs(), uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs(), angularOscillatingDisplacementPointPatchVectorField::updateCoeffs(), angularOscillatingVelocityPointPatchVectorField::updateCoeffs(), alphaFixedPressureFvPatchScalarField::updateCoeffs(), sixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs(), MarshakRadiationFixedTMixedFvPatchScalarField::updateCoeffs(), MarshakRadiationFvPatchScalarField::updateCoeffs(), uniformDensityHydrostaticPressureFvPatchScalarField::updateCoeffs(), surfaceDisplacementPointPatchVectorField::updateCoeffs(), fvMesh::Vsc(), fvMesh::Vsc0(), and wideBandDiffusiveRadiationMixedFvPatchScalarField::wideBandDiffusiveRadiationMixedFvPatchScalarField().
Type & value | ( | ) |
Return non-const reference to value.
Definition at line 168 of file dimensionedType.C.
dimensioned< typename dimensioned< Type >::cmptType > component | ( | const direction | d | ) | const |
Return a component as a dimensioned<cmptType>
Definition at line 176 of file dimensionedType.C.
References Foam::name().
void replace | ( | const direction | , |
const dimensioned< cmptType > & | |||
) |
Return a component with a dimensioned<cmptType>
Definition at line 191 of file dimensionedType.C.
dimensionedSymmTensor T | ( | ) | const |
Return transpose.
Definition at line 37 of file dimensionedSphericalTensor.C.
References dimensioned< Type >::dimensions(), dimensioned< Type >::name(), and dimensioned< Type >::value().
bool readIfPresent | ( | const dictionary & | dict | ) |
Update the value of dimensioned<Type> if found in the dictionary.
Definition at line 202 of file dimensionedType.C.
References dictionary::readIfPresent().
Referenced by engineTime::engineTime(), spectEddyVisc::read(), GenEddyVisc::read(), LRRDiffStress::read(), DeardorffDiffStress::read(), SpalartAllmarasIDDES::read(), Smagorinsky::read(), GenSGSStress::read(), oneEqEddy::read(), LamBremhorstKE::read(), kEpsilon::read(), LienLeschzinerLowRe::read(), LienCubicKE::read(), RNGkEpsilon::read(), NonlinearKEShih::read(), LaunderSharmaKE::read(), qZeta::read(), LRR::read(), SpalartAllmaras::read(), realizableKE::read(), LaunderGibsonRSTM::read(), LienCubicKELowRe::read(), kOmega::read(), kOmegaSSTSAS::read(), and kOmegaSST::read().
dimensioned< typename dimensioned< Type >::cmptType > operator[] | ( | const direction | d | ) | const |
Return a component as a dimensioned<cmptType>
Definition at line 212 of file dimensionedType.C.
References Foam::component().
void operator+= | ( | const dimensioned< Type > & | dt | ) |
Definition at line 222 of file dimensionedType.C.
void operator-= | ( | const dimensioned< Type > & | dt | ) |
Definition at line 233 of file dimensionedType.C.
void operator*= | ( | const scalar | s | ) |
Definition at line 244 of file dimensionedType.C.
void operator/= | ( | const scalar | s | ) |
Definition at line 254 of file dimensionedType.C.
|
friend |
Definition at line 360 of file dimensionedType.C.
|
friend |