About smagorinsky_sfs_term #848
Closed
bronise777
started this conversation in
General
Replies: 1 comment 2 replies
-
I think you have indeed identified another bug. Thank you for taking the time to go through this code so carefully and raising issues when you encounter them. It is much appreciated. As you can tell, the dynamic Smagorinsky LES has not received much attention since it was implemented more than 5 years ago. I hope this is the last of them. PR created for this issue in #849 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the pc_smagorinsky_sfs_term function, sigma is solved in different directions.
const amrex::Real sigmadx = Cs2 * alphaij[0] - third * CI * alpha * static_castamrex::Real(dir == 0);
const amrex::Real sigmady = Cs2 * alphaij[1] - third * CI * alpha * static_castamrex::Real(dir == 1);
const amrex::Real sigmadz = Cs2 * alphaij[2] - third * CI * alpha * static_castamrex::Real(dir == 2);
But in the pc_dynamic_smagorinsky_sfs_term function, sigma is a little different, why subtract CI*alpha/ 3 only in the x direction?
const amrex::Real sigmadx = coeff(iv, comp_Cs2) * alphaij(iv, 0) - coeff(iv, comp_CI) * alpha(iv) / 3.0;
const amrex::Real sigmady = coeff(iv, comp_Cs2) * alphaij(iv, 1);
const amrex::Real sigmadz = coeff(iv, comp_Cs2) * alphaij(iv, 2);
Beta Was this translation helpful? Give feedback.
All reactions