CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

RunTimePostProcessing and picture creation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 7, 2019, 09:58
Default RunTimePostProcessing and picture creation
  #1
Senior Member
 
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 7
Carlo_P is on a distinguished road
Hey Foamers,
I'm having some trouble in working with rnTimePostProcessing, in order to create some images.


I found this guide, but not more other explanation:https://www.openfoam.com/documentati...ocessing-usage


The main problem is that mine installation (OpenFoam 7) gives me:


Caught FatalError
--> FOAM FATAL ERROR:

Unknown function type runTimePostProcessing



I attach here the controlDict file:
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application simpleFoam;

startFrom startTime;

startTime 0;

stopAt endTime;

endTime 5;

deltaT 1;

writeControl timeStep;

writeInterval 1;

purgeWrite 0;

writeFormat binary;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable true;

functions
{
#include "cuttingPlane"
#include "streamLines"
#include "forceCoeffs"

ostPro_images
{
type runTimePostProcessing;
libs ("librunTimePostProcessing.so");
writeControl writeTime;
output
{
name image;
width 2000;
height 1200;
}
camera
{
// If camera is moving, optionally provide start and end times
// startPosition 0.0002;
// endPosition 0.75;
// Total number of frames to generate
nFrameTotal 1;
// Parallel projection flag
parallelProjection no;
clipBox (-8.442 -8.283 0.5)(6.917 1.521 0.5); // optional
focalPoint (-0.7625002861022949 -3.380999982357025 0.5);
up (0 1 0);
position (-0.7625002861022949 -3.380999982357025 35.700929625175824);
}
// Default colours
// - If select to colourBy colour, these values are used unless
// they are locally overriden
colours
{
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);
}
// Line data
lines
{
streamline
{
type functionObjectLine;
functionObject streamLines;
representation tube;
visible yes;
tubeRadius 0.01;
colourBy field;
field U;
range (0 14);
opacity 0.5;
scalarBar
{
visible yes;
position (0.8 0.1);
vertical yes;
fontSize 16;
title "velocity / [m/s]";
labelFormat "%6.2f";
numberOfLabels 10;
}
}
}

// Surface data
surfaces
{
surface1
{
type geometry;
files ("$FOAM_CASE/constant/triSurface/Duct_Simulation430oclock_5.stl");
renderMode phong;
representation surface;
edgeColour (0 0 0);
visible yes;
featureEdges yes;
opacity 0.5;
}
cuttingPlane1
{
type functionObjectSurface;
functionObject cuttingPlane;
colourMap blueWhiteRed;
representation glyph;
maxGlyphLength 0.1;
visible yes;
featureEdges no;
colourBy field;
field U;
range (0 14);
opacity 0.5;
scalarBar
{
visible no;
}
}
}

// Text data
text
{
text1
{
string "TEST_TEXT";
position (0.1 0.05);
size 32;
bold yes;
visible yes;
}
}
}
}



Do someome has any idea how to create images?


Thanks
Cheers
Carlo
Carlo_P is offline   Reply With Quote

Old   August 26, 2019, 14:37
Default
  #2
New Member
 
Join Date: Jan 2013
Posts: 17
Rep Power: 13
Za-ck is on a distinguished road
Hi Carlo,

think you need to compile this utility:

run ./Allwmake in
.../src/functionObjects/graphics/runTimePostProcessing/

Best regards,
Za-ck
Za-ck is offline   Reply With Quote

Old   August 27, 2019, 02:42
Default
  #3
Senior Member
 
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 7
Carlo_P is on a distinguished road
Hey Za-ck,
thanks for your answer...but where I can find that file?
I mean, if you look in that folder, there isn't the graphics subfolder.
https://github.com/OpenFOAM/OpenFOAM...unctionObjects


Is that folder link to a specific version? OpenFOAM1906?
Thanks a lot,
Carlo
Carlo_P is offline   Reply With Quote

Old   August 27, 2019, 04:14
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,066
Rep Power: 26
Yann will become famous soon enough
Hello Carlo,


I don't think this functionObject is implemented in the foundation version. It has been initially released in ESI's OpenFOAM v3.0+ version (release notes here) and has been improved in the newer versions (see v1906 release notes)


So you will probably need to use ESI's branch to use it. Or maybe try to compile it in your own version but I don't know if it's straightforward or not.



Regards,
Yann
Yann is offline   Reply With Quote

Old   August 27, 2019, 05:08
Default
  #5
Senior Member
 
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 7
Carlo_P is on a distinguished road
Thanks Yann.
I checked in Esi's openFOAM and I found the code:
https://develop.openfoam.com/Develop...unctionObjects


I have to check how to install now ESI's OpenFOAM. I mean, openFoam 7 is more simple to install.


Thanks,
Carlo
Carlo_P is offline   Reply With Quote

Reply

Tags
error, imagecapture, images, postprocessing


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Block Creation of Aircraft Body ErdemEskioglu Pointwise & Gridgen 33 July 8, 2018 16:50
[ICEM] Replay control - save picture zboud ANSYS Meshing & Geometry 13 June 16, 2016 14:33
[General] export picture messy problem chenxizh ParaView 1 January 10, 2014 15:38
[blockMesh] arbitrary behaviour at creation of arc edges kpm OpenFOAM Bugs 1 February 7, 2011 08:29
Mesh creation Help joaorp STAR-CCM+ 9 February 15, 2010 07:12


All times are GMT -4. The time now is 10:12.