CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

UNV IO Source Code

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 30, 2006, 12:09
Default Hello. A robust UNV to OpenFO
  #1
Member
 
Doug Baldwin
Join Date: Mar 2009
Posts: 53
Rep Power: 8
gdbaldw is on a distinguished road
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 is offline   Reply With Quote

Old   November 1, 2006, 13:03
Default The specification for UNV form
  #2
Member
 
Doug Baldwin
Join Date: Mar 2009
Posts: 53
Rep Power: 8
gdbaldw is on a distinguished road
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...
gdbaldw is offline   Reply With Quote

Old   November 2, 2006, 21:45
Default You can also check the codes p
  #3
Senior Member
 
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 8
billy is on a distinguished road
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.
billy is offline   Reply With Quote

Old   March 2, 2008, 15:30
Default Has anyone have some tips rega
  #4
Senior Member
 
Mark Couwenberg
Join Date: Mar 2009
Location: Netherlands
Posts: 130
Rep Power: 8
markc is on a distinguished road
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
markc is offline   Reply With Quote

Old   March 7, 2008, 09:47
Default Yes, i succesfully converted m
  #5
Senior Member
 
mkraposhin's Avatar
 
Matvej Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 172
Rep Power: 8
mkraposhin is on a distinguished road
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
mkraposhin is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Source-Code Peter FLUENT 2 October 11, 2006 06:10
source code selvam R.P Main CFD Forum 0 November 6, 2005 03:11
2D ALE Source Code Shukla Main CFD Forum 5 October 27, 2005 00:44
source code ouzi Main CFD Forum 2 December 18, 2002 02:41
who has source code for cfd xingqiuYuan Main CFD Forum 3 June 5, 2002 04:38


All times are GMT -4. The time now is 04:34.