|
[Sponsors] |
July 15, 2010, 10:10 |
refineWallLayer
|
#1 |
Senior Member
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18 |
hello,
can someone give me an example how to use the refineWallLayer utility with snappyHexMesh ? Regards, Stephane |
|
July 16, 2010, 11:35 |
|
#2 |
Senior Member
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18 |
how to use the refineWallLayer utility
With snappyHexMesh just create 1 'big' layer. Then use several times the refineWallLayer utility to refine. if your solid is composed of 3 surfaces called : head, body and back refineWallLayer -overwrite head 0.3 refineWallLayer -overwrite body 0.3 refineWallLayer -overwrite back 0.3 At the end check your final mesh with: checkMesh -latestTime Stephane |
|
July 29, 2011, 10:47 |
|
#3 |
Member
Stefan
Join Date: Jan 2010
Location: Kiel, Germany
Posts: 81
Rep Power: 16 |
Hi Stephane,
I agree with you, in cases where addLayers functionality with snappyHexMesh fails to add several layers. Do you have a work around to refine the wall layers from different patches at once? I tried Code:
refineWallLayer [OPTIONS] 'patch1 patch2,...' <edgeWeight> Code:
refineWallLayer [OPTIONS] '(patch1 patch2,...)' <edgeWeight> Code:
refineWallLayer [OPTIONS] '(patch1,patch2,...)' <edgeWeight> Code:
refineWallLayer [OPTIONS] ':patch1,patch2,...:' <edgeWeight> so right now i have to use a shell script... May you or someone else could give me an advice? Thanks! /Stefan |
|
October 11, 2012, 17:22 |
write last step only
|
#4 |
Member
Join Date: Sep 2011
Posts: 45
Rep Power: 15 |
I know it's an old thread, but do you know a way to write only the last mesh of refineWallLayer when it is used in a shell script ?
Writing the mesh at each iteration is very time consuming. |
|
October 12, 2012, 10:49 |
|
#5 |
Member
Stefan
Join Date: Jan 2010
Location: Kiel, Germany
Posts: 81
Rep Power: 16 |
It should be working if you set 'startFrom latestTime;' in <constant/controlDict>!
/Stefan |
|
October 12, 2012, 10:52 |
|
#6 |
Member
Join Date: Sep 2011
Posts: 45
Rep Power: 15 |
I tried that, but it still writes the new mesh each time refineWallLayer is executed.
|
|
October 16, 2012, 10:32 |
|
#7 |
Member
Stefan
Join Date: Jan 2010
Location: Kiel, Germany
Posts: 81
Rep Power: 16 |
I can't understand it. It should be working. There is a '-overwrite' flag that overwrite the mesh of last time step. If this flag isn't used, the application write out the mesh to the new time step.
What version do you use? What is your script look like? /Stefan |
|
October 16, 2012, 11:29 |
|
#8 |
Member
Join Date: Sep 2011
Posts: 45
Rep Power: 15 |
The overwrite flag, if I understand it correctly, simply overwrites the time in which the mesh is currently located. For example, if you apply refineWallLayer (with the overwrite flag on) on a mesh in time 1, the new "refined" mesh will be written in time 1, deleting the old mesh. Without the overwrite flag, the new mesh will simply be written in time 2.
My script looks like that: Code:
. $WM_PROJECT_DIR/bin/tools/RunFunctions while [ condition] do stuff to calculate refineWallLayer inputs runApplication refineWallLayer lowerWall $Ratio -overwrite rm log.refineWallLayer done exit I use OF 1.7.1 Last edited by ic3wall; October 16, 2012 at 12:17. |
|
October 17, 2012, 12:30 |
|
#9 | |
Member
Stefan
Join Date: Jan 2010
Location: Kiel, Germany
Posts: 81
Rep Power: 16 |
Quote:
/Stefan |
||
October 17, 2012, 17:25 |
|
#10 |
Member
Join Date: Sep 2011
Posts: 45
Rep Power: 15 |
I know refineWallLayer deals with the hole mesh, but is there a way to tell the utility to keep the last iteration in memory instead of writing it and then reading it for the next iteration ?
i didn't think of running it in parallel ... but again decomposing and reconstructing the mesh at each iteration will be time consuming as well |
|
October 20, 2012, 13:59 |
|
#11 | |
Member
Stefan
Join Date: Jan 2010
Location: Kiel, Germany
Posts: 81
Rep Power: 16 |
Quote:
Another possibility might by using subSetMesh to write near wall layer to separate mesh, perform refining and stitch it with 'far field mesh' afterwards. Didn't try it yet. /Stefan |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] refineWallLayer Error | Yuby | OpenFOAM Meshing & Mesh Conversion | 2 | November 11, 2021 12:04 |
[snappyHexMesh] refineWallLayer vs add layer | Astan | OpenFOAM Meshing & Mesh Conversion | 0 | March 18, 2019 13:03 |
refineWallLayer error after upgrading | wildfire230 | OpenFOAM Pre-Processing | 2 | October 27, 2017 16:21 |
refineWallLayer cellZone preservation workaround | jameswilson620 | OpenFOAM | 0 | May 10, 2016 11:56 |
[snappyHexMesh] snappyHexMesh and refineWallLayer | Claudio | OpenFOAM Meshing & Mesh Conversion | 0 | June 20, 2013 14:36 |