Skip to content

Conversation

@pbrubeck
Copy link
Collaborator

@pbrubeck pbrubeck commented May 28, 2025

Enable projection-in-time of expressions (usually the Gateaux derivative of a conserved quantity). This is useful to eliminate auxiliary variables.

Copy link
Collaborator

@rckirby rckirby left a 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
Copy link
Collaborator

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)
Copy link
Collaborator

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))
Copy link
Collaborator

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.

v: vsub[q] * dt,
u0: usub[q],
dtu0: dtu0sub[q] / dt}
u0: u0 + usub[q],
Copy link
Collaborator Author

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

@pbrubeck pbrubeck force-pushed the rckirby/galerkin_label branch from 9c20cbe to 88700dd Compare October 22, 2025 11:18
Base automatically changed from rckirby/galerkin_label to master October 24, 2025 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants