|
[Sponsors] |
Parallel case setup boundry conditions snappyhexmesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 8, 2009, 19:39 |
I've probably been going at th
|
#1 |
New Member
Oskar
Join Date: Mar 2009
Location: Finland
Posts: 12
Rep Power: 17 |
I've probably been going at this the wrong way, but haven't been able to find the correct way to to setup a parallel case.
What I've been doing: 1. blockMesh 2. snappyHexMesh 3. manually define boundary conditions 4. decomposePar 5. mpirun case I would prefer to run snappyHexMesh in parallel because: a) running out of memory on single computer b) running on one core is very slow What I've tried: 1. manually setup boundary condition for time 0 2. decomposeParDict: method metis 3. blockMesh 4. decomposePar 5. decomposeParDict: method parMetis 6. mpirun snappyHexMesh This results in a good mesh, but the problem is I can't figure out how to get the boundary conditions to follow the mesh generation to timestep 3. Snappyhexmesh does insert the stl-wall boundary correctly, but doesn't touch the p, U etc. files. Could some knowledgeable FOAMer point me in the right direction? |
|
April 15, 2009, 15:04 |
|
#2 |
New Member
Oskar
Join Date: Mar 2009
Location: Finland
Posts: 12
Rep Power: 17 |
Surely someone must have a elegant way to setup the initial field for parallel cases while using snappyHexMesh in parallel?
How do you do it? I tried using mapFields, but I couldn't figure out a way to setup the case using the "-consistent" flag (since the stl-surface isn't there before running snappyHexMesh). Without the -consistent flag mapFields requires the "destination" case to already have the field variables set to something. Creating the field variable in the first place is what I'm trying to do! Manually setting the initial field variables isn't very efficient since a lot of files need to be created (or copied and tweaked individually). Especially if batch runs with small adjustments need to be run this is impossible to do without a tool. Using a CFD program with no user interface seems to be very difficult. |
|
April 16, 2009, 12:23 |
|
#3 |
Senior Member
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18 |
I don't know if it works for parallel cases as well, but have you tried pyFoam? Search the forum for it.
Francesco |
|
April 17, 2009, 08:34 |
|
#4 |
New Member
Oskar
Join Date: Mar 2009
Location: Finland
Posts: 12
Rep Power: 17 |
Thanks for the tip fra76!
I found some documentation to pyFoam on openfoamwiki.net, looks to have useful tools. I also stumbled across funkySetFields, tried that out and it's somewhat capable of doing what I what with a single command. (for parallel case setups needs to be run with the same processor amount as the case is decomposed to though) mpirun -hostfile ~/foamHosts funkySetFields -create -field U -expression 'vector(60,0,0)' -time 3 -parallel I'll probably have to learn how to make the hideously cryptic bash scripts, but funkySetFields seems to be able to do most of what I what so hopefully I wont need to figure that much out. |
|
September 9, 2009, 07:20 |
|
#5 |
Member
Andrew King
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 82
Rep Power: 17 |
Hi Oscar,
see http://www.cfd-online.com/Forums/ope...tml#post228991 I have a feeling this may work (testing at the moment) Cheers Andrew
__________________
Dr Andrew King Fluid Dynamics Research Group Curtin University |
|
September 11, 2009, 02:12 |
|
#6 |
Member
Cem Albukrek
Join Date: Mar 2009
Posts: 52
Rep Power: 17 |
I had the exact same problem as the original poster. I have not found an elegant way, but use a rather convenient work around:
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] SnappyHexMesh in 2D case | sjs | OpenFOAM Meshing & Mesh Conversion | 12 | November 8, 2019 05:51 |
boundry conditions | pardeep kumar | FLUENT | 1 | February 15, 2009 13:30 |
Boundry conditions!!!! | Zaher | CFX | 2 | March 16, 2004 10:25 |
Boundry Conditions | Parshant Dhand | FLUENT | 2 | January 10, 2003 21:25 |
Boundry Conditions | Parshant Dhand | FLUENT | 2 | January 10, 2003 21:18 |