CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

sampleDict - azimuthal

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2024, 14:59
Default sampleDict - azimuthal
  #1
gu1
Senior Member
 
Guilherme
Join Date: Apr 2017
Posts: 231
Rep Power: 10
gu1 is on a distinguished road
Hi,

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

Old   January 21, 2024, 15:53
Default
  #2
Member
 
s1291's Avatar
 
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 8
s1291 is on a distinguished road
Quote:
Originally Posted by gu1 View Post
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.
		
	}
    }
}
__________________
"When in doubt, use brute force." -- Ken Thompson
s1291 is offline   Reply With Quote

Reply

Tags
openfoam9


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sampleDict error KateEisenhower OpenFOAM Post-Processing 5 October 18, 2021 13:39
postProcess -func sampleDict does not create output folder tmr2044 OpenFOAM Post-Processing 7 April 27, 2021 14:33
Does sampleDict have limitation in number of fields? reza2031 OpenFOAM Post-Processing 3 April 22, 2020 13:24
How Coorectly Run sampleDict FlyBob91 OpenFOAM Post-Processing 5 September 13, 2017 04:01
sampleDict keyword patchName not accepted musahossein OpenFOAM Bugs 6 January 28, 2013 00:48


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