|
[Sponsors] |
August 4, 2011, 12:15 |
Bounded cuttingPlane?
|
#1 |
Member
Cedric Van Holsbeke
Join Date: Dec 2009
Location: Belgium
Posts: 81
Rep Power: 17 |
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 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:
Thanks in advance! |
|
August 5, 2011, 05:31 |
|
#2 |
Senior Member
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17 |
Hi Cenerik,
I would define a faceSet and sample over that one. Markus |
|
August 5, 2011, 06:10 |
|
#3 | |
Member
Cedric Van Holsbeke
Join Date: Dec 2009
Location: Belgium
Posts: 81
Rep Power: 17 |
Quote:
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. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
about bounded alpha equation for bubbleFoam and twoPhaseEulerFoam | kaifu | OpenFOAM | 2 | May 6, 2011 06:33 |
Double sampling of cell label using cuttingPlane??? | Fransje | OpenFOAM Programming & Development | 9 | May 4, 2011 08:38 |
faceSet cuttingPlane | Chrisi1984 | OpenFOAM | 0 | October 9, 2010 12:39 |
Schemes for strictly bounded scalar fields | stawrogin | OpenFOAM | 1 | July 19, 2010 18:16 |
Higher-order bounded convection schemes for pure advection with discontinuity | Anthony | Main CFD Forum | 3 | June 13, 1999 03:36 |