|
[Sponsors] |
call a function from controlDict with postProcess |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 21, 2017, 11:46 |
call a function from controlDict with postProcess
|
#1 |
Senior Member
Join Date: Jan 2015
Posts: 150
Rep Power: 11 |
Is it possible to execute a function from controlDict after a simulation is done ?
For example, if the controlDict looks like: Code:
application icoFoam; startFrom startTime; ... functions { central_slice { type surfaces; libs ("libsampling.so"); ... surfaces ( cuttingPlane { type cuttingPlane; ... } } ); } }; Thanks |
|
June 22, 2017, 01:51 |
|
#3 |
Senior Member
Join Date: Jan 2015
Posts: 150
Rep Power: 11 |
Yes, but I saved only U and p fields by reconstructPar and when I run pisoFoam -postProcess it showes that there is no 'sigma' field. But I don't need it for the surfaces functionObject.
Is it any idea how to solve this ? Code:
Selecting incompressible transport model Newtonian Selecting turbulence model type laminar Selecting laminar stress model Maxwell --> FOAM Warning : --> FOAM FATAL IO ERROR: cannot find file file: /home/sergey/OpenFOAM/sergey-dev/run/probe/0.5/sigma at line 0. From function regIOobject::readStream() in file db/regIOobject/regIOobjectRead.C at line 72. |
|
July 20, 2017, 09:44 |
|
#4 |
Member
Linyan X
Join Date: Dec 2015
Posts: 43
Rep Power: 10 |
Hi Anton,
Could you please give me some resource about the -postProcess command line option, any illustrations or instruction in the link or guidebook? I'm going to probe the finished simulation and find this may be a good way for me to do that. The 'postProcess -func probes' didn't work for me by failing to recognize the system/probesDict. Best, Linyan |
|
July 28, 2017, 04:00 |
|
#6 |
Senior Member
Join Date: Jan 2015
Posts: 150
Rep Power: 11 |
What about the missing 'sigma' field?
Is it any way to post-process data files without this ? |
|
July 28, 2017, 05:11 |
|
#7 |
New Member
Dan
Join Date: Nov 2013
Posts: 23
Rep Power: 12 |
What is sigma in your case? Do you have it as a field in your processor/ folders?
Perhaps you need to reconstruct it as well or run the postProcess in parallel to use it. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 03:23 |
channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 13:06 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 06:42 |
latest OpenFOAM-1.6.x from git failed to compile | phsieh2005 | OpenFOAM Bugs | 25 | February 9, 2010 04:37 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 10:23 |