-
Notifications
You must be signed in to change notification settings - Fork 200
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
Fixing bug in hyper-resistivity calculation which had missing terms i… #5638
Fixing bug in hyper-resistivity calculation which had missing terms i… #5638
Conversation
…n vector laplacian evaluation. Additioanally fixing a staggering bug for density calculation in RZ. Signed-off-by: S. Eric Clark <[email protected]>
Signed-off-by: S. Eric Clark <[email protected]>
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.
Hmm, the hyper-resistivity term is a vector Laplacian, no? I agree there are bugs here, but it looks like you changed it to a sort-of hybrid scalar / vector Laplacian. Or am I missing something?
For RZ the individual components should be as follows:
But the Cartesian implementation was already correct.
Update: Nevermind. I see this is in fact all wrong. Thanks for catching!
@@ -633,13 +635,14 @@ void FiniteDifferenceSolver::HybridPICSolveECylindrical ( | |||
} | |||
|
|||
// Interpolate to get the appropriate charge density in space | |||
Real rho_val = Interp(rho, nodal, Er_stag, coarsen, i, j, 0, 0); | |||
Real rho_val = Interp(rho, nodal, Et_stag, coarsen, i, j, 0, 0); |
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.
Nice catch!
The fixes look good! Just the one comment above about the |
…k dependencies on flags for standard resistivity. Signed-off-by: S. Eric Clark <[email protected]>
Co-authored-by: Roelof Groenewald <[email protected]>
Signed-off-by: S. Eric Clark <[email protected]>
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.
Thanks so much for fixing!
Signed-off-by: S. Eric Clark <[email protected]>
Head branch was pushed to by a user without write access
Signed-off-by: S. Eric Clark <[email protected]>
…n vector laplacian evaluation. Additioanally fixing a staggering bug for density calculation in RZ.