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()
145 <<
abort(FatalError);
Map from edge (expressed as its endpoints) to value. Hashing (and ==) on an edge is symmetric.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A HashTable to objects of type <T> with a label key.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
T & front()
Access first element of the list, position [0].
void size(const label n)
Older name for setAddressableSize.
Tensor of scalars, i.e. Tensor<scalar>.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
refinementData transform(const tensor &, const refinementData val)
No-op rotational transform for base types.
errorManip< error > abort(error &err)
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
void transformList(const tensor &rotTensor, UList< T > &field)
Inplace transform a list of elements.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
#define forAllIters(container, iter)
Iterate across all elements in the container object.