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/)
-   -   Monitoring at Runtime (https://www.cfd-online.com/Forums/openfoam-solving/80996-monitoring-runtime.html)

Moelfus October 13, 2010 05:13

Monitoring at Runtime
 
Hi Foamers,

I have got a small question. I want to monitor some parts of my simulation, like points, surfaces and if possible lines. So I can draw a comparison to the measurements during the run. For points and surfaces I just added function{...} into the controlDict. I'm using OF 1.7. I would guess it is possible to extract lines as well, but I didn't get it set up correctly. Maybe someone has a small code-snippet for me.

Regards Olli

Excerpt from controlDict:

Code:

functions
{
    probes
    {
        type            probes;
        functionObjectLibs ("libsampling.so");
        enabled        true;
        outputControl  timeStep;
        outputInterval  1;
        probeLocations
        (
            ( 0.0275 0.020625 0)
            ( 0.0275 -0.020625 0 )
            ( 0.0275 0 0.020625 )
            ( 0.0275 0 -0.020625 )
            ( 0.055 0.030 0 )
            ( 0.055 -0.030 0 )
            ( 0.055 0 0.030 )
            ( 0.055 0 -0.030 )
        );

        fields
        (
            U
            p
        );
    } 
   
    probes
    {
    type            surfaces;
        functionObjectLibs ("libsampling.so");
        enabled        true;
        outputControl  timeStep;
        outputInterval  1000;
    surfaceFormat raw;
    interpolationScheme cellPointFace;
   
        fields
        (
            U
        );   


    surfaces
        (
            xyPlane
        {
        type plane;
        basePoint (0 0 0);
        normalVector (0 0 1);
        }
          xzPlane
          {
          type plane;
          basePoint (0 0 0);
          normalVector (0 1 0);
          }         
        );
       
    }



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