mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
Default Source in Settings implement time
This commit is contained in:
parent
23f8cfb4f0
commit
66ffe3a6b8
1 changed files with 4 additions and 1 deletions
|
|
@ -459,9 +459,12 @@ void read_settings_xml()
|
|||
// If no source specified, default to isotropic point source at origin with
|
||||
// Watt spectrum
|
||||
if (model::external_sources.empty()) {
|
||||
double T[] {0.0};
|
||||
double p[] {1.0};
|
||||
model::external_sources.push_back(make_unique<IndependentSource>(
|
||||
UPtrSpace {new SpatialPoint({0.0, 0.0, 0.0})},
|
||||
UPtrAngle {new Isotropic()}, UPtrDist {new Watt(0.988e6, 2.249e-6)}));
|
||||
UPtrAngle {new Isotropic()}, UPtrDist {new Watt(0.988e6, 2.249e-6)},
|
||||
UPtrDist {new Discrete(T, p, 1)}));
|
||||
}
|
||||
|
||||
// Check if we want to write out source
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue