40 const label loopLen =
field.size();
42 List<T> result(loopLen);
45 for (label i = 0; i < loopLen; ++i)
57 const label loopLen =
field.size();
60 for (label i = 0; i < loopLen; ++i)
70 if (rotTensor.size() == 1)
74 else if (rotTensor.size() ==
field.size())
76 const label loopLen =
field.size();
79 for (label i = 0; i < loopLen; ++i)
87 <<
"Sizes of field and transformation not equal. field:" 88 <<
field.size() <<
" transformation:" << rotTensor.size()
99 T& value = iter.val();
108 if (rotTensor.size() == 1)
115 <<
"Multiple transformation tensors not supported. field:" 116 <<
field.size() <<
" transformation:" << rotTensor.size()
127 T& value = iter.val();
136 if (rotTensor.size() == 1)
143 <<
"Multiple transformation tensors not supported. field:" 144 <<
field.size() <<
" transformation:" << rotTensor.size()
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
#define forAllIters(container, iter)
Iterate across all elements in the container object.
errorManip< error > abort(error &err)
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
void transformList(const tensor &rotTensor, UList< T > &field)
Inplace transform a list of elements.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.