mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +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.
119 lines
2.7 KiB
C++
119 lines
2.7 KiB
C++
// -*- C++ -*-
|
|
|
|
postPro1
|
|
{
|
|
#includeEtc "caseDicts/postProcessing/visualization/runTimePostPro.cfg"
|
|
|
|
// parallel false;
|
|
// debug true;
|
|
|
|
output
|
|
{
|
|
name image;
|
|
width 1200;
|
|
height 800;
|
|
}
|
|
|
|
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;
|
|
|
|
parallelProjection yes;
|
|
|
|
focalPoint (0.25 0.42 0.05);
|
|
position (0.15 0.42 2.5);
|
|
up (0 1 0);
|
|
zoom 1.5;
|
|
}
|
|
|
|
// Default colours
|
|
// - If select to colourBy colour, these values are used unless
|
|
// they are locally overridden
|
|
colours
|
|
{
|
|
${..colourScheme.greyGradient};
|
|
}
|
|
|
|
// Points (cloud) data
|
|
points
|
|
{
|
|
cloud1
|
|
{
|
|
type cloud;
|
|
cloud coalCloud1;
|
|
colourMap coolToWarm;
|
|
representation sphere;
|
|
maxGlyphLength 0.025;
|
|
featureEdges no;
|
|
colourBy field;
|
|
colourField T;
|
|
field T;
|
|
range (290 410);
|
|
opacity 1;
|
|
|
|
scalarBar
|
|
{
|
|
visible true;
|
|
vertical yes;
|
|
position (0.8 0.1);
|
|
fontSize 12;
|
|
titleSize 24;
|
|
title "Temperature [K]";
|
|
labelFormat "%.0f";
|
|
numberOfLabels 9;
|
|
bold false;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Surface data
|
|
surfaces
|
|
{
|
|
patches
|
|
{
|
|
type patches;
|
|
patches (".*");
|
|
renderMode phong;
|
|
representation surface;
|
|
colourBy colour;
|
|
field U;
|
|
range (0 40);
|
|
featureEdges yes;
|
|
edgeColour (0 0 0);
|
|
// Fails in parallel: opacity 0.25;
|
|
}
|
|
|
|
k
|
|
{
|
|
type isoSurface;
|
|
renderMode phong;
|
|
representation surface;
|
|
field k;
|
|
values ( 100 );
|
|
colourField T;
|
|
colourBy field;
|
|
range (290 410);
|
|
smooth true;
|
|
}
|
|
}
|
|
|
|
// Text data
|
|
text
|
|
{
|
|
text1
|
|
{
|
|
string "simplifiedSiwek";
|
|
position (0.1 0.05);
|
|
size 24;
|
|
bold no;
|
|
}
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|