100 using namespace Foam;
101 using namespace Foam::mathematicalConstant;
105 template<
class GeoField>
106 void readAndRotateFields
117 Info<<
"Transforming " << flds[i].name() <<
endl;
134 readAndRotateFields(vsFlds, mesh, T, objects);
137 readAndRotateFields(vvFlds, mesh, T, objects);
140 readAndRotateFields(vstFlds, mesh, T, objects);
143 readAndRotateFields(vsymtFlds, mesh, T, objects);
146 readAndRotateFields(vtFlds, mesh, T, objects);
151 readAndRotateFields(ssFlds, mesh, T, objects);
154 readAndRotateFields(svFlds, mesh, T, objects);
157 readAndRotateFields(sstFlds, mesh, T, objects);
160 readAndRotateFields(ssymtFlds, mesh, T, objects);
163 readAndRotateFields(stFlds, mesh, T, objects);
171 int main(
int argc,
char *argv[])
214 <<
"No options supplied, please use one or more of "
215 "-translate, -rotate or -scale options."
223 Info<<
"Translating points by " << transVector <<
endl;
231 n1n2[0] /=
mag(n1n2[0]);
232 n1n2[1] /=
mag(n1n2[1]);
235 Info<<
"Rotating points by " << T <<
endl;
241 rotateFields(args, runTime, T);
248 Info<<
"Rotating points by" <<
nl
249 <<
" roll " << v.x() <<
nl
250 <<
" pitch " << v.y() <<
nl
251 <<
" yaw " << v.z() <<
endl;
259 Info<<
"Rotating points by quaternion " <<
R <<
endl;
264 rotateFields(args, runTime,
R.R());
271 Info<<
"Rotating points by" <<
nl
272 <<
" yaw " << v.x() <<
nl
273 <<
" pitch " << v.y() <<
nl
274 <<
" roll " << v.z() <<
endl;
281 scalar pitch = v.y();
288 Info<<
"Rotating points by quaternion " << R <<
endl;
293 rotateFields(args, runTime, R.
R());
301 Info<<
"Scaling points by " << scaleVector <<
endl;