Menu

CoMPhy Lab · Course

High-Fidelity Simulations Using Basilisk C

Four-day Basilisk C course on conservation laws, interface tracking, and non-Newtonian flow exercises.

High-Fidelity Simulations Using Basilisk C High-Fidelity Simulations Using Basilisk C

Dates

March 10-13, 2025

Location

Universidad Carlos III de Madrid, Spain

Duration

4 days, full-time

What will you learn?

  • Think before you compute! Understanding the physics before implementation
  • Writing the first code in Basilisk C Getting comfortable with the framework
  • Solving conservation equations Numerical approaches to fluid dynamics
  • Interface tracking methods Capturing multiphase phenomena accurately
  • Non-Newtonian flows Modeling complex rheological behaviors

Course Description

This four-day course teaches Basilisk C through the equations and numerics used in multiphase-flow DNS: conservation laws, transport, interface tracking, and non-Newtonian rheology.

Lectures stay close to implementation. Participants write and modify working Basilisk cases during the course, then use those cases as templates for their own simulations.

Course Schedule

Monday: Foundations

Think before you compute

  • 10:00-11:30     Lecture (1a)
    • Conservation laws and the numerical solution of the Navier–Stokes equations
  • 11:45-13:00     Lecture (1b)
    • Transport equations
    • Brief intro to Basilisk coding framework

First coding steps

  • 15:00-18:00     Hybrid Session
    • Implementing basic transport equations in Basilisk C.
    • Using headers in Basilisk, modular code structure, problem setup, and compilation
    • Whiteboard + coding
    • 1st Working Assignment

Tuesday: Advanced Implementation

Coding like a pro

  • 10:00-11:15     Hackathon (1c)
  • 11:30-13:00     Hackathon Continued
    • Expanding on the morning tasks and code debugging

Wednesday: Interface Dynamics

Interface tracking methods

  • 10:00-11:30     Lecture (2a)
    • Interface tracking methods (VoF, level set, phase-field approaches) and numerical strategies
  • 11:45-13:00     Hackathon (2b)

Seminar

Non-Newtonian flows

  • 15:00-16:00     Lecture (3a)
    • Non-Newtonian flows: viscoelasticity.
  • 16:15-18:00     Hackathon (3b)

Thursday: Special Topics

Special topics

  • 10:00-11:30     Lecture (4a)
  • 11:45-13:00     Hackathon (4b)
    • Special Topics: Holey Sheets, Contact line dynamics.
  • 15:00-16:30     Lecture (4c)
    • Open discussion, deeper dives into advanced features, final code reviews, and next steps.

Prerequisites

  • Basic knowledge of fluid mechanics
  • Experience with programming (any language, C preferred)
  • Understanding of partial differential equations
  • Laptop with ability to compile C code

Registration

For registration details, please contact

Course GitHub Repository