|
[Sponsors] |
[mesh manipulation] Mesh refinement according to gradient of p |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 1, 2015, 22:18 |
Mesh refinement according to gradient of p
|
#1 |
New Member
Xiong Min
Join Date: Nov 2015
Posts: 1
Rep Power: 0 |
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. |
|
November 20, 2015, 12:47 |
|
#2 |
Senior Member
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16 |
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 |
|
January 13, 2018, 11:29 |
|
#3 |
New Member
Marko Josic
Join Date: Dec 2010
Posts: 20
Rep Power: 16 |
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. |
|
January 31, 2018, 08:16 |
|
#4 |
Member
Roman Gobitz-Pfeifer
Join Date: Dec 2009
Location: Stuttgart
Posts: 83
Rep Power: 17 |
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
|
|
February 5, 2018, 15:01 |
|
#5 |
Senior Member
Join Date: Aug 2015
Posts: 494
Rep Power: 15 |
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 |
|
January 6, 2019, 05:06 |
|
#6 | |
Senior Member
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 16 |
Quote:
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 |
||
Tags |
gradient of p, openfoam, refinement, toposet |
|
|
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 |