Generic dimensioned Type class. More...
Public Types | |
typedef pTraits< Type >::cmptType | cmptType |
Component type. More... | |
Public Member Functions | |
dimensioned (const word &, const dimensionSet &, const Type &) | |
Construct given name, dimensions and value. More... | |
dimensioned (const dimensionSet &, const Type &) | |
Construct given dimensions and value. More... | |
dimensioned (const Type &) | |
Construct dimensionless given value only. More... | |
dimensioned (const word &, const dimensioned< Type > &) | |
Construct from a dimensioned<Type> changing the name. More... | |
dimensioned (Istream &) | |
Construct from Istream. More... | |
dimensioned (const word &, Istream &) | |
Construct from an Istream with a given name. More... | |
dimensioned (const word &, const dimensionSet &, Istream &) | |
Construct from an Istream with a given name and dimensions. More... | |
dimensioned (const word &, const dimensionSet &, const dictionary &) | |
Construct from dictionary lookup with a given name and dimensions. More... | |
dimensioned () | |
Null constructor. More... | |
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) const |
Return a component as a dimensioned<cmptType> More... | |
void | replace (const direction, const dimensioned< cmptType > &) |
Return a component with a dimensioned<cmptType> More... | |
dimensioned< Type > | T () const |
Return transpose. More... | |
void | read (const dictionary &) |
Update the value of dimensioned<Type> More... | |
bool | readIfPresent (const dictionary &) |
Update the value of dimensioned<Type> if found in the dictionary. More... | |
Istream & | read (Istream &is, const dictionary &) |
Read value from stream and units from dictionary. More... | |
Istream & | read (Istream &is, const HashTable< dimensionedScalar > &) |
Read value from stream and units from table. More... | |
Istream & | read (Istream &is) |
Read value from stream and units from system table. More... | |
dimensioned< cmptType > | operator[] (const direction) const |
Return a component as a dimensioned<cmptType> More... | |
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 dimensionSet &dims=dimless, const Type &defaultValue=pTraits< Type >::zero) |
Construct from dictionary, with default dimensions and value. More... | |
static dimensioned< Type > | lookupOrDefault (const word &, const dictionary &, const Type &defaultValue=pTraits< Type >::zero) |
Construct from dictionary dimensionless with value. More... | |
static dimensioned< Type > | lookupOrAddToDict (const word &, dictionary &, const dimensionSet &dims=dimless, const Type &defaultValue=pTraits< Type >::zero) |
Construct from dictionary, with default value. More... | |
static dimensioned< Type > | lookupOrAddToDict (const word &, dictionary &, const Type &defaultValue=pTraits< Type >::zero) |
Construct from dictionary, dimensionless with default value. More... | |
Friends | |
Istream & | operator>> (Istream &, dimensioned< Type > &) |
Ostream & | operator (Ostream &, const dimensioned< Type > &) |
Generic dimensioned Type class.
Definition at line 41 of file dimensionedScalarFwd.H.
Component type.
Definition at line 88 of file dimensionedType.H.
dimensioned | ( | const word & | name, |
const dimensionSet & | dimSet, | ||
const Type & | t | ||
) |
Construct given name, dimensions and value.
Definition at line 76 of file dimensionedType.C.
dimensioned | ( | const dimensionSet & | dimSet, |
const Type & | t | ||
) |
Construct given dimensions and value.
with the name obtained from the value
Definition at line 90 of file dimensionedType.C.
dimensioned | ( | const Type & | t | ) |
Construct dimensionless given value only.
with a name obtained from the value
Definition at line 102 of file dimensionedType.C.
dimensioned | ( | const word & | name, |
const dimensioned< Type > & | dt | ||
) |
Construct from a dimensioned<Type> changing the name.
Definition at line 112 of file dimensionedType.C.
dimensioned | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 125 of file dimensionedType.C.
dimensioned | ( | const word & | name, |
Istream & | is | ||
) |
Construct from an Istream with a given name.
Definition at line 137 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 154 of file dimensionedType.C.
dimensioned | ( | const word & | name, |
const dimensionSet & | dimSet, | ||
const dictionary & | dict | ||
) |
Construct from dictionary lookup with a given name and dimensions.
Definition at line 170 of file dimensionedType.C.
dimensioned | ( | ) |
Null constructor.
Definition at line 186 of file dimensionedType.C.
Referenced by dimensioned< vector >::dimensioned().
|
static |
Construct from dictionary, with default dimensions and value.
Definition at line 198 of file dimensionedType.C.
Referenced by dimensioned< vector >::dimensioned(), and dimensioned< vector >::lookupOrDefault().
|
static |
Construct from dictionary dimensionless with value.
Definition at line 218 of file dimensionedType.C.
|
static |
Construct from dictionary, with default value.
If the value is not found, it is added into the dictionary.
Definition at line 230 of file dimensionedType.C.
Referenced by dimensioned< vector >::lookupOrAddToDict(), and dimensioned< vector >::lookupOrDefault().
|
static |
Construct from dictionary, dimensionless with default value.
If the value is not found, it is added into the dictionary.
Definition at line 244 of file dimensionedType.C.
const Foam::word & name | ( | ) | const |
Return const reference to name.
Definition at line 257 of file dimensionedType.C.
Referenced by Foam::atan2(), 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(), EulerDdtScheme< Type >::fvcDdt(), steadyStateDdtScheme< Type >::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), localEulerDdtScheme< Type >::fvcDdt(), CrankNicolsonDdtScheme< Type >::fvcDdt(), CrankNicolsonDdtScheme< Type >::fvmDdt(), Foam::hypot(), Foam::innerSqr(), Foam::inv(), Foam::fvc::laplacian(), Foam::fvm::laplacian(), Foam::fvc::meshPhi(), Foam::neg(), Foam::neg0(), Foam::negPart(), Foam::operator*(), Time::operator++(), dimensioned< vector >::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(), Foam::sqr(), Foam::sqrt(), Foam::stabilise(), Foam::symm(), dimensioned< vector >::T(), Time::timeName(), Foam::tr(), Foam::transform(), Foam::twoSymm(), dimensionSet::write(), and Foam::writeEntry().
Foam::word & name | ( | ) |
Return non-const reference to name.
Definition at line 263 of file dimensionedType.C.
const Foam::dimensionSet & dimensions | ( | ) | const |
Return const reference to dimensions.
Definition at line 270 of file dimensionedType.C.
Referenced by Foam::atan2(), Foam::cbrt(), Foam::checkMethod(), Foam::cof(), thixotropicViscosity::correct(), Foam::det(), Foam::dev(), Foam::dev2(), dimensionSet::dimensionSet(), dimensionSets::dimensionSets(), Foam::eigenValues(), comfort::execute(), EulerDdtScheme< Type >::fvcDdt(), steadyStateDdtScheme< Type >::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), localEulerDdtScheme< Type >::fvcDdt(), CrankNicolsonDdtScheme< Type >::fvcDdt(), steadyStateD2dt2Scheme< Type >::fvmD2dt2(), EulerD2dt2Scheme< Type >::fvmD2dt2(), steadyStateDdtScheme< Type >::fvmDdt(), EulerDdtScheme< Type >::fvmDdt(), CoEulerDdtScheme< Type >::fvmDdt(), SLTSDdtScheme< Type >::fvmDdt(), backwardDdtScheme< Type >::fvmDdt(), localEulerDdtScheme< Type >::fvmDdt(), CrankNicolsonDdtScheme< Type >::fvmDdt(), Foam::hypot(), Foam::innerSqr(), Foam::inv(), Foam::neg(), Foam::neg0(), Foam::negPart(), Foam::operator*(), dimensioned< vector >::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::sqr(), Foam::sqrt(), Foam::stabilise(), Foam::symm(), dimensioned< vector >::T(), Foam::tr(), Foam::twoSymm(), and Foam::writeEntry().
Foam::dimensionSet & dimensions | ( | ) |
Return non-const reference to dimensions.
Definition at line 276 of file dimensionedType.C.
const Type & value | ( | ) | const |
Return const reference to value.
Definition at line 283 of file dimensionedType.C.
Referenced by fieldAverage::addMeanFieldType(), fieldAverage::addPrime2MeanFieldType(), porosityModel::adjustNegativeResistance(), Foam::atan2(), Foam::bound(), NonInertialFrameForce< CloudType >::cacheFields(), BrownianMotionForce< CloudType >::calcCoupled(), ThermoParcel< ParcelType >::calcHeatTransfer(), SRFForce< CloudType >::calcNonCoupled(), ParamagneticForce< CloudType >::calcNonCoupled(), viewFactor::calculate(), singleStepCombustion::calculateqFuel(), Foam::cbrt(), Foam::cof(), kinematicSingleLayer::continuityCheck(), infinitelyFastChemistry::correct(), BrunDrippingEjection::correct(), Foam::correctContactAngle(), waxSolventEvaporation::correctModel(), curvatureSeparation::curvatureSeparation(), CrankNicolsonDdtScheme< Type >::ddt0_(), nonUnityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::DEff(), Foam::det(), Foam::dev(), Foam::dev2(), dimensionSet::dimensionSet(), Foam::eigenValues(), Foam::eigenVectors(), engine::engine(), ThermoCloud< Foam::DSMCCloud >::Ep(), buoyantKEpsilon< BasicMomentumTransportModel >::epsilonSource(), DSMCCloud< ParcelType >::equipartitionInternalEnergy(), comfort::execute(), UniformDimensionedField< vector >::field(), basicCombustionMixture::fres(), singleStepCombustion::fresCorrect(), EulerD2dt2Scheme< Type >::fvcD2dt2(), EulerDdtScheme< Type >::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), CrankNicolsonDdtScheme< Type >::fvcDdt(), EulerD2dt2Scheme< Type >::fvmD2dt2(), EulerDdtScheme< Type >::fvmDdt(), CoEulerDdtScheme< Type >::fvmDdt(), SLTSDdtScheme< Type >::fvmDdt(), backwardDdtScheme< Type >::fvmDdt(), localEulerDdtScheme< Type >::fvmDdt(), CrankNicolsonDdtScheme< Type >::fvmDdt(), GeometricField< vector, pointPatchField, pointMesh >::GeometricField(), Foam::hypot(), if(), InjectionModel< CloudType >::inject(), InjectionModel< CloudType >::injectSteadyState(), Foam::innerSqr(), Foam::inv(), buoyantKEpsilon< BasicMomentumTransportModel >::kSource(), hexRef8::level0EdgeLength(), MarshakRadiationFixedTemperatureFvPatchScalarField::MarshakRadiationFixedTemperatureFvPatchScalarField(), singleStepCombustion::massAndAirStoichRatios(), GeometricField< vector, pointPatchField, pointMesh >::max(), GeometricField< vector, pointPatchField, pointMesh >::maxMin(), GeometricField< vector, pointPatchField, pointMesh >::min(), solidParticleCloud::move(), polyMesh::movePoints(), movingCone::movingCone(), NamedEnum< compressibleField, 8 >::names(), Foam::neg(), Foam::neg0(), Foam::negPart(), Foam::operator*(), Time::operator+=(), dimensioned< vector >::operator/=(), Foam::operator<(), Foam::operator<<(), DimensionedField< Type, Foam::pointMesh >::operator=(), GeometricField< vector, pointPatchField, pointMesh >::operator=(), GeometricField< vector, pointPatchField, pointMesh >::operator==(), Foam::operator>(), Foam::operator>>(), UniformDimensionedField< vector >::operator[](), PatchFlowRateInjection< CloudType >::parcelsToInject(), engine::pistonPosition(), Foam::pos(), Foam::pos0(), Foam::posPart(), Foam::pow(), Foam::pow025(), Foam::pow3(), Foam::pow4(), Foam::pow5(), Foam::pow6(), thermalBaffleModel::read(), comfort::read(), dimensionSet::read(), GeometricField< vector, pointPatchField, pointMesh >::replace(), Time::setDeltaT(), Time::setEndTime(), polyMesh::setPoints(), Time::setTime(), masterUncollatedFileOperation::setTime(), Foam::sign(), Foam::skew(), sixDoFRigidBodyMotionSolver::solve(), rigidBodyMeshMotionSolver::solve(), rigidBodyMeshMotion::solve(), thermalBaffle::solveEnergy(), Foam::sqr(), Foam::sqrt(), Foam::stabilise(), particle::stepFractionSpan(), Foam::symm(), dimensioned< vector >::T(), engine::timeToUserTime(), Foam::tr(), Foam::transform(), waveSuperposition::transformation(), Foam::twoSymm(), layeredEngine::update(), inkJet::update(), oscillatingDisplacementPointPatchVectorField::updateCoeffs(), oscillatingVelocityPointPatchVectorField::updateCoeffs(), angularOscillatingVelocityPointPatchVectorField::updateCoeffs(), angularOscillatingDisplacementPointPatchVectorField::updateCoeffs(), alphaFixedPressureFvPatchScalarField::updateCoeffs(), MarshakRadiationFvPatchScalarField::updateCoeffs(), MarshakRadiationFixedTemperatureFvPatchScalarField::updateCoeffs(), waveDisplacementPointPatchVectorField::updateCoeffs(), SRFFreestreamVelocityFvPatchVectorField::updateCoeffs(), waveSurfacePressureFvPatchScalarField::updateCoeffs(), uniformDensityHydrostaticPressureFvPatchScalarField::updateCoeffs(), externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs(), engine::userTimeToTime(), Sine< Type >::value(), PatchFlowRateInjection< CloudType >::volumeToInject(), fvMesh::Vsc(), fvMesh::Vsc0(), waveSuperposition::waveSuperposition(), wideBandDiffusiveRadiationMixedFvPatchScalarField::wideBandDiffusiveRadiationMixedFvPatchScalarField(), FacePostProcessing< CloudType >::write(), ParticleCollector< CloudType >::write(), dimensionSet::write(), Foam::writeEntry(), and FSD::~FSD().
Type & value | ( | ) |
Return non-const reference to value.
Definition at line 289 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 298 of file dimensionedType.C.
Referenced by cyclicAMILduInterfaceField::transformCoupleField(), cyclicLduInterfaceField::transformCoupleField(), processorLduInterfaceField::transformCoupleField(), and dimensioned< vector >::value().
void replace | ( | const direction | , |
const dimensioned< cmptType > & | |||
) |
Return a component with a dimensioned<cmptType>
Definition at line 313 of file dimensionedType.C.
Referenced by dimensioned< vector >::component().
dimensionedTensor T | ( | ) | const |
Return transpose.
Definition at line 36 of file dimensionedSphericalTensor.C.
Referenced by dimensioned< vector >::T().
void read | ( | const dictionary & | dict | ) |
Update the value of dimensioned<Type>
Definition at line 324 of file dimensionedType.C.
Referenced by engine::read(), dimensioned< vector >::read(), and dimensionSet::read().
bool readIfPresent | ( | const dictionary & | dict | ) |
Update the value of dimensioned<Type> if found in the dictionary.
Definition at line 331 of file dimensionedType.C.
Referenced by LamBremhorstKE::read(), ShihQuadraticKE::read(), qZeta::read(), LienLeschziner::read(), LienCubicKE::read(), SpalartAllmaras< BasicMomentumTransportModel >::read(), SpalartAllmarasDES< BasicMomentumTransportModel >::read(), and kkLOmega::read().
Foam::Istream & read | ( | Istream & | is, |
const dictionary & | readSet | ||
) |
Read value from stream and units from dictionary.
Definition at line 339 of file dimensionedType.C.
Foam::Istream & read | ( | Istream & | is, |
const HashTable< dimensionedScalar > & | readSet | ||
) |
Read value from stream and units from table.
Definition at line 364 of file dimensionedType.C.
Foam::Istream & read | ( | Istream & | is | ) |
Read value from stream and units from system table.
Definition at line 392 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 420 of file dimensionedType.C.
void operator+= | ( | const dimensioned< Type > & | dt | ) |
Definition at line 430 of file dimensionedType.C.
void operator-= | ( | const dimensioned< Type > & | dt | ) |
Definition at line 441 of file dimensionedType.C.
void operator*= | ( | const scalar | s | ) |
Definition at line 452 of file dimensionedType.C.
void operator/= | ( | const scalar | s | ) |
Definition at line 462 of file dimensionedType.C.
|
friend |
|
friend |