Converting .sat to .h5m for OpenMC

150 views
Skip to first unread message

Luke Cleary

unread,
Aug 11, 2021, 4:32:45 AM8/11/21
to DAGMC Users and Collaborators
Hello, 

New DagMC/Cubit user here. My project is to explore the dagmc/cubit toolchain in order to simulate neutronics on cad geometry in OpenMC.

When I run OpenMC using the dagmc.h5m geometry file generated via cubit/dagmc, I am getting an error. It's possible this is on the OpenMC side, and I am still looking into that, but I'd like to get some feedback on my process to make sure I've generated the file correctly. 

I have the trial version of cubit with the cubit/dagmc plugin (https://github.com/svalinn/Cubit-plugin/releases/tag/0.1.0) installed in the /bin/plugins folder of the Coreform-Cubit directory. This seems to work as far as the interface between DagMC and Cubit is concerned. Next in Cubit, I run an import acis command to import my .sat file of the reactor fuel from onshape. I am starting just with a single volume of fuel before attempting the entire reactor. Next I go through the openmc-specific steps (found here: Code-Specific steps for OpenMC — DAGMC) and then the pre-processing steps for cubit (found here: Cubit basics — DAGMC). Then I run an export dagmc fuel.sat, which launches a faceting process and then terminates. Now, my question is, where did this file export? Is it overwritten on the .sat file that I fed to the export command? If that's the case, how do I then convert it to an .h5m file? When I try to import this new .sat file, I get an error.

What I've been doing is just a simple save as to the .h5m and giving that to OpenMC, but I'm realizing that the model that I'm looking at in the GUI maybe is not the one that was exported. Let me know your thoughts. 

Any guidance/feedback is appreciated. 

Thanks, 
Luke 

Paul Wilson

unread,
Aug 11, 2021, 9:59:32 AM8/11/21
to dagmc...@googlegroups.com, Luke Cleary

Hi Luke,

If I understand what you've done correctly, I think the only thing I see wrong is that you should export to "fuel.h5m" not "fuel.sat".

Paul

--
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/9fa42444-d685-46f6-8b49-08fae5ce89f8n%40googlegroups.com.
--
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ --
Paul P.H. Wilson (he/him/his)
Grainger Professor of Nuclear Engineering
Chair, Department of Engineering Physics
o: 608-263-0807, c: 608-469-9615
paul....@wisc.edu
153 Engineering Research Bldg
1500 Engineering Dr, Madison, WI 53706
Zoom Meeting Room: https://uwmadison.zoom.us/j/6082630807
Zoom Phone Access: +1-929-205-6099, Access code: 6082630807

Computational Nuclear Engineering Research Group

Luke Cleary

unread,
Aug 11, 2021, 12:28:17 PM8/11/21
to DAGMC Users and Collaborators
Hi Paul, 

If I run the command:


Cubit>export dagmc fuel.h5m


While I have the .sat file open, I get the following error:

ERROR: Could not export the data to a file.

ERROR: dagmc is not a valid type of file to be exported.

Enter 'help export' for the allowable types of file.


I need to run the command below in order to trigger the faceting process:


Cubit>export dagmc fuel.sat

Setting faceting tolerance to 0.001

Setting length tolerance to 0

Setting normal tolerance to 5

...


This is why I was asking how to convert the .sat file to an .h5m file. It seems I can only use the export dagmc command on an existing file (Should that not be the case?), and the existing file I have is a .sat file. So I'm assuming that this export overwrites the existing .sat file. I then use the mbconvert command in dagmc to convert it to h5m. Let me know your thoughts. 

Thanks, 
Luke 

Paul Wilson

unread,
Aug 11, 2021, 1:37:30 PM8/11/21
to dagmc...@googlegroups.com
Hello again

This suggests that the plug-in is not installed correctly.  If it is installed correctly, you should be able to type “help dagmc” and get information on using the DAGMC exporter.

Paul

-- 
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ --

Paul P.H. Wilson (he/him/his)
Grainger Professor of Nuclear Engineering
Chair, Department of Engineering Physics

[sent from my iphone]


On Aug 11, 2021, at 11:28, Luke Cleary <luke....@copenhagenatomics.com> wrote:

Hi Paul, 

Luke Cleary

unread,
Aug 11, 2021, 1:43:48 PM8/11/21
to DAGMC Users and Collaborators
I am able to get the correct output from help dagmc (see below pasted from cubit). It seems that the input <filename> that goes into this needs to be an existing file, which is a .sat file in my case. 

Cubit>help dagmc


Help for words: dagmc.


export dagmc <filename> [faceting_tolerance <faceting tolerance>] [length_tolerance <length tolerance>]

[normal_tolerance <normal tolerance>] [make_watertight] [verbose]

[fatal_on_curves]



Help for words: dagmc.


export dagmc <filename> [faceting_tolerance <faceting tolerance>] [length_tolerance <length tolerance>]

[normal_tolerance <normal tolerance>] [make_watertight] [verbose]

[fatal_on_curves]




Paul Wilson

unread,
Aug 11, 2021, 2:38:24 PM8/11/21
to dagmc...@googlegroups.com
Hello again

I’m sure that it does not need to be an existing file.

I’m wondering if the filename should be in quotation marks? (Perhaps because it’s a new file??)

Paul

-- 
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ --
Paul P.H. Wilson (he/him/his)
Grainger Professor of Nuclear Engineering
Chair, Department of Engineering Physics
Chair, Energy Analysis and Policy Certificate
o: 608-263-0807 c: 608-469-9615
paul....@wisc.edu
153 Engineering Research Bldg
1500 Engineering Dr, Madison, WI 53706

[sent from my iphone]


On Aug 11, 2021, at 12:43, Luke Cleary <luke....@copenhagenatomics.com> wrote:

I am able to get the correct output from help dagmc (see below pasted from cubit). It seems that the input <filename> that goes into this needs to be an existing file, which is a .sat file in my case. 

Luke Cleary

unread,
Aug 12, 2021, 4:46:42 AM8/12/21
to DAGMC Users and Collaborators
That worked! Thanks Paul. I'll try feeding this to OpenMC.
Reply all
Reply to author
Forward
0 new messages