anishtain4 |
April 21, 2016 12:54 |
unstructured sampling in function objects
Hi,
I have a cutting plane in my function objects to export data for short times. However when I'm opening the files in matlab they are not Cartesian even though my grid is Cartesian. I can reorder grid and data in matlab to form a structure grid, but I need to have my original Cartesian grid on which I have solved my case. My function object looks like this:
Code:
cuttingPlane
{
type surfaces;
functionObjectLibs ("libsampling.so");
outputControl timeStep;
outputInterval 15;
surfaceFormat raw;
fields ( U );
interpolationScheme cell;
surfaces
(
zNormal
{
type cuttingPlane;
planeType pointAndNormal;
pointAndNormalDict
{
basePoint (3.14 1 1.57);
normalVector (0 0 1);
}
interpolate false;
triangulate false;
}
xNormal
{
type cuttingPlane;
planeType pointAndNormal;
pointAndNormalDict
{
basePoint (3.14 1 1.57);
normalVector (1 0 0);
}
interpolate false;
triangulate false;
}
);
}
Also when I have the interpolate on, my data show up on two different planes!! the second one usually is at a patch.
I would appreciate any input as I'm tight with time.
|