CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Open Source Meshers: Gmsh, Netgen, CGNS, ... (http://www.cfd-online.com/Forums/openfoam-meshing-open/)
-   -   UNV IO Source Code (http://www.cfd-online.com/Forums/openfoam-meshing-open/61969-unv-io-source-code.html)

gdbaldw October 30, 2006 12:09

Hello. A robust UNV to OpenFO
 
Hello. A robust UNV to OpenFOAM conversion may be possible using the open source UNV_IO module included with the LIBMESH GNU library. This UNV_IO module supports TRI, QUAD, TET, PRISM, & HEX.

I would really like to use Salmone with OpenFOAM. Unfortunately, I am not a C-coder. I trust that what I have found may be useful in furthering the utility of OpenFOAM.

Documentation, header, source, and examples are available at the following sourceforge URLs:

Documentation is available at:

http://libmesh.sourceforge.net/doxygen/classUNVIO.php

The header files are available at:

http://libmesh.sourceforge.net/doxyg..._8h-source.php

The source code is available at:

http://libmesh.sourceforge.net/doxyg..._8C-source.php

Examples are available at:

http://libmesh.sourceforge.net/ex12.php

BTW, the CAElinux Beta 3A announced utility for converting UNV to OpenFOAM is simply a copy of the code from this forum posted at http://www.cfd-online.com/cgi-bin/Op...=9823#POST9823

Please disregard if this information is unhelpful.

Doug

gdbaldw November 1, 2006 13:03

The specification for UNV form
 
The specification for UNV format 2412 is available here:

http://www.sdrl.uc.edu/uff/SDRChelp/...g/UNV_2412.htm

All UNV specs are available here:
http://www.sdrl.uc.edu/uff/SDRChelp/...nglish/unv_ug/

Illustrations showing the UNV mapping of points for elements is available in the libmesh documentation. For instance:


TET4:
3
o
/|\
/ | \
/ | \
0 o...|...o 2
\ | /
\ | /
\|/
o
1

(sorry, the white-space got compressed)

...is copied from here:
http://libmesh.sourceforge.net/doxygen/classTet4.php

Many other UNV element type illustrations can be accessed from the page here:
http://libmesh.sourceforge.net/doxygen/index.php

Now, if could only write C++. I am eager to learn...

billy November 2, 2006 21:45

You can also check the codes p
 
You can also check the codes posted at:

http://www.cfd-online.com/OpenFOAM_D...es/1/2934.html

Maybe you can test these and add your contribution.

markc March 2, 2008 15:30

Has anyone have some tips rega
 
Has anyone have some tips regarding importing meshes in OpenFOAM? As most messages I read are from 2006 or earlier it seems that many of those attempts failed. E.g.: did finally anyone succeed with Salome and unvToFoam?
Is Netgen still alive?
I am trying to use GiD. The problem so far is that I do not know how to define/name/label boundary faces yet.
Can anyone explain a clear and proven procedure about going from Iges to mesh to OpenFoam?
Thanks in advance,

Mark

mkraposhin March 7, 2008 09:47

Yes, i succesfully converted m
 
Yes, i succesfully converted my mesh from SALOME (3.2.6) to OpenFOAM (1.4.1)

Exporting procedure may be like this

1) Save geometry to IGES (I'm using BREP) format
2) Import IGES (or BREP) to Salome (in GEOM Module)
3) Explode obtained in 2 step compound object (for example, file.brep) into volumes
4) Define boundaries as groups
5) switch in Salome to SMESH module
6) mesh geomtry
7) define face groups for obtained mesh (BC)
8) export to UNV format
9) ideasUnvToFoam

sorry for bad english


All times are GMT -4. The time now is 01:21.