Skip to content

Commit 844d1b9

Browse files
authored
Update w3d_sim.cpp
1 parent d6eae66 commit 844d1b9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

bbn_wave_freq_m5atomS3/data-sim/w3d_sim.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,9 @@ const std::vector<WaveParameters> waveParamsList = {
7979
{11.4f, 8.5f, static_cast<float>(M_PI/2.5), 25.0f}
8080
};
8181

82-
constexpr float kf = 0.729f;
83-
84-
float R_S_law(float Tp, float coeff = kf) {
85-
return kf * std::pow(Tp, 1.0 / 3.0);
82+
// R_S law
83+
inline float R_S_law(float Tp, float R_S_base = 1.526539f, float T_p_base=8.5f) {
84+
return R_S_base * std::pow(Tp/T_p_base, 1.0 / 3.0);
8685
}
8786

8887
const std::map<WaveType, std::vector<TuningIMU>> tuning_map = {
@@ -93,7 +92,7 @@ const std::map<WaveType, std::vector<TuningIMU>> tuning_map = {
9392
{ 1.809019, 1.355438, R_S_law(11.4) } // Wave 3 (Tp=11.4)
9493
}},
9594
{ WaveType::PMSTOKES, {
96-
// { tau_eff, sigma_a_eff, R_S_eff } // R_S_eff = <numerator> / kf
95+
// { tau_eff, sigma_a_eff, R_S_eff } // R_S_eff = <numerator>
9796
{ 0.316639, 0.563192, R_S_law(3.0) }, // Tp=3.0, Hs=0.27
9897
{ 0.599911, 1.177536, R_S_law(5.7) }, // Tp=5.7, Hs=1.5
9998
{ 0.900931, 1.607994, R_S_law(8.5) }, // Tp=8.5, Hs=4.0

0 commit comments

Comments
 (0)