|
[Sponsors] |
April 3, 2024, 13:58 |
Re Sampling Fields at CellZone Interface
|
#1 |
Member
Anirudh Kulkarni
Join Date: May 2016
Posts: 62
Rep Power: 10 |
Dear Foamers,
What would be the best way to sample the field values at the cellzone interface? I have been trying to use the STL file for that with sampledict, but the output is not smooth. I tried refining the mesh a lot, but still nothing. Background - I am trying to export gradT field along the porous interface. |
|
April 4, 2024, 04:41 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
Hello,
How did you define your cellZone? Yann |
|
April 4, 2024, 07:16 |
|
#3 |
Member
Anirudh Kulkarni
Join Date: May 2016
Posts: 62
Rep Power: 10 |
Thank you for replying. Here is my toposet file for you /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: dev | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object topoSetDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // actions ( { name porousZone; type cellSet; action new; source surfaceToCell; file "constant/triSurface/ibCylinder.stl"; useSurfaceOrientation false; // use closed surface inside/outside // test (ignores includeCut, // outsidePoints) outsidePoints ((1.4 0 0.01)); // definition of outside includeCut false; // cells cut by surface includeInside true; // cells not on outside of surf includeOutside false; // cells on outside of surf nearDistance 0.0001; // cells with centre near surf // (set to -1 if not used) curvature 0.9; // cells within nearDistance // and near surf curvature // (set to -100 if not used) } ///////////////////////////////////////////////////////// { name porousZone; type cellZoneSet; action new; source setToCellZone; sourceInfo { set porousZone; } } ); // ************************************************** *********************** // |
|
April 4, 2024, 08:49 |
|
#4 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
Alright, you will never get a smooth cellZone interface using topoSet, as it doesn't modify the mesh, but only select cells based on the criteria you defined. (in your case, all the cells contained inside your STL file)
In order to get a smooth interface your should define the cellZone when creating your mesh. If you create your mesh with snappyHexMesh, you can define your cellZone right into snappyHexMeshDict, and you will get a mesh snapped to your STL. |
|
Tags |
cellzone, interface, openfoam, porous, sampling |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can I achieve better convergence? | sheaker | CFX | 12 | September 19, 2019 16:36 |
Turbomachinery Mass imbalance | sheaker | CFX | 12 | September 5, 2019 09:09 |
Radiation in semi-transparent media with surface-to-surface model? | mpeppels | CFX | 11 | August 22, 2019 08:30 |
a reconstructPar issue | immortality | OpenFOAM Post-Processing | 8 | June 16, 2013 12:25 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 05:05 |