Can a .h5m File be Converted to Something Readable by Flair?

118 views
Skip to first unread message

Nikos Nikolopoulos

unread,
Jul 8, 2021, 9:41:28 AM7/8/21
to DAGMC Users and Collaborators
Dear community,

I am in the process of running some FLUKA simulations for a CAD defined geometry making use of FluDAG and I was wondering if it would be possible to visualize my geometry using flair. 

Initially I had a .step file in my hands which can be converted to a .h5m file through Coreform_Cubit. The .h5m file is necessary for the FluDAG executable in order to run a FLUKA simulation. 

Any clue if flair can read .h5m files or if they can be converted to a flair readable format?

Best regards,
Nikos.

Andrew Davis

unread,
Jul 8, 2021, 12:05:02 PM7/8/21
to dagmc...@googlegroups.com
Hi Nikos

I presume so you can plot the geometry?

In which case, yes, but you'll need to apply a little patch to flair since my changes aren't in there yet. I'll just dig out the patch

In Flair, set the custom executable to be the mainfludag executable.

In the plot section, make sure to turn on boundaries. Its a little non-robust to some plot failures, so you may have to sart small and make your plots cover larger and larger extents of space.

Thanks

Andy


--
You received this message because you are subscribed to the Google Groups "DAGMC Users and Collaborators" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dagmc-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dagmc-users/fcf8695e-06c7-4174-a683-66f165a06933n%40googlegroups.com.
Screenshot from 2021-07-08 16-58-32.png

Nikos Nikolopoulos

unread,
Jul 9, 2021, 12:31:51 PM7/9/21
to DAGMC Users and Collaborators
Dear Andy,

I was able to successfully run a simulation using flair after attaching the mainfludag executable at the exe field of the "run" tab for the fluka.inp input file. I replicated the example which can be found under the "Example Input" section of the link: 


The only thing visible through the geoviewer under flair's geometry tab is the beam defined in the input file, which makes sense because of the FLUGG option of the GEOBEGIN card. I am attaching bellow all files produced by the run along with the .flair file I used. Also, I made an effort to plot the geometry (after clicking on the wizzard button of flair's plot tab, some options automatically appear on the left panel), but I was unsuccessful because of a strange error, i.e. "ERROR: No None001_PLOTGEOM.STORE file" (screenshots attached).

I also ran simulations for a CAD defined geometry which was converted to an .h5m file but I was again unable to plot it with flair, any suggestions on how to successfully plot my geometry and overcome the aforementioned error message, would be gratefully accepted.

Concluding, another burning question is: Could one possibly view a .h5m file (or a similar format) using flair's geoviewer?

Best regards,
Nikos.
flair_files.zip
FLAIR_TABS.png
PLOT_TAB.png

Andrew Davis

unread,
Jul 12, 2021, 6:50:14 AM7/12/21
to dagmc...@googlegroups.com
Hi Nikos

No, there is currently no mechanism to use geoviewer to plot the geometry, like I said above, you need to use the gnuplot based options in the plot pane of Flair.

In order to plot DAGMC geometries with geoviewer, we would have to make it aware of h5m, overload the various raytracing parts for the appropriate DAGMC geometry functions, none of which are impossible, but all take time and effort to complete.

Depending on what you want to plot, you can always use Visit or Paraview to view your geometry and mesh based scores in context, like you would with geoviewer.

Thanks

Andy

Reply all
Reply to author
Forward
0 new messages