CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

gmsh file export unv to import by fluent

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2020, 16:37
Question gmsh file export unv to import by fluent
  #1
New Member
 
Join Date: Apr 2020
Posts: 3
Rep Power: 2
maksay is on a distinguished road
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};
There are two issues related with this:
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
2. Fluent
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
maksay is offline   Reply With Quote

Old   April 30, 2020, 04:59
Default Universal Format
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,948
Blog Entries: 1
Rep Power: 31
vinerm will become famous soon enough
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.
vinerm is offline   Reply With Quote

Old   April 30, 2020, 05:33
Default
  #3
New Member
 
Join Date: Apr 2020
Posts: 3
Rep Power: 2
maksay is on a distinguished road
Unfortunately academic version of fluent does not accept msh files, thus I need to import .unv file
maksay is offline   Reply With Quote

Old   April 30, 2020, 05:38
Default Fluent
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,948
Blog Entries: 1
Rep Power: 31
vinerm will become famous soon enough
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.
vinerm is offline   Reply With Quote

Reply

Tags
export, gmsh, import, segmentation error, unv

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.com] swak4foam compiling issues on a cluster saj216 OpenFOAM Installation 4 February 27, 2020 15:57
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 17:34
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 06:42
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57


All times are GMT -4. The time now is 20:38.