svalinn / mcnp2cad

Convert MCNP input files to a general CAD format
BSD 2-Clause "Simplified" License
33 stars 31 forks source link

MCNP importer gives wrong material group names #45

Open ljacobson64 opened 5 years ago

ljacobson64 commented 5 years ago

When you run the MCNP importer and produce a .sat file as output, the group names that actually appear in the sat file appear in the old mat_105_rho_-1.52 form instead of the new mat:105/rho:-1.52 form. It seems to be dropping the : and / immediately. Furthermore, I think Trelis might also have a problem with the - character, as when you load a .sat file into Trelis, it gives a warning message like this:

WARNING: 28 invalid names were found during import.

and if you try to list information about a group, this is what it says:

Trelis>list group 3
Group Entity 'mat_105_rho_-1.52', 'mat_105_rho__1.52' (Id = 3)

Has anyone ever run the MCNP importer and successfully run DAGMC with the .sat or .h5m files it created?

pshriwise commented 5 months ago

Reviving this thread. It's a relatively easy change that would significantly improve user experience when importing models into Cubit.

pshriwise commented 5 months ago

I'll try to tackle it soon.

ahnaf-tahmid-chowdhury commented 5 months ago

Just asking, is this module only required when a user has MCNP installed?

gonuke commented 5 months ago

This module is used to import MCNP files and generate a CAD model. It currently requires some implementation of the iGeom interface. A minimal implementation is provided in the Cubit plugin, and that is the main place that this code is currently availble.