36 template<
class FieldType>
37 void Foam::functionObjects::fieldCoordinateSystemTransform::transformField
39 const FieldType&
field 42 word transFieldName(transformFieldName(
field.name()));
52 template<
class FieldType,
class RotationFieldType>
53 void Foam::functionObjects::fieldCoordinateSystemTransform::transformField
55 const RotationFieldType& rot,
56 const FieldType&
field 59 word transFieldName(transformFieldName(
field.name()));
75 typedef GeometricField<Type, fvPatchField, volMesh> VolFieldType;
76 typedef GeometricField<Type, fvsPatchField, surfaceMesh> SurfaceFieldType;
82 if (foundObject<VolFieldType>(fieldName))
85 <<
type() <<
": Field " << fieldName <<
" already in database" 88 if (csysPtr_->uniform() || pTraits<Type>::nComponents == 1)
90 transformField<VolFieldType>
92 lookupObject<VolFieldType>(fieldName)
97 transformField<VolFieldType>
100 lookupObject<VolFieldType>(fieldName)
104 else if (foundObject<SurfaceFieldType>(fieldName))
107 <<
type() <<
": Field " << fieldName <<
" already in database" 110 if (csysPtr_->uniform() || pTraits<Type>::nComponents == 1)
112 transformField<SurfaceFieldType>
114 lookupObject<SurfaceFieldType>(fieldName)
119 transformField<SurfaceFieldType>
122 lookupObject<SurfaceFieldType>(fieldName)
131 mesh_.time().timeName(),
137 if (fieldHeader.typeHeaderOk<VolFieldType>(
true,
true,
false))
140 <<
type() <<
": Field " << fieldName <<
" read from file" 143 if (csysPtr_->uniform() || pTraits<Type>::nComponents == 1)
145 transformField<VolFieldType>
147 lookupObject<VolFieldType>(fieldName)
152 transformField<VolFieldType>
155 lookupObject<VolFieldType>(fieldName)
159 else if (fieldHeader.typeHeaderOk<SurfaceFieldType>(
true,
true,
false))
162 <<
type() <<
": Field " << fieldName <<
" read from file" 165 if (csysPtr_->uniform() || pTraits<Type>::nComponents == 1)
167 transformField<SurfaceFieldType>
169 lookupObject<SurfaceFieldType>(fieldName)
174 transformField<SurfaceFieldType>
177 lookupObject<SurfaceFieldType>(fieldName)
dimensionSet invTransform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< tensor > dimensionedTensor
Dimensioned tensor obtained from generic dimensioned type.
#define DebugInfo
Report an information message using Foam::Info.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.