volume determination #370
Replies: 1 comment
-
Oh yes as all the paramak returns are cadquery assembly objects you can get the volume for each assembly part paramak_object is a cadquery.Assembly() for (part, name, location, _) in paramak_object:
print(name, part.Volume()) So there is no need to add code for figuring out the volume into paramak package as we just make use of the standard cadquery attributes In addition to this way of getting the volume you are using this in openmc so I guess you are meshing with cad-to-dagmc or some other method to make a DAGMC h5m file. Then you might be interested in getting the volume of the cells in the mesh as this is the volume openmc uses and it is slightly different to the CAD volume due to meshing. For that you can use the pydagmc package, here is an example note that in my example I have assumed the pydagmc package merges this PR and changes the package name from dagmc to pydagmc. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am wondering, is there any way to readily determine the volume of the shapes of a solid from Paramak? As I need volumes for depletion analysis by OpenMC. I looked up older Paramak versions and found it can provide volumes but don't know about the newest version. If not, can you tell me the best way of determining volumes of arbitrary shapes like the shapes used in fusion reactors?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions