Exporting a Fluent msh with multiple element types per block

Topics related to importing and exporting file formats, etc.

Exporting a Fluent msh with multiple element types per block

Postby pirom » Wed Sep 11, 2013 11:30 am

Hello,

When Trelis exports a Fluent mesh containing multiple element types in a single block, this block is split into multiple blocks (or cell zones) corresponding to the different element types. Consider the following simple example of a cylinder represented by both hexs and tets. Importing this mesh in Fluent reveals three cell zones, when there really should only be one. This does not appear to be an issue with Fluent, which can handle such meshes from other mesh generators.

Am I missing something?

Thanks,
Markus


reset
undo on

create Cylinder height 30 radius 5
webcut volume 1 with plane zplane offset 0

imprint all
merge all

surface 3 scheme circle fraction 0.5
mesh surface 3
volume 1 scheme Sweep sweep_smooth Auto sweep_transform least_squares autosmooth_target off
mesh volume 1

volume 2 scheme Tetmesh
set tetmesher interior points on
set tetmesher optimize level 3 optimize overconstrained off sliver off
set tetmesher boundary recovery off
mesh volume 2

# Note: this command should force all elements into a single block (cell zone):
block 1 volume all

create cfd_bc name 'inlet' velocityinlet on surface 3
create cfd_bc name 'outlet' pressureoutlet on surface 2
create cfd_bc name 'wall' wall on surface 5 7
pirom
 
Posts: 11
Joined: Tue May 14, 2013 1:18 pm

Re: Exporting a Fluent msh with multiple element types per b

Postby csimsoft Moderator » Thu Sep 12, 2013 12:32 pm

Markus,

I don't think you are missing anything, but I think I see the problem.

Can you modify the output file and change
(0 "Cells:")
(12 (4 1 1a40 1 4))
(12 (4 1a41 5733 1 2))
(12 (4 5734 58f3 1 5))

to
(0 "Cells:")
(12 (4 1 58f3 0 0))

Please let us know if this helps.
csimsoft
csimsoft Moderator
 
Posts: 246
Joined: Tue Feb 14, 2012 5:59 pm
Location: American Fork, UT

Re: Exporting a Fluent msh with multiple element types per b

Postby pirom » Fri Sep 13, 2013 6:22 am

Hello,

Modifying the mesh file using your suggestion yields the following error in Fluent:

Cell ID 22771 out of declared range (1<=id<=22751).
Reading Cells: failed while reading section 12.

Clearing partially read grid.

Error: Read_Grid_Section: Aborted due to critical error.
Error Object: #f

Error: Error reading "C:\Users\pirom\Documents\deleteme.msh".
Error Object: #f

Interrupting...
Done.



It would be helpful if the next version of Trelis was able to handle multiple element types per block.

Regards,
Markus
pirom
 
Posts: 11
Joined: Tue May 14, 2013 1:18 pm


Return to Importing/Exporting

Who is online

Users browsing this forum: No registered users and 1 guest

cron

Search / Mark

User Control Panel

Login

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 58 on Mon Jun 26, 2017 4:19 pm

Users browsing this forum: No registered users and 1 guest