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

[mesh manipulation] Mesh refinement according to gradient of p

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 1, 2015, 22:18
Wink Mesh refinement according to gradient of p
  #1
New Member
 
Xiong Min
Join Date: Nov 2015
Posts: 1
Rep Power: 0
miyazawa is on a distinguished road
I want to refine my unstructured grids (hexahedron only) according to gradient of p, but I am not sure whether I have to obtain the gradient files firstly. I use topoSet, refineMesh, and mapFields to fulfill refinement, and successfully refine a bounding box. I feel confused that the gradient files form in post-processing like the walGradU, or can be achieved by modifying several parameters.
Please help me to refine my unstructured grids.
miyazawa is offline   Reply With Quote

Old   November 20, 2015, 12:47
Default
  #2
Senior Member
 
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 15
cutter is on a distinguished road
Hi,

please have a look at the tutorial case .../tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle (checked it for 2.4 and later versions). In this case the mesh is refined based on the phase field alpha.water at each time step (refinement defined in constant/dynamicMeshDict). I haven't tried this yet, but I'm pretty sure this can be done based on the pressure field p with only minor modifications.

Hope that helps.

Cutter
cutter is offline   Reply With Quote

Old   January 13, 2018, 11:29
Default
  #3
New Member
 
Marko Josic
Join Date: Dec 2010
Posts: 20
Rep Power: 15
emjay is on a distinguished road
I know this thread is old, but for other user who also searching for a workaround.

tutorial case .../tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle
would not help for this problem. The dynamicMeshDict file refine a scalar only between two values. It is not possible to define a gradient field. e.g. grad(p).

It is interesting why there isn't any workaround here to define a meshRefinement on a gradient basis.

Or maybe i haven't figure it out who to do it.
emjay is offline   Reply With Quote

Old   January 31, 2018, 08:16
Default
  #4
Member
 
Roman Gobitz-Pfeifer
Join Date: Dec 2009
Location: Stuttgart
Posts: 83
Rep Power: 16
Wikie is on a distinguished road
Mesh refining based on a gradient is a topic, that I'm also interested in. If anybody has a solution for this problem, please let us know
Wikie is offline   Reply With Quote

Old   February 5, 2018, 15:01
Default
  #5
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
A quick work around is taking the magnitude of the gradient field to produce a scalar field. You could also use a single component of the field.

Caelan
clapointe is offline   Reply With Quote

Old   January 6, 2019, 05:06
Default
  #6
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 15
gaza is on a distinguished road
Quote:
Originally Posted by emjay View Post
I know this thread is old, but for other user who also searching for a workaround.

tutorial case .../tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle
would not help for this problem. The dynamicMeshDict file refine a scalar only between two values. It is not possible to define a gradient field. e.g. grad(p).

It is interesting why there isn't any workaround here to define a meshRefinement on a gradient basis.

Or maybe i haven't figure it out who to do it.
Hi
here it is shown how to adapt solver and case to refine mesh based on a gradient:
http://www.tfd.chalmers.se/~hani/kur...rayDyMFoam.pdf
__________________
best regards
pblasiak
gaza is offline   Reply With Quote

Reply

Tags
gradient of p, openfoam, refinement, toposet

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
[snappyHexMesh] SnappyHexMesh running killed! Mark JIN OpenFOAM Meshing & Mesh Conversion 7 June 14, 2022 02:37
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
[snappyHexMesh] problems generating clean mesh Christian_tt OpenFOAM Meshing & Mesh Conversion 2 June 20, 2019 06:39
[snappyHexMesh] Removing further cells after SHM zonda OpenFOAM Meshing & Mesh Conversion 14 September 15, 2017 08:50
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 09:54


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