-
Notifications
You must be signed in to change notification settings - Fork 18
Entropy stable DG and flux-differencing #214
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
Conversation
thomasgibson
commented
Jan 14, 2022
- Requires the lazy array context provided in: [Lazy evaluation] Pytato Array Context with transformations meshmode#248
- Requires the features of this loopy fork: https://github.com/kaushikcfd/loopy/tree/pytato-array-context-transforms
inducer
left a comment
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.
(Comments from our meeting)
|
|
||
| faces = faces_for_shape(base_grp.shape) | ||
| nfaces = len(faces) | ||
| # NOTE: assumes same quadrature rule on all faces |
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.
Code this as an assert.
inducer
left a comment
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.
More comments from (the second half) of our meeting
grudge/models/euler.py
Outdated
| _reshape((1, -1), qtilde_allquad), | ||
| _reshape((-1, 1), qtilde_allquad), |
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.
Try actx.np.reshape.
grudge/models/euler.py
Outdated
| _reshape((1, -1), qtilde_allquad), | ||
| _reshape((-1, 1), qtilde_allquad), |
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.
140bef0 to
7de0c41
Compare
7de0c41 to
48cfae2
Compare
| mass_flux = rho_mean * u_avg | ||
| momentum_flux = np.outer(mass_flux, u_avg) + np.eye(dim) * p_mean | ||
| energy_flux = ( |
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.
_flux_div here?
| q_mats = [p_mat.T @ (weights * vdm_q.T @ vdm_q) @ diff_mat @ p_mat | ||
| for diff_mat in diff_matrices(vgrp)] | ||
| e_mat = vf_mat @ p_mat | ||
| qtilde_mats = 0.5 * np.asarray( | ||
| [np.block([[q_mats[d] - q_mats[d].T, e_mat.T @ b_mats[d]], | ||
| [-b_mats[d] @ e_mat, b_mats[d]]]) | ||
| for d in range(dcoll.dim)] | ||
| ) |
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.
Not loving that this repeats code from the hybridized op implementation.
9c40c3c to
f9142f4
Compare
927da01 to
09d2027
Compare
09d2027 to
7de9f81
Compare
|
See #306 for an initial attempt at updating this for modern-day grudge. |
This is #214 squashed and rebased. Co-authored-by: Andreas Kloeckner <inform@tiker.net>
This is #214 squashed and rebased. Co-authored-by: Andreas Kloeckner <inform@tiker.net>
|
Closing in favor of #306. |
This is #214 squashed and rebased. Co-authored-by: Andreas Kloeckner <inform@tiker.net>
