CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   sampleDict - azimuthal (https://www.cfd-online.com/Forums/openfoam-post-processing/254122-sampledict-azimuthal.html)

gu1 January 21, 2024 14:59

sampleDict - azimuthal
 
Hi,

Is it possible to obtain a azimuthal profile from sampleDict? i.e. for a radius of 200 mm (0º to 360º)

s1291 January 21, 2024 15:53

Quote:

Originally Posted by gu1 (Post 863518)
Hi,

Is it possible to obtain a azimuthal profile from sampleDict? i.e. for a radius of 200 mm (0º to 360º)

You can use something like this:

Code:

SampleOnCircle
{
  type            sets;
  libs            (sampling);

    writeControl    timeStep;
    writeInterval  1;
 
    setFormat        csv;

    fields          (U p); // Adjust the field names

    // interpolationScheme cellPoint;  //<- default

    sets
    {

        Circle1
        {
                type        circle;
                axis        xyz; // Write the xyz coordinates in the output file
                origin        (3.0 0.0 0.1); Origin coordinates of the circle
                circleAxis        (0 0 1); The axis of the circle
                startPoint        (4.0 0 0.1); // Coordinates of the starting point
                dTheta                1.0; // Sampling interval in degrees.
               
        }
    }
}



All times are GMT -4. The time now is 02:27.