Closed shimwell closed 5 months ago
Hello Jonathan, from the doc: So either you express it with a natural zaid notation (1000) if you want elements, or specific zaids (1001). Do not touch the elements attribute and use mcnp naming convention for materials (like M1).
I did try expressing it with just the zaid originally but it appears to need the elements and name as well
>>> from f4enix.input.materials import Material
>>> f4enix_material = Material(zaids=[(3007, -0.1), (3006, -0.9)])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Material.__init__() missing 2 required positional arguments: 'elem' and 'name'
Thanks for taking a look
Yeah creating a material from the init is not straightforward due to historical reason. There are a bunch of class constructor method though if you check the doc I am using the Material.from_zaids()
method and not the init
Describe the bug Trying to make a F4enix material like this
results in this error message
To Reproduce run the above code, hopefully I've understood the material class correctly
Expected behavior I was expecting to met a material object returned
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):