The Reduced-Order Scattering Emulator (rose) is a user-friendly software for building efficient surrogate models for nuclear scattering.
Project description
ROSE
Reduced-Order Scattering Emulator
ROSE makes it easy to build and train a scattering emulator. For any bug reports or feature requests, please make use of the Github issues tab on the repository. We also welcome all pull requests for software, documentation, and user-contributed tutorials!
The primary class is ReducedBasisEmulator
. To create an instance, minimally, an instance of the Interaction
class, a set of training points, the energy, and angular momentum need to be specified. For example,
import rose
energy = 50 # MeV
ell = 0 # S waves
# The we are varying two parameters of the Minnesota potential, so the training
# space is an array of 2-component arrays
training_points = np.array([
[119.51219512195122, -14.634146341463415],
[139.02439024390245, -4.878048780487805],
[158.53658536585365, -48.78048780487805],
[178.0487804878049, -117.07317073170732],
[197.5609756097561, -131.70731707317074],
[217.0731707317073, -126.82926829268293],
[236.58536585365854, -82.92682926829268],
[256.0975609756098, -175.609756097561],
[275.609756097561, -19.51219512195122],
[295.1219512195122, -170.73170731707316]
])
# The Minnesota potential has already been hard-coded in ROSE as
# rose.MN_Potential.
rbe = rose.ReducedBasisEmulator(
rose.MN_Potential,
training_points,
energy,
ell
)
# Now, to get a the wave function or phase shift at a new point in parameter
# space, we simply call...
theta = np.array([200,-91.85])
phi = rbe.emulate_wave_function(theta)
# or...
delta = rbe.emulate_phase_shift(theta)
For a full set of examples walking through emulation and calibration, check the tutorials directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for nuclear_rose-0.9.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e79c0ee98ce6749a6179a50f4dce17c6e25251af174d54a05cd6a6728ba5a6b1 |
|
MD5 | 370273276b21f765adce3c320bd079a6 |
|
BLAKE2b-256 | f00a891720e16d2de457fa98aa5a684c17ba3fd7fd42244a0c04b35b33884547 |