Skip to content

7: Visualization and Output #17

Description

@philipnickel

Description

Implement visualization tools for the wave simulation including domain plotting, animations, and diagnostic outputs.

Tasks

  • Implement coordinate transform for plotting
    • Map (x, σ) to (x, z) using z = σ·d - h
  • Plot solution on deformed physical mesh
  • Plot free surface elevation η(x, t)
  • Create animation of wave evolution
  • Implement energy computation (kinetic + potential)
  • Time series output at specified gauge locations

Acceptance Criteria

  • Physical domain plot shows correct surface position
  • Animation runs smoothly for standing wave case
  • Energy plot shows conservation (small drift)
  • Gauge output matches surface elevation at specified x locations

Deliverables

  • plot_domain(Φ, η, h) function
  • plot_surface(η, t) function
  • animate_simulation(η_history) function
  • Standing wave animation (GIF or MP4)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions