Files
openfoam/tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/system/runTimePostProcessing
Mark Olesen c3507f74f2 ENH: improve file reader support for runTimePostProcessing (#1091)
- support .vtp format for geometry, surface, line, cloud.

- use native reader for handling vtk, vtp, obj, stl surface files.
  For other formats, use the MeshedSurface (the surfMesh lib) to
  handle reading and Foam::vtk::Tools::Patch to handle the
  conversion to vtkPolyData. This combination is more memory efficient.

- update tutorial case to include vtp surface geometry
2018-12-16 19:14:22 +01:00

144 lines
3.6 KiB
C++

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
postPro1
{
type runTimePostProcessing;
libs ("librunTimePostProcessing.so");
writeControl writeTime;
output
{
name image;
width 800;
height 600;
}
camera
{
// If camera is moving, optionally provide start and end times
// startPosition 0.2;
// endPosition 0.75;
// Total number of frames to generate
nFrameTotal 1;
// Parallel projection flag
parallelProjection yes;
// clipBox is optional
position (-2.28 1.28 2.24);
focalPoint (0 0.008 0.024);
up (0.26 0.930 -0.266);
zoom 1.75;
}
// Default colours
// - If select to colourBy colour, these values are used unless
// they are locally overridden
colours
{
background (0.317647 0.341176 0.431373);
background2 ${background};
text (0.75 0.75 0.75);
edge (1 0 0);
surface (0.5 0.5 0.5);
line (1 0 0);
}
lines
{
streamline
{
type functionObjectLine;
functionObject streamLines;
representation tube;
visible yes;
tubeRadius 0.0025;
colourBy field;
field U;
range (0 10);
opacity 0.6;
scalarBar
{
visible no;
}
}
}
_plane
{
type functionObjectSurface;
functionObject cuttingPlane;
colourMap blueWhiteRed;
representation glyph;
maxGlyphLength 0.1;
visible yes;
featureEdges no;
colourBy field;
field U;
range (0 10);
opacity 1;
scalarBar
{
visible no;
}
}
surfaces
{
geom
{
type geometry;
files ("<case>/ppGeometry.vtp");
renderMode phong;
representation surface;
edgeColour (0.5 0.5 0.5);
visible yes;
featureEdges no;
opacity 0.8;
}
plane0
{
${_plane};
functionObject plane0;
}
plane1
{
${_plane};
functionObject plane1;
}
plane2
{
${_plane};
functionObject plane2;
}
plane3
{
${_plane};
functionObject plane3;
}
}
// Text data
text
{
text1
{
string "ellipse kkLOmega";
position (0.6 0.05);
size 18;
bold yes;
visible yes;
}
}
}
// ************************************************************************* //