mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- Extended runTimePostProcessing to include access to "live"
simulation objects such a geometry patches and sampled surfaces
stored on the "functionObjectObjects" registry.
- Add 'live' runTimePostProcessing of cloud data.
Extracts position and fields from the cloud via its objectRegistry writer
- For the "live" simulation objects, there are two new volume filters
that work directly with the OpenFOAM volume fields:
* iso-surface
* cutting planes
Both use the VTK algorithms directly and support multiple values.
Eg, can make multiple iso-levels or multiple planes parallel to each
other.
- When VTK has been compiled with MPI-support, parallel rendering will
be used.
- Additional title text properties (shadow, italic etc)
- Simplified handling of scalar-bar and visibility switches
- Support multiple text positions. Eg, for adding watermark text.
108 lines
2.6 KiB
C++
108 lines
2.6 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: v1812 |
|
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
type runTimePostProcessing;
|
|
|
|
libs ("librunTimePostProcessing.so");
|
|
|
|
writeControl writeTime;
|
|
|
|
// Output characteristics
|
|
output
|
|
{
|
|
//- The name stem for output images
|
|
name image;
|
|
|
|
//- The image dimensions
|
|
width 1400;
|
|
height 1050;
|
|
}
|
|
|
|
|
|
// Some convenient colour schemes
|
|
colourScheme
|
|
{
|
|
black
|
|
{
|
|
background (0 0 0);
|
|
text (0.75 0.75 0.75);
|
|
edge (1 0 0);
|
|
surface (0.5 0.5 0.5);
|
|
line (1 0 0);
|
|
point (0.5 0.5 0.5);
|
|
}
|
|
|
|
blueGradient
|
|
{
|
|
background (1 1 1);
|
|
background2 (0 0 1);
|
|
text (0 0 0);
|
|
edge (1 0 0);
|
|
surface (0.5 0.5 0.5);
|
|
line (1 0 0);
|
|
point (0.5 0.5 0.5);
|
|
}
|
|
|
|
greyGradient
|
|
{
|
|
background (0.5 0.5 0.5);
|
|
background2 (0.7 0.7 0.7);
|
|
text (1 1 1);
|
|
edge (1 0 0);
|
|
surface (0.5 0.5 0.5);
|
|
line (1 0 0);
|
|
point (0.5 0.5 0.5);
|
|
}
|
|
|
|
paraview
|
|
{
|
|
background (0.317647 0.341176 0.431373);
|
|
text (0.75 0.75 0.75);
|
|
edge (1 0 0);
|
|
surface (0.5 0.5 0.5);
|
|
line (1 0 0);
|
|
point (0.5 0.5 0.5);
|
|
}
|
|
}
|
|
|
|
|
|
// Some typical scalarBar settings
|
|
scalarBar
|
|
{
|
|
right
|
|
{
|
|
visible true;
|
|
vertical true;
|
|
position (0.8 0.1);
|
|
size (0.1 0.75);
|
|
fontSize 16;
|
|
labelFormat "%f";
|
|
numberOfLabels 5;
|
|
bold yes;
|
|
italic yes;
|
|
shadow yes;
|
|
}
|
|
|
|
bottom
|
|
{
|
|
visible true;
|
|
vertical false;
|
|
position (0.2 0.1);
|
|
size (0.6 0.1);
|
|
fontSize 16;
|
|
labelFormat "%f";
|
|
numberOfLabels 5;
|
|
bold yes;
|
|
italic yes;
|
|
shadow yes;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|