CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Run time monitoring of velocity or flux

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2014, 06:52
Default Run time monitoring of velocity or flux
  #1
New Member
 
Filip Gjetvaj
Join Date: Mar 2013
Location: Montpellier, FR
Posts: 17
Rep Power: 13
File is on a distinguished road
Hi,

I'm running a steady state simulation (simpleFoam solver) and would like to know if there is some option to monitor flux at outlet at run time.

For now at the end of simulation I run patchAverage or patchIntegrate over phi field and compare flux results at different step. Limit of this approach is that there are values in just few time step (otherwise too much data to process) and also have to wait for the simulation to end.

Is it possible to run it during the simulation and keep just a value for each step (instead whole flow field). I found sampleDict option but not sure how it works could you please tell me if this could be what I'm looking for?

It is important to say that simulation runs in parallel
File is offline   Reply With Quote

Old   November 14, 2014, 09:22
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
You need the simpleFunctionObject library from swak4foam. Then you can add something like
Code:
functions
(
   postFields
   {
       type patchAverage;
       functionObjectLibs
       (
         "libsimpleFunctionObjects.so"
       );
       verbose true;
       patches
       (
         INLET
         OUTLET
         inlet
         outlet
       );
       fields
       (
         T
         p
         U
       );
       outputControl timeStep;
       outputInterval 1;
   }
);
to your system/controlDict
jherb is offline   Reply With Quote

Old   November 14, 2014, 10:54
Default
  #3
New Member
 
Filip Gjetvaj
Join Date: Mar 2013
Location: Montpellier, FR
Posts: 17
Rep Power: 13
File is on a distinguished road
Thank you very much Joachim

this was exactly what I was looking for
it works like a charm
File is offline   Reply With Quote

Old   May 19, 2016, 06:58
Default
  #4
Member
 
thomas
Join Date: Jul 2014
Posts: 50
Rep Power: 12
thomas. is on a distinguished road
Hi,

do you have any experiences with foamMonitor? Why do you prefer this alternative instead of the foamMonitor one?

Thanks in advance!
thomas. is offline   Reply With Quote

Reply

Tags
flux, run time


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
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 03:20
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 08:47
Problem with time average tangential velocity in swirl flow. lakhi FLUENT 5 July 18, 2012 17:28
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58


All times are GMT -4. The time now is 01:04.