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

Bounded cuttingPlane?

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

Like Tree1Likes
  • 1 Post By CedricVH

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2011, 11:15
Default Bounded cuttingPlane?
  #1
Member
 
Cedric Van Holsbeke
Join Date: Dec 2009
Location: Belgium
Posts: 81
Rep Power: 16
CedricVH is on a distinguished road
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.

Thanks in advance!
Attached Images
File Type: png model.png (4.8 KB, 55 views)
File Type: png defineCuttingPlane.png (6.0 KB, 66 views)
File Type: png defaultCuttingPlane.png (5.5 KB, 53 views)
File Type: png wantedCuttingPlane.png (5.2 KB, 54 views)
miladrakhsha likes this.
CedricVH is offline   Reply With Quote

Old   August 5, 2011, 04:31
Default
  #2
Senior Member
 
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17
markusrehm is on a distinguished road
Hi Cenerik,

I would define a faceSet and sample over that one.

Markus
markusrehm is offline   Reply With Quote

Old   August 5, 2011, 05:10
Default
  #3
Member
 
Cedric Van Holsbeke
Join Date: Dec 2009
Location: Belgium
Posts: 81
Rep Power: 16
CedricVH is on a distinguished road
Quote:
Originally Posted by markusrehm View Post
Hi Cenerik,

I would define a faceSet and sample over that one.

Markus
Thanks for your answer 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.
CedricVH is offline   Reply With Quote

Reply

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
about bounded alpha equation for bubbleFoam and twoPhaseEulerFoam kaifu OpenFOAM 2 May 6, 2011 05:33
Double sampling of cell label using cuttingPlane??? Fransje OpenFOAM Programming & Development 9 May 4, 2011 07:38
faceSet cuttingPlane Chrisi1984 OpenFOAM 0 October 9, 2010 11:39
Schemes for strictly bounded scalar fields stawrogin OpenFOAM 1 July 19, 2010 17:16
Higher-order bounded convection schemes for pure advection with discontinuity Anthony Main CFD Forum 3 June 13, 1999 02:36


All times are GMT -4. The time now is 02:36.