GridFire 0.0.1a
General Purpose Nuclear Network
Loading...
Searching...
No Matches
screening_types.cpp
Go to the documentation of this file.
5
6#include <memory>
7
8namespace gridfire::screening {
9 std::unique_ptr<ScreeningModel> selectScreeningModel(const ScreeningType type) {
10 switch (type) {
12 return std::make_unique<WeakScreeningModel>();
14 return std::make_unique<BareScreeningModel>();
15 default:
16 return std::make_unique<BareScreeningModel>();
17 }
18 }
19}
std::unique_ptr< ScreeningModel > selectScreeningModel(ScreeningType type)
A factory function to select and create a screening model.
ScreeningType
Enumerates the available plasma screening models.
@ WEAK
Weak screening model (Salpeter, 1954).
@ BARE
No screening applied. The screening factor is always 1.0.