Comments (5)
Hi, thanks I tried the work around and the paramak.export_brep() method. I then used this file in the Brep-to-h5m to create the h5m file as suggested. Here its easier to add tags to the materials (see below) so its easier to check them later.
brep_to_h5m(
brep_filename='test.brep',
material_tags=[
'Blanket',
'divertor',
'tf coil casing',
'vacuum vessel',
],
h5m_filename='dagmc.h5m',
min_mesh_size= 5,
max_mesh_size = 20,
mesh_algorithm = 1,
)
After which you can use the property material_names found in the openmc.DAGMCUniverse class to print the material names in the set in the .h5m file.
dag_univ = openmc.DAGMCUniverse(filename='dagmc.h5m')
vac_surf = openmc.Sphere(r=10000, surface_id=9999, boundary_type="vacuum")
print(dag_univ.material_names)
This allows you to assign the material names easily for the openmc simulation. I thought I would be explicit if somebody was having similar problems until the dagmc to h5m is fixed. Thanks for your help
from paramak.
Sorry about this, tracking the volumes through the workflow is tricky stuff. I have a longer term plan to attach meta data to the brep file so that we can track volumes and won't have to search for them using matching parts. This is a while away from being complete but it my current focus to really fixing this problem instead of just patching it up. I can take a look at preproducing this error and see if there are any easy fixes, thanks for reporting and making it easy to reproduce
from paramak.
Not a problem, I am just mainly trying to gauge which method is best to use in the future. Since I want to start building some more complex reactors that are likely to reuse some of the parts from the EuDemo reactor. I will try with the cad_to_h5m method to see if I can get that working. If not I will use the stl_to_h5m. The problem with the later is that I dont yet understand how to insure my geometry is not overlapping since I havent tried this method yet. Also it seems the most manual approach so I will try this last.
Though in the future it would be better using dagmc_to_h5m since its open source rather than relying on cubit
from paramak.
I think I've found the bug. Not fixed but I know what is going wrong.
For some reason the Brep export in the cad-to-dagmc package is not working for this geometry. Oddly enough the paramak.export_brep() method does work. They are quite similar so I should be able to track it down
So perhaps in the meantime you could export the Brep using the paramak then use Brep-to-h5m to export it as a h5m.
Material assignment will be a bit tricky till I can get the cad-to-dagmc brep export function working for this geometry.
from paramak.
Thanks @Adambar24 and congrats for completing the work around. Posting the example is much appreciated, I'm sure others will find it useful.
by the way I added an automatic bounded_universe method to openmc a while back that you can use to save one line if you are interested.
vac_surf = openmc.Sphere(r=10000, surface_id=9999, boundary_type="vacuum")
dag_univ = openmc.DAGMCUniverse(filename='dagmc.h5m').bounded_universe()
I shall get back to you on this thread when I make progress on fixing the workflow
from paramak.
Related Issues (20)
- update jupyter-cadquery to 3.1.0
- skip tests depending on package import
- example reactor render animation with text HOT 1
- error with DishedVacuumVessel
- more concise tests with pytest.raises
- Installation on conda not working properly HOT 3
- docs are missing plus signs for exspanding
- Supported python version outdated in the documentation. HOT 4
- CircularPort documentation tweaks
- RotateCircularShape documentation issue
- Solid cutting issue with some shapes
- [Feature Request] Ability to have multi layer first walls HOT 1
- Issue with DAGMC export in OpenMC (lost particles) HOT 4
- [Feature request] output of settings.xml neutron source
- Issue with BallReactor DAGMC export HOT 2
- Installation fails on Apple Silicon (ARM64) MacBook Pro HOT 3
- Compatibility Issue Between Paramak and JupyterLab 4 Due to jupyter-client Version
- Rewrite of paramak from the ground up
- Understanding of material's volumes assignments HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paramak.