CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Multiple streamLines measurement stations (https://www.cfd-online.com/Forums/openfoam/129568-multiple-streamlines-measurement-stations.html)

lfrigeri3 February 7, 2014 12:15

Multiple streamLines measurement stations
 
Hi,

I need to monitor the profile of my variable while OF is running. I find this functions and it works but ... I need multiple points of measurement, not just one.

Code:

functions
{
    streamLines
    {
        type            streamLine;

        // Where to load it from (if not already in solver)
        functionObjectLibs ("libfieldFunctionObjects.so");

        // Output every
        outputControl  outputTime;
        // outputInterval 10;

        setFormat      vtk; //gnuplot;//xmgr;//raw;//jplot;//csv;//ensight;

        // Velocity field to use for tracking.
        UName U;

        // Tracked forwards (+U) or backwards (-U)
        trackForward    true;

        // Names of fields to sample. Should contain above velocity field!
        fields (p k U);

        // Steps particles can travel before being removed
        lifeTime        10000;

        // Number of steps per cell (estimate). Set to 1 to disable subcycling.
        nSubCycle 5;

        // Cloud name to use
        cloudName      particleTracks;

        // Seeding method. See the sampleSets in sampleDict.
        seedSampleSet  uniform;  //cloud;//triSurfaceMeshPointSet;

        uniformCoeffs
        {
            type        uniform;
            axis        x;  //distance;

            start      (-0.0205 0.001  0.00001);
            end        (-0.0205 0.0251 0.00001);
            nPoints    10;
        }
    }
}

How can I add more than one point? Example?
Thanks

lfrigeri3 February 8, 2014 04:27

Solved. Just replicate the whole code:

Code:

functions
(
streamLines1
{
...
...
...}.
streamLines2
{
...
...
...
}
.
.
.
streamLinesN
{
...
...
...
}
);

Bye


All times are GMT -4. The time now is 09:42.