|
[Sponsors] |
April 29, 2020, 17:37 |
gmsh file export unv to import by fluent
|
#1 |
New Member
Join Date: Apr 2020
Posts: 4
Rep Power: 6 |
I tried to make a cube and export the file from gmsh to unv to import it to Fluent. My code is as following:
Code:
//Points Point(1) = {0, 0, 0, 1}; Point(2) = {1, 0, 0, 1}; Point(3) = {0, 1, 0, 1}; Point(4) = {1, 1, 0, 1}; Point(5) = {0, 0, 1, 1}; Point(6) = {1, 0, 1, 1}; Point(7) = {0, 1, 1, 1}; Point(8) = {1, 1, 1, 1}; //Lines Line(1) = {1, 2}; Line(2) = {3, 4}; Line(3) = {1, 3}; Line(4) = {2, 4}; Line(5) = {5, 6}; Line(6) = {7, 8}; Line(7) = {5, 7}; Line(8) = {6, 8}; Line(9) = {1, 5}; Line(10) = {3, 7}; Line(11) = {2, 6}; Line(12) = {4, 8}; //Surfaces Curve Loop(1) = {3, 2, -4, -1}; Plane Surface(1) ={1}; Curve Loop(2) = {7, 6, -8, -5}; Plane Surface(2) ={2}; Curve Loop(3) = {10, -7, -9, 3}; Plane Surface(3) ={3}; Curve Loop(4) = {12, -8, -11, 4}; Plane Surface(4) ={4}; Curve Loop(5) = {9, 5, -11, -1}; Plane Surface(5) ={5}; Curve Loop(6) = {10, 6, -12, -2}; Plane Surface(6) ={6}; //Transfinite Lines Transfinite Curve {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12} = 21 Using Progression 1; //Transfinite Surface Transfinite Surface(1) = {1, 3, 4, 2}; Transfinite Surface(2) = {5, 7, 8, 6}; Transfinite Surface(3) = {3, 7, 5, 1}; Transfinite Surface(4) = {4, 8, 6, 2}; Transfinite Surface(5) = {1, 5, 6, 2}; Transfinite Surface(6) = {3, 7, 8, 4};//+ Recombine Surface {1, 2, 3, 4, 5, 6}; //Volumes Surface Loop(1) = {1, 3, 6, 2, 4, 5}; Volume(1) = {1}; //Transfinite Volume Transfinite Volume{1} = {1, 2, 4, 3, 5, 6, 8, 7}; Recombine Volume {1}; //Boundary Conditions Physical Surface("Inlet-Air") ={3}; Physical Surface("Wall-adiabatic") ={1}; Physical Surface("Symm-side") ={2, 5, 6}; Physical Surface("Outlet") ={4}; Physical Volume("Fluid") ={1}; 1. GMSH If I choose to export also the elements it gives me 8 times the following error: Code:
Warning : Unknown element type for UNV export (MSH type 15) - output file might be invalid Thus I don't export elements and I tried exporting the unv file with or without nodes. In both cases Fluent give me segmentation error and closes. Is there any solution for this? Thanks everyone for their help |
|
April 30, 2020, 05:59 |
Universal Format
|
#2 |
Senior Member
|
I don't think you can read universal format in Fluent, starting with version 6. Better to write in .msh format; gmsh can do that.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
April 30, 2020, 06:33 |
|
#3 |
New Member
Join Date: Apr 2020
Posts: 4
Rep Power: 6 |
Unfortunately academic version of fluent does not accept msh files, thus I need to import .unv file
|
|
April 30, 2020, 06:38 |
Fluent
|
#4 |
Senior Member
|
There is no difference in academic or commercial version of Fluent. The code is same; it would not be justified to write a separate code for academia. It is only limited by its capability to work with larger meshes. But do note that .msh file that gmsh writes is different from .msh file that Fluent uses. You have to convert it to Fluent format.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
July 31, 2024, 10:52 |
|
#5 |
New Member
Join Date: May 2024
Posts: 1
Rep Power: 0 |
I'm having the same problem importing a .msh file (2D) from gmsh into fluent. Are there any ways to convert it?
|
|
Tags |
export, gmsh, import, segmentation error, unv |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] swak4foam compiling issues on a cluster | saj216 | OpenFOAM Installation | 5 | January 17, 2023 17:05 |
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 | tlcoons | OpenFOAM Installation | 13 | April 20, 2016 18:34 |
SparceImage v1.7.x Issue on MAC OS X | rcarmi | OpenFOAM Installation | 4 | August 14, 2014 07:42 |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 04:23 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 11:57 |