Skip to content
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

Weak constraint 4DVar for 1D Burgers equation #2

Merged
merged 34 commits into from
Jan 7, 2025

Conversation

JHopeCollins
Copy link
Member

@JHopeCollins JHopeCollins commented Aug 20, 2024

Requires firedrakeproject/firedrake#3870

  1. Linear scalar advection examples using "observations" generated from analytical solutions with perturbed initial conditions.
    Shows setting up strong and weak constraint systems using both pyadjoint and firedrake, assuming you already have the observations to hand.
  • Forward model example.
  • Strong constraint using a pyadjoint.ReducedFunctional.
  • Strong constraint using a firedrake.FourDVarReducedFunctional.
  • Weak constraint using a pyadjoint.ReducedFunctional.
  • Weak constraint using a firedrake.FourDVarReducedFunctional.
  1. Burgers equation examples using observations generated from a known "ground truth" initial condition.
    Shows setting up the 4DVar systems using both pyadjoint and firedrake, including generating your own ground truth observations from known data.
  • Strong constraint using a pyadjoint.ReducedFunctional.
  • Weak constraint using a pyadjoint.ReducedFunctional.
  • Weak constraint demo using firedrake.FourDVarReducedFunctional - only builds and minimises the system, meant to be a fairly static demo showing current use.
  • Weak constraint script using firedrake.FourDVarReducedFunctional - also does some other things like optionally running taylor tests, doing a single RF evaluation. Mostly used for development and debugging.

@JHopeCollins JHopeCollins self-assigned this Aug 20, 2024
burgers/wc4dvar.py Outdated Show resolved Hide resolved
burgers/wc4dvar.py Outdated Show resolved Hide resolved
@JHopeCollins JHopeCollins marked this pull request as ready for review October 1, 2024 10:23
@JHopeCollins JHopeCollins requested a review from dham October 1, 2024 10:23
@JHopeCollins JHopeCollins marked this pull request as draft November 18, 2024 18:40
@JHopeCollins JHopeCollins changed the base branch from JHopeCollins/burgers_script to main January 2, 2025 16:10
@JHopeCollins JHopeCollins marked this pull request as ready for review January 2, 2025 16:12
@JHopeCollins JHopeCollins merged commit be542e4 into main Jan 7, 2025
@JHopeCollins JHopeCollins deleted the JHopeCollins/burgers_wc4dvar branch January 7, 2025 14:33
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.

1 participant