|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Olie
Join Date: Oct 2013
Posts: 51
Rep Power: 13 ![]() |
Hi,
I want to sample my data over a plane, and so define the plane in the sampleDict as: Code:
plane1 { type plane; // always triangulated basePoint (2 0 0.5); normalVector (0 0 1); //- Optional: restrict to a particular zone // zone zone1; //- Optional: do not triangulate (only for surfaceFormats that support // polygons) //triangulate false; } Can I somehow specify a square plane, for example say I want the region within the four points: (0,1,0.5) (4,1,0.5) (4,-1,0.5) (0,-1.0.5) ? Thanks a lot. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Ferdinand Pfender
Join Date: May 2013
Location: Berlin, Germany
Posts: 40
Rep Power: 13 ![]() |
Hi!
I had the same problem for today. It works by defining your zones via topoSet or setSet (cellSet) and use this zone for the sample-utility: In your case it would be something like this for the use with topoSet and sample: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object topoSetDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // actions ( { name zone1; type cellSet; action new; source boxToCell; sourceInfo { box (0 -1 0.5) (4 1 0.5); } } { name zone1; type cellZoneSet; action new; source setToCellZone; sourceInfo { set zone1; } } ); // ************************************************************************* // Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object sampleDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // interpolationScheme cell; surfaceFormat raw; surfaces ( plane1 { type plane; // always triangulated basePoint (2 0 0.5); normalVector (0 0 1); zone zone1; } ); fields ( p ); // ************************************************************************* // |
|
![]() |
![]() |
![]() |
Tags |
plane, sampledict, surface, zone |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 10:28 |
[GAMBIT] periodic faces not matching | Aadhavan | ANSYS Meshing & Geometry | 6 | August 31, 2013 12:25 |
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem | Attesz | OpenFOAM Meshing & Mesh Conversion | 12 | May 2, 2013 11:52 |
Problem in running ICEM grid in Openfoam | Tarak | OpenFOAM | 6 | September 9, 2011 18:51 |
Problem in IMPORT of ICEM input file in FLUENT | csvirume | FLUENT | 2 | September 9, 2009 02:08 |