Loading proper velocity from gas flow simulation into the simulation.
This commit is contained in:
@@ -9,19 +9,21 @@
|
||||
#ifndef tritium2_population_h
|
||||
#define tritium2_population_h
|
||||
|
||||
#include "velocity_container.hpp"
|
||||
|
||||
|
||||
class T2_Population : public Population_Base, public RNG_Base {
|
||||
static const double wgtsT2MaxDensity_m3;
|
||||
static const double wgtsTemp_K;
|
||||
static const double wgtsT2FlowSpeed_ms;
|
||||
|
||||
Velocity_Container v_data;
|
||||
int n_regimes;
|
||||
double *reduction_min;
|
||||
double *z_min_m;
|
||||
double *slopes;
|
||||
|
||||
public:
|
||||
T2_Population(UniRNG *rngUni, NormalRNG *rngNormal) : Population_Base(tritium2), RNG_Base(rngUni, rngNormal){
|
||||
T2_Population(UniRNG *rngUni, NormalRNG *rngNormal) : Population_Base(tritium2), RNG_Base(rngUni, rngNormal) , v_data(get_data_path() + "velocity.dat") {
|
||||
set_regimes();
|
||||
};
|
||||
~T2_Population() {
|
||||
@@ -136,14 +138,15 @@ inline bin_count4 T2_Population::get_bin_count4() {
|
||||
}
|
||||
|
||||
inline vec3 T2_Population::get_average_v_ms(const vec3 &loc_m) {
|
||||
if (in_WGTS(loc_m)) {
|
||||
return v_data.get_v_ms(loc_m);
|
||||
/*if (in_WGTS(loc_m)) {
|
||||
double z_wgtsHalf_m = z_WGTS_start_m + (z_WGTS_end_m - z_WGTS_start_m)/2;
|
||||
double sign = (loc_m[2] < z_wgtsHalf_m) ? -1 : 1;
|
||||
double zSpeed_ms = sign*wgtsT2FlowSpeed_ms;
|
||||
return vec3(0,0,zSpeed_ms);
|
||||
} else {
|
||||
return vec3(0,0,0);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
inline vec3 T2_Population::roll_thermSpeed_ms(const vec3 &loc_m) {
|
||||
|
||||
Reference in New Issue
Block a user