CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Run time monitoring of velocity or flux (https://www.cfd-online.com/Forums/openfoam-solving/144441-run-time-monitoring-velocity-flux.html)

File November 14, 2014 05:52

Run time monitoring of velocity or flux
 
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

jherb November 14, 2014 08:22

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

File November 14, 2014 09:54

Thank you very much Joachim

this was exactly what I was looking for
it works like a charm ;)

thomas. May 19, 2016 05:58

Hi,

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

Thanks in advance!


All times are GMT -4. The time now is 06:50.