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.