-
Notifications
You must be signed in to change notification settings - Fork 14
TimeProjector #154
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
base: master
Are you sure you want to change the base?
TimeProjector #154
Conversation
…irksome into rckirby/galerkin_label
…Irksome into rckirby/galerkin_label
rckirby
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.
Mostly good (I think).
- Do we know that the approach being used here doesn't explode the complexity when we use projectors? How would we check?
- Can we get a demo before merging.
| ref_el = L_test.get_reference_element() | ||
| phisub = vecconst(Legendre(ref_el, L_test.degree()).tabulate(0, qpts)[(0,)].T) | ||
|
|
||
| # preprocess time derivatives |
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.
comment is no longer accurate here.
| Q = o.quadrature | ||
| assert order+1 <= len(self.phi) | ||
|
|
||
| # compute the hierarchical mass matrix (always the identity) |
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.
If it's the identity why do we compute it?
|
|
||
| # compute the L2-Riesz representation by undoing the integral against the test coefficient | ||
| fc = sum(it.integrand() for it in Fc.integrals()) | ||
| fproj = expand_derivatives(diff(fc, c)) |
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 seems unclear to me what's actually happening.
…/Irksome into pbrubeck/time-projector
irksome/galerkin_stepper.py
Outdated
| v: vsub[q] * dt, | ||
| u0: usub[q], | ||
| dtu0: dtu0sub[q] / dt} | ||
| u0: u0 + usub[q], |
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.
Here we are solving for an update
9c20cbe to
88700dd
Compare
Enable projection-in-time of expressions (usually the Gateaux derivative of a conserved quantity). This is useful to eliminate auxiliary variables.