CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Salome] UNV IO Source Code

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2006, 12:09
Default UNV IO Source Code
  #1
Member
 
Doug Baldwin
Join Date: Mar 2009
Posts: 53
Rep Power: 17
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: 17
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: 17
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: 17
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
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 18:18
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


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