Cleaned up Populations class.
Renamed some functions, so no dummy parameters need to be used.
This commit is contained in:
@@ -25,27 +25,16 @@ public:
|
||||
this->kinematics = kinematics;
|
||||
}
|
||||
|
||||
void increase_density (const Particle &upPart, const vec3 &oldLoc_m) {
|
||||
container.increase_cum_time_s(oldLoc_m, upPart.get_x_m(), calc_vec3_abs(upPart.get_v_ms()), upPart.get_E_eV());
|
||||
}
|
||||
void decrease_denisty (const vec3 &loc_m, const double &E_eV) {
|
||||
container.increase_offset(loc_m, E_eV);
|
||||
}
|
||||
void increase_density (const Particle &upPart, const vec3 &oldLoc_m) {container.increase_cum_time_s(oldLoc_m, upPart.get_x_m(), calc_vec3_abs(upPart.get_v_ms()), upPart.get_E_eV());}
|
||||
void decrease_denisty (const vec3 &loc_m, const double &E_eV) {container.increase_offset(loc_m, E_eV);}
|
||||
|
||||
double get_density_m3(const vec3 &loc_m) {return container.get_density_m3(loc_m, 0, timer->get_time_s());}
|
||||
|
||||
double get_density_m3(const int &E_bin, const Bins &loc_bins) {throw MyException("Should not be called.\n.");}
|
||||
int get_number_E_bins() {return 1;}
|
||||
Bins get_loc_bin(const vec3 & loc_m) {throw MyException("Should not be called.\n.");}
|
||||
double get_E_bin_mid_eV(const int &E_bin) {throw MyException("Should not be called.\n.");}
|
||||
|
||||
double get_density_m3(const vec3 &loc_m) {
|
||||
return container.get_density_m3(loc_m, 0, timer->get_time_s());
|
||||
}
|
||||
Content get_density_m3(const int &E_bin, const Bins &loc_bins) {
|
||||
std::stringstream ss;
|
||||
ss<<"Thermal_Population::get_density_m3: method for non thermal populations.\n";
|
||||
throw MyException(ss.str());
|
||||
//return container.get_density_m3(E_bin, loc_bins, timer->get_time_s());
|
||||
}
|
||||
Sum_bounds get_sumation_bounds(const vec3 &loc_m) {
|
||||
Sum_bounds res;
|
||||
res.num_E_bins = 1;
|
||||
return res;
|
||||
}
|
||||
|
||||
vec3 roll_x_ms() {throw MyException ("Not yet implemented as not needed at this point.");}
|
||||
vec3 roll_v_ms (const vec3 &loc_m) {return kinematics->get_v_ms(loc_m);}
|
||||
|
||||
Reference in New Issue
Block a user