CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Specifying points for sampling surfaces in sampleDict

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2016, 07:11
Default Specifying points for sampling surfaces in sampleDict
Senior Member
Join Date: Aug 2015
Posts: 127
Rep Power: 9
arieljeds is on a distinguished road
Hi there,
I'm trying to get a more accurate pressure reading for flow around a cylinder. I tried first setting up probes and running probeLocations, but I then discovered the sample surfaces utility, which seemed to take the value directly on the patch, rather than the distance away that I had the probe set up.

I tried to set up the probes directly on the cylinder (as the surfaces does), but it said it had zero values and the surfaces utility seems to work well so now I want to set it up to sample the surface around the whole cylinder.

I have this set up inside my sampleDict:

    	type            patch; //surfaces;  
    	//functionObjectLibs ( "" );
    	patches		("cylinder");

    	enabled         true;
    	outputControl   timeStep;
    	outputInterval  1;
    	interpolationScheme	cellPoint;
    	surfaceFormat	csv;
    	    	type	patch;
    	    	patches	("cylinder");
    	    	interpolate	true;
    	   	triangulate	false;
Which is doing what I want it to, except that it is only printing values in one quadrant of the cylinder (and then varying the depth, which I want it to do). How can I set it up to record points around the entire cylinder?

EDIT: Ok I've answered my own question -- I am sampling around the entire surface (I didn't scroll the whole way down, they are ordered strangely). I'm still wondering the same question though -- is there a way to specify exactly where is being sampled?

Last edited by arieljeds; April 20, 2016 at 07:27. Reason: Answered my own question :-)
arieljeds is offline   Reply With Quote


cylinder, sample surface, sampledict, surface, wavefoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[mesh manipulation] Calculate cross product of mesh points and given vector DE25VT OpenFOAM Meshing & Mesh Conversion 5 January 13, 2016 10:05
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 09:53
[snappyHexMesh] snappyHexMesh not refining surfaces Hydro1004 OpenFOAM Meshing & Mesh Conversion 3 August 29, 2012 11:56
extreme points problem Lipo Wang Main CFD Forum 2 August 18, 2004 03:15

All times are GMT -4. The time now is 12:46.