-
Notifications
You must be signed in to change notification settings - Fork 2
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 alfven and inchworm #58
base: main
Are you sure you want to change the base?
Conversation
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 work. 👍
@brryan if you're happy with this, let's merge in. |
actually, I don't think this is quite working for snake yet. Janiris and I threw something in there, but I think something is off with the snake transformation of the b field. was hoping one of you guys could spot what we did wrong. |
Ah ok. I'll look more carefully. At a first glance I didn't see anything wrong. |
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.
One question about b^0 otherwise LGTM
src/pgen/linear_modes.cpp
Outdated
for(int d = 0; d < 3; d++){ | ||
Bdotu += v(ib_lo+d, k, j, i) * ucon[d+1]; | ||
} | ||
Real bcon[NDFULL] = {Bdotu, 0.0,0.0,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.
b^0 = B.u/alpha
? Also B.u = Gamma B^i v_i
but this looks like B.u = B^i u^i
?
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.
Good catch. I think this is likely the last thing needed to get this working.
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.
aren't those the same in this case? alpha = 1 and u^i = Gamma v_i since this is Minkowski.
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.
Is this going to eventually be used for snake/inchworm? The alphas are being used when calculating the b^i
just below
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 just the pre-transformation stuff though, isn't it? like no matter what this will always be Minkowski.
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.
Right sorry yeah I see this is pre-transformation. OK this should be fine... hm...
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.
Oops right. So this isn't the bug. I need to sit down with this and go through it with a finer comb.
I think this works now, but we should do a convergence study of snake alfven and something in inchworm to confirm before merging. |
I would like to see convergence of just the entropy mode in snake and inchworm as well |
Big effort to dig into this, glad to see it resolved. |
:)