Comments (3)
Ah yes this one requires more than a string.
As the density is temperature dependent it needs an openmc material or neutronics material maker object passing in
import neutronics_material_maker as nmm
my_mat = nmm.Material.from_library(name='FLiBe', temperature=600, enrichment=60)
my_mat.openmc_material
Then pass in my_mat
to the correspondence_dict
This also gives the opportunity to enrich the Li6 content
from openmc-dagmc-wrapper.
Ah yes sorry
My workaround was:
import openmc
import openmc_dagmc_wrapper as odw
import neutronics_material_maker as nmm
# could set to dagmc.h5m if the imprinted and merged geometry is preferred
my_h5m_filename = "dagmc_not_merged.h5m"
# this links the material tags in the dagmc h5m file with materials.
# these materials are input as strings so they will be looked up in the
# neutronics material maker package
material_tag_to_material_dict = {
"lead": "Lead",
"flibe": nmm.Material.from_library(name="FLiBe", temperature=650+273.15, pressure=10.1e5, temperature_to_neutronics_code=False),
"inner_tank_wall": "eurofer",
}
materials = odw.Materials(
h5m_filename=my_h5m_filename,
correspondence_dict=material_tag_to_material_dict,
)
I didn't use the .openmc_material attribute though and it worked!
from openmc-dagmc-wrapper.
I guess it works with or without the openmc_material
attribute
from openmc-dagmc-wrapper.
Related Issues (20)
- Change of repo name
- Support for CylindricalMesh HOT 1
- Simplify create_material
- Refactor discussion HOT 8
- CellTally cannot have multiple targets HOT 2
- General tidy up HOT 2
- `__version__` attribute needed
- Can't set water
- Tallies names should not be overwritten by ODW HOT 1
- changing default setting.source
- Check the processing of results with batches = 1 HOT 1
- units for results
- Create a conda build for the package
- bounding box not subscriptable error HOT 1
- more standard tally names
- using model.Model instead of .Model HOT 2
- Plotly missing in dependencies container
- Allowing bounding_box from h5m to be offset HOT 3
- Add angle units to doc string
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 openmc-dagmc-wrapper.