|
[Sponsors] |
November 21, 2013, 12:24 |
Convert 2D to 3D for OpenFOAM?
|
#1 |
New Member
Join Date: Nov 2013
Posts: 2
Rep Power: 0 |
Hi,
I was wondering if anyone has experience turning a 2D model into a 3D one for OpenFOAM? I have a 2D grid - complete with domains, connectors, and database that I've successfully run on another solver. Do I have to copy the whole thing to a new plane and then add connectors between all the points? Or do I just need the connectors? Thanks |
|
November 21, 2013, 15:05 |
|
#2 | |
Senior Member
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22 |
Quote:
- make sure your domain(s) are in the xy plane - make sure your CAE type is OpenFOAM - select the domain(s) and create a translational extrusion of one cell in the +'ve z direction - apply appropriate CAE BCs on sides of extrusion - apply the "empty" BC type to original domain(s) and their matching counterpart on other side of the extrusion - now select the block(s) and File, Export, CAE ... to your polyMesh directory Note for step 3, the depth of the extrusion shouldn't matter as the simulation is 2D. I usually choose a depth large enough so that selecting the domains on the side of the extrusion isn't tedious. That however may create high enough aspect ratio cells to cause OpenFOAM's checkMesh to complain. That won't cause any issues because the simulation is 2D and the cells are long in the z direction OpenFOAM. |
||
November 21, 2013, 15:27 |
|
#3 |
New Member
Join Date: Nov 2013
Posts: 2
Rep Power: 0 |
This is exactly what I was looking for. Thanks so much!
Edit: the above steps worked perfectly Last edited by crossm2; November 26, 2013 at 21:18. |
|
November 22, 2013, 10:33 |
|
#4 |
Senior Member
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14 |
FYI...
A user attending a Pointwise training class had a similar problem when using GASP. It also wants a one-cell thick grid for 2D cases. To help him out, I wrote a glyph script that performs the 2D to 3D "thickening." Also, as a big bonus, it automatically transfers any 2D BCs from the connectors to the extruded domains. I have not tested the script using the OpenFOAM solver, but it works wonderfully with GASP! I will be posting it to the Pointwise script exchange soon (maybe today). Keep an eye on the script exchange for the upload. I will try to remember to make a post here when it is available. |
|
November 25, 2013, 17:43 |
|
#5 | |
Senior Member
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14 |
Quote:
Unfortunately, the OpenFOAM CAE exporter does not support 2D mode. The script has limited benefit unless you can start with a 2D grid that has BCs applied to the connectors. So, Chris' instructions are your best option right now. |
||
July 7, 2017, 21:46 |
|
#6 |
Senior Member
TWB
Join Date: Mar 2009
Posts: 400
Rep Power: 19 |
Hi,
I would like to add that the new ver of Pointwise (18r2) allows 2d OpenFOAM export. So there is no need to use the extrude to 3d anymore. However, I found that it is crucial to use the command "renumberMesh" before running OpenFOAM because somehow the final output data has some numbering error. I kept getting divergent results ... that is until I use "renumberMesh". Hope that helps. |
|
July 10, 2017, 11:16 |
|
#7 |
Senior Member
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14 |
Yes, quarkz you are correct. Pointwise now directly supports OpenFOAM 2D export.
Also, notice that the SizeBCExport and Thickness options options are available (CAE, Set Solver Attributes...) that control the exporting of 2D OpenFOAM grids. See section 11.6.4 OpenFOAM in the user manual for details (Help, User Manual...). Pointwise does not try to optimize the exported grid data for OpenFOAM. As a result, it is a recommended "best-practice" to process OpenFOAM grids exported from Pointwise through renumberMesh. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
convert to structed mesh | ok___ko | Mesh Generation & Pre-Processing | 0 | April 22, 2013 05:23 |
convert a structured multiblock grid to an one unstructured: modification of cells | Mirage | ANSYS | 0 | July 18, 2012 09:14 |
ImageMagick will not convert jpg to mpg | musahossein | Main CFD Forum | 1 | December 2, 2011 10:44 |
convert virtual volume to a real one | djalil | FLUENT | 0 | January 22, 2009 15:07 |