Skip to content

Commit

Permalink
Update JonswapSpectrum.cpp
Browse files Browse the repository at this point in the history
Should be frequency squared in the numerator of the gamma power
  • Loading branch information
mhscott authored Nov 16, 2024
1 parent 1474bc4 commit f979699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SRC/reliability/domain/spectrum/JonswapSpectrum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ JonswapSpectrum::getAmplitude(double frequency)
sigma = 0.09;
}

double power = exp(-(frequency-wp)/(2.0*sigma*sigma*wp*wp));
double power = exp(-(frequency-wp)*(frequency-wp)/(2.0*sigma*sigma*wp*wp));
double GAMMA = pow(gamma,power);

return GAMMA*alpha*pow(frequency,-5.0)*exp(-5.0/4.0*pow((frequency/wp),-4.0));
Expand Down

0 comments on commit f979699

Please sign in to comment.