-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Integration of nuclear networks #310
base: develop
Are you sure you want to change the base?
Conversation
Edit: my bad about the formating, I didn't know what the right clang formating was. |
…ss nuclear parameters
main/src/init/nuclear_sedov_init.hpp
Outdated
{ | ||
|
||
template<class Dataset> | ||
class NuclearSedovGrid : public ISimInitializer<Dataset> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to bother with a regular grid init for the SPH part when using nnet. This option is only there to run a minimal example if HDF5 is absent for some reason. This is never useful for more elaborate workload, such as when using nnet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I will remove the grid propagator then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still pending.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I remove the grid propagator I always get an error, do you mean that the glass propagator is not needed ? I don't properly understand the difference between the grid and glass propagators.
@@ -39,6 +39,9 @@ | |||
#include "time_energies.hpp" | |||
#include "gravitational_waves.hpp" | |||
#include "wind_bubble_fraction.hpp" | |||
#ifdef USE_NUCLEAR_NETWORKS | |||
#include "nuclear_observable.hpp" | |||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you want to register the new nuclear_observable in the factor in this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no real nuclear test case so I don't know where to reference nuclear_observable in the factory, but it will be done in the future. I don't think IO is the first thing to do in the integration.
As a general remark, I would not put the If you have a choice, I would not introduce this dependency on Cornerstone into your nnet code. As an example, you can look at the gravity solver Ryoanji. We don't pass ParticlesData, or any Octree class from Cornerstone to Ryoanji. Instead, we pass the coordinate fields, masses and the tree as elementary arrays of floating point or integer types. This allows as to swap it out for something else if we need to, as long as the storage format stays the same. And we enable somebody else to call Ryoanji Another analogy could be BLAS matrix-matrix multiplication (dgemm). Rather than a custom matrix class, the interface accepts floating point arrays in a specific format: column or row major. |
Add temperature equation to nuclear networks
… get the first somewhat working simulation, and added cases without nuclear network to the nuclear propagator
…till need more validation
…so updated 'localConservedQuantities' for Helmholtz EOS
…nto nuclear-network
I've updated this branch to include the latest version in the The main problem is still that all of the nuclear-network code is included via headers into the compilation unit of the SPH-EXA main function. At the level of the propagator, the call to |
…e complexity issues
…erence to nnet_util in SPH-EXA
nuclear-network-temperature-equation
… for net86/87 (not a good solution from a programming point of view)
…dded a CUDA-compiled CPU-running test
Added the Nuclear Network submodule: