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

Re Sampling Fields at CellZone Interface

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2024, 13:58
Unhappy Re Sampling Fields at CellZone Interface
  #1
Member
 
Anirudh Kulkarni
Join Date: May 2016
Posts: 62
Rep Power: 10
Tempest is on a distinguished road
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.
Tempest is offline   Reply With Quote

Old   April 4, 2024, 04:41
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello,

How did you define your cellZone?

Yann
Yann is offline   Reply With Quote

Old   April 4, 2024, 07:16
Default
  #3
Member
 
Anirudh Kulkarni
Join Date: May 2016
Posts: 62
Rep Power: 10
Tempest is on a distinguished road
Quote:
Originally Posted by Yann View Post
Hello,

How did you define your cellZone?

Yann

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;
}
}

);

// ************************************************** *********************** //
Tempest is offline   Reply With Quote

Old   April 4, 2024, 08:49
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
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.
Yann is offline   Reply With Quote

Reply

Tags
cellzone, interface, openfoam, porous, sampling


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
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


All times are GMT -4. The time now is 13:14.