-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3d anisotropic eb #3907
3d anisotropic eb #3907
Conversation
I'm thinking it might be less confusing to just set axm (not axmt) to apx(i,j,k) so we don't have to redefine all of those at line 113 ... then just swap axm and axmt in lines 54-112. |
Real dapx = (axm - axp)*(dx[1]*dx[2]); | ||
Real dapy = (aym - ayp)*(dx[0]*dx[2]); | ||
Real dapz = (azm - azp)*(dx[0]*dx[1]); | ||
const Real apnorm = std::sqrt(dapx*dapx+dapy*dapy+dapz*dapz) + 1.e-30_rt*std::sqrt(dx[0]*dx[1]*dx[2]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second term has a different units than the first. The first term is L^2, whereas the second is L^(3/2).
@@ -121,7 +124,7 @@ void set_eb_data (const int i, const int j, const int k, | |||
return; | |||
} | |||
|
|||
Real bainv = 1.0_rt/barea(i,j,k); | |||
Real bainv = bareascaling*bareascaling/apnorm; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only place bareascaling is used. barescaling is computed with std::sqrt(..). So maybe sqrt is unnecessary.
Summary
Additional background
Creating draft PR to run tests
Checklist
The proposed changes: