37 List<T> newField(field.size());
41 newField[i] =
transform(rotTensor, field[i]);
53 field[i] =
transform(rotTensor, field[i]);
61 if (rotTensor.
size() == 1)
65 field[i] =
transform(rotTensor[0], field[i]);
68 else if (rotTensor.
size() == field.
size())
72 field[i] =
transform(rotTensor[i], field[i]);
78 <<
"Sizes of field and transformation not equal. field:" 79 << field.
size() <<
" transformation:" << rotTensor.
size()
98 if (rotTensor.
size() == 1)
102 iter() =
transform(rotTensor[0], iter());
108 <<
"Multiple transformation tensors not supported. field:" 109 << field.
size() <<
" transformation:" << rotTensor.
size()
120 iter() =
transform(rotTensor[0], iter());
128 if (rotTensor.
size() == 1)
132 iter() =
transform(rotTensor[0], iter());
138 <<
"Multiple transformation tensors not supported. field:" 139 << field.
size() <<
" transformation:" << rotTensor.
size()
#define forAll(list, i)
Loop across all elements in list.
#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 forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
void size(const label)
Override size to be inconsistent with allocated storage.
label size() const
Return number of elements in table.
void transformList(const tensor &, UList< T > &)
Apply transformation to list. Either single transformation tensor.
errorManip< error > abort(error &err)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Map from edge (expressed as its endpoints) to value.
label size() const
Return the number of elements in the UList.
Tensor< scalar > tensor
Tensor of scalars.
dimensionSet transform(const dimensionSet &)
A HashTable to objects of type <T> with a label key.