# Bounded cuttingPlane?

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

August 4, 2011, 11:15
Bounded cuttingPlane?
#1
Member

Cedric Van Holsbeke
Join Date: Dec 2009
Location: Belgium
Posts: 81
Rep Power: 7
Dear all,

I have a model as given in the first attachment (model.png). As I want to sample the pressures and velocities in the middle of the model, I am defining a plane perpendicular to the boundary with the following code in the sampleDict file:

Code:
```setFormat raw;

surfaceFormat vtk;

interpolationScheme cellPoint;

// Fields to sample.
fields
(
p
U
);

surfaces
(
plane
{
type cuttingPlane;
planeType pointAndNormal;
pointAndNormalDict
{
basePoint (0.130244487182737 0.111573016987418 -0.0419832355596031);
normalVector (0 0 1);
}
interpolate true;
}
);```
The pointAndNormalDict part of this code defines a new plane given a base point and a normal vector as visualised in the second attachment (defineCuttingPlane.png).

The cuttingPlane function will then remove the parts of the plane that are outside the mesh, as shown in the third attachment (defaultCuttingPlane.png).

However, this is not what I want! I only want to sample the values in the middle of my model as shown in the fourth attachment (defaultCuttingPlane.png).

Is there a way to do that? I think there are two possibilities:
• Making a bounded plane: A rectangular plane which has not an infinite size, but which is bounded by 4 corners. In this way it can be made small enough so it does not cross other boundaries except the middle ones.
• Using the base point of the plane to specify the region: Only the middle region that contains the basepoint is valid. The regions at the inlet and outlet do not contain this point and should thus be removed.
I have no idea how to achieve this. Maybe somebody has already encountered this problem and came up with a solution.

Attached Images
 model.png (4.8 KB, 27 views) defineCuttingPlane.png (6.0 KB, 37 views) defaultCuttingPlane.png (5.5 KB, 28 views) wantedCuttingPlane.png (5.2 KB, 29 views)

 August 5, 2011, 04:31 #2 Senior Member   Markus Rehm Join Date: Mar 2009 Location: Erlangen (Germany) Posts: 176 Rep Power: 8 Hi Cenerik, I would define a faceSet and sample over that one. Markus

August 5, 2011, 05:10
#3
Member

Cedric Van Holsbeke
Join Date: Dec 2009
Location: Belgium
Posts: 81
Rep Power: 7
Quote:
 Originally Posted by markusrehm Hi Cenerik, I would define a faceSet and sample over that one. Markus

Is there a possibility to create a faceSet from the intersection between a plane (can be in stl format and added via sampledTriSurfaceMesh) and the cells of a mesh?

Or is there another good method to specify this set?

The mesh is created in TGrid and converted using fluent3DMeshToFoam.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post kaifu OpenFOAM 2 May 6, 2011 05:33 Fransje OpenFOAM Programming & Development 9 May 4, 2011 07:38 Chrisi1984 OpenFOAM 0 October 9, 2010 11:39 stawrogin OpenFOAM 1 July 19, 2010 17:16 Anthony Main CFD Forum 3 June 13, 1999 02:36

All times are GMT -4. The time now is 04:21.