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

Specifying points for sampling surfaces in sampleDict

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

LinkBack Thread Tools 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: 4
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
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate cross product of mesh points and given vector DE25VT OpenFOAM Mesh Utilities 5 January 13, 2016 11:05
No layers in a small gap bobburnquist OpenFOAM Native Meshers: snappyHexMesh and Others 6 August 26, 2015 09:38
determining displacement for added points CFDnewbie147 OpenFOAM Native Meshers: snappyHexMesh and Others 1 October 22, 2013 09:53
snappyHexMesh not refining surfaces Hydro1004 OpenFOAM 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 00:50.