ENH: support cylindrical coordinates in fieldCoordinateSystemTransform (#1076)

This commit is contained in:
Mark Olesen
2018-11-16 15:12:19 +01:00
parent 4a53835f4b
commit f269371dbc
5 changed files with 234 additions and 27 deletions

View File

@ -45,5 +45,10 @@ timePrecision 6;
runTimeModifiable true;
functions
{
#include "coordinateTransform"
}
// ************************************************************************* //

View File

@ -0,0 +1,24 @@
/// -*- C++ -*-
coordinateTransform
{
type fieldCoordinateSystemTransform;
libs ("libfieldFunctionObjects.so");
log true;
fields ( U );
writeControl writeTime;
coordinateSystem
{
type cylindrical;
origin (0 0 0);
rotation
{
type cylindrical;
axis (1 0 0); //< local Z
}
}
}
// ************************************************************************* //