34 template<
class GeoFieldType>
35 bool Foam::functionObjects::components::calcComponents
37 const GeoFieldType&
field 40 typedef typename GeoFieldType::value_type Type;
42 resultNames_.
resize(pTraits<Type>::nComponents);
46 for (
direction i = 0; i < pTraits<Type>::nComponents; ++i)
59 bool Foam::functionObjects::components::calcComponents()
61 const auto* vfield = cfindObject<VolumeField<Type>>(fieldName_);
64 return calcComponents(*vfield);
67 const auto* sfield = cfindObject<SurfaceField<Type>>(fieldName_);
70 return calcComponents(*sfield);
word resultName_
Name of result field.
void resize(const label len)
Adjust allocated size of list.
word fieldName_
Name of field to process.
bool store(word &fieldName, const tmp< ObjectType > &tfield, bool cacheable=false)
Store the field in the (sub) objectRegistry under the given name.