Difference between revisions of "IdeasUnvToFoam"
m (link to a good description for UNV universal file format) |
|||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | ==Name== | ||
+ | <tt>ideasUnvToFoam</tt> - [http://victorsndvg.github.io/FEconv/formats/unv.xhtml I-Deas Universal unv format] mesh conversion | ||
+ | |||
+ | {{VersionInfo}}{{Version2.1}} | ||
+ | |||
+ | ==Synopsis== | ||
+ | ideasUnvToFoam [OPTIONS] FILEMESH.unv | ||
+ | |||
+ | ==Description== | ||
+ | Convert a mesh file FILEMESH.unv from Ideas .unv format to foam format. | ||
+ | |||
+ | '''-dump''' | ||
+ | :Dump boundary faces as boundaryFaces.obj | ||
+ | |||
+ | '''-case''' ''DIR'' | ||
+ | :Execute the command on the case directory ''DIR''. If not provided, use the current directory | ||
+ | '''-noFunctionObjects''' | ||
+ | :Skip the execution of the [[functionObjects]] | ||
+ | '''-help''' | ||
+ | :Display the help and exit | ||
+ | |||
+ | ==Step by step example== | ||
+ | |||
+ | {{VersionInfo}}{{Version1.4}} | ||
+ | |||
Import a mesh generated by I-DEAS or Salome [http://www.salome-platform.org] to OpenFOAM. | Import a mesh generated by I-DEAS or Salome [http://www.salome-platform.org] to OpenFOAM. | ||
Line 18: | Line 43: | ||
[http://www.caelinux.org/wiki/downloads/docs/Pipe2007/PipeOpenFoam.htm Part 3, CFD analysis in OpenFOAM (PipeOpenFOAM2007)] | [http://www.caelinux.org/wiki/downloads/docs/Pipe2007/PipeOpenFoam.htm Part 3, CFD analysis in OpenFOAM (PipeOpenFOAM2007)] | ||
− | + | ==Bugfix for OF 1.4.1== | |
− | '''Note:OF 1.4.1''' To use '''ideasUnvToFoam Converter''' please read http:// | + | '''Note:OF 1.4.1''' To use '''ideasUnvToFoam Converter''' please read: [http://www.cfd-online.com/Forums/openfoam-bugs/62473-ideasunvtofoam-bug-amp-fix.html IdeasUnvToFoam Bug amp Fix] |
and get the corrected '''ideasUnvToFoam.C''' http://openfoam.cfd-online.com/forum/messages/126/ideasUnvToFoam-6020.unk | and get the corrected '''ideasUnvToFoam.C''' http://openfoam.cfd-online.com/forum/messages/126/ideasUnvToFoam-6020.unk | ||
copy ideasUnvToFoam-6020.unk to "util" mesh/conversion/ideasUnvToFoam/ as ideasUnvToFoam.C | copy ideasUnvToFoam-6020.unk to "util" mesh/conversion/ideasUnvToFoam/ as ideasUnvToFoam.C | ||
wclean ; and wmake | wclean ; and wmake | ||
+ | |||
+ | ==Hint for OF 2.1.0 / Salome 6.5 == | ||
+ | Problematic unv export from Salome 6.5 | ||
+ | (see [http://bugs.openfoam.org/view.php?id=584 bug report #584]) | ||
+ | The second line of the generated .unv file is not 6 columns wide: | ||
+ | 164 | ||
+ | |||
+ | Change that and ideasUnvToFoam runs. The problem is with Salome's .unv output. | ||
+ | |||
+ | [[Category:Mesh conversion utilities]] |
Latest revision as of 20:06, 8 September 2020
Contents
1 Name
ideasUnvToFoam - I-Deas Universal unv format mesh conversion
2 Synopsis
ideasUnvToFoam [OPTIONS] FILEMESH.unv
3 Description
Convert a mesh file FILEMESH.unv from Ideas .unv format to foam format.
-dump
- Dump boundary faces as boundaryFaces.obj
-case DIR
- Execute the command on the case directory DIR. If not provided, use the current directory
-noFunctionObjects
- Skip the execution of the functionObjects
-help
- Display the help and exit
4 Step by step example
Import a mesh generated by I-DEAS or Salome [1] to OpenFOAM.
1. export the UNV file from I-DEAS or Salome (Module Mesh -> File/Export/UNV file)
2. create a new case with foamX: Case Browser -> right click -> Create Case
3. Convert the mesh file to openFoam: $ ideasUnvToFoam <root> <caseName> (Path) <meshFile>
example: ideasUnvToFoam . testunvconvert /home/foam/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh/conversion/ideasUnvToFoam/unv/face_groups_Cubit.unv
A tutorial how to use Salome to generate a mesh for OpenFOAM can be viewed at CAELinux tutorial
Part 1, Geometry modelling in Salome : (PipeGeom2007)
Part 2, Meshing in Salome (PipeMesh2007)
Part 3, CFD analysis in OpenFOAM (PipeOpenFOAM2007)
5 Bugfix for OF 1.4.1
Note:OF 1.4.1 To use ideasUnvToFoam Converter please read: IdeasUnvToFoam Bug amp Fix and get the corrected ideasUnvToFoam.C http://openfoam.cfd-online.com/forum/messages/126/ideasUnvToFoam-6020.unk
copy ideasUnvToFoam-6020.unk to "util" mesh/conversion/ideasUnvToFoam/ as ideasUnvToFoam.C wclean ; and wmake
6 Hint for OF 2.1.0 / Salome 6.5
Problematic unv export from Salome 6.5 (see bug report #584) The second line of the generated .unv file is not 6 columns wide:
164
Change that and ideasUnvToFoam runs. The problem is with Salome's .unv output.