Repository for the Basilisk C course at Universidad Carlos III de Madrid (March 10-13, 2025).
This intensive course provides a comprehensive introduction to high-fidelity simulations using Basilisk C, a powerful computational framework for fluid dynamics. Participants will learn to implement and solve complex fluid mechanics problems with an emphasis on multiphase flows, interface dynamics, and non-Newtonian rheology.
- 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
- Dates: March 10-13, 2025
- Location: Universidad Carlos III de Madrid, Spain
- Duration: 4 days, full-time
- 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
For complete course schedule and registration information, visit: Course Website
├-- basilisk/src/: Core Basilisk CFD library (reference only)
├── postProcess/: Project-specific post-processing tools
├── src-local/: Custom header files extending Basilisk functionality
├── testCases/: Test cases with their own Makefile
Basilisk requires a C99-compliant compiler and GNU make. Installation can be done in two ways:
sudo apt install darcs make gawk
darcs clone http://basilisk.fr/basilisk
cd basilisk/src
# For Linux/Ubuntu users (preferred mode of operation)
ln -s config.gcc config
# For Mac users
# ln -s config.osx config
make
wget http://basilisk.fr/basilisk/basilisk.tar.gz
tar xzf basilisk.tar.gz
cd basilisk/src
# For Linux/Ubuntu users (preferred mode of operation)
ln -s config.gcc config
# For Mac users
# ln -s config.osx config
make
echo "export BASILISK=$PWD" >> ~/.bashrc
echo 'export PATH=$PATH:$BASILISK' >> ~/.bashrc
Or for zsh users:
echo "export BASILISK=$PWD" >> ~/.zshrc
echo 'export PATH=$PATH:$BASILISK' >> ~/.zshrc
For project-specific installations, you can use the provided reset_install_requirements.sh
script which:
- Installs Basilisk within your project directory
- Sets up environment variables locally (in
.project_config
) - Automatically detects your OS (MacOS or Linux) and uses appropriate configuration
- Verifies the installation
# Run the script to install or use existing installation
./reset_install_requirements.sh
# For a fresh installation (removes existing one if present)
./reset_install_requirements.sh --hard
# Load the environment settings for your current shell session
source .project_config
The script will create a .project_config
file in your project root with the necessary environment variables. This approach avoids modifying your global shell configuration and keeps the Basilisk installation contained within your project.
Testing on WSL is currently incomplete. In principle, the Linux installation instructions should work for WSL environments. If you encounter any issues while installing or running Basilisk on WSL, please report them by opening a bug report.
For more detailed installation instructions, including configuration for different systems, setting up environment variables, installing additional dependencies, and optional libraries, please refer to the official installation guide at http://basilisk.fr/src/INSTALL.
To use the make file do:
CFLAGS=-DDISPLAY=-1 make NAME-of-File.tst
We use GitHub Issues to track bugs, feature requests, and example requests for this course. When creating an issue, please select the appropriate template to help us address your needs efficiently.
- For problems with installation, compilation, or running code. Please include:
- Detailed description of the issue
- Your environment (OS, compiler version)
- Steps to reproduce
- Expected vs. actual behavior
- Error messages and logs
- Code snippets or files that demonstrate the issue
- For requesting specific topics or functionality
- Coverage of specific topics in the course
- New examples or tutorials
- Additional functionality in the codebase
- Improvements to existing materials
- For requesting specific examples that demonstrate:
- Particular Basilisk features
- Solutions to common problems
- Implementation of specific physics or numerical methods
- For any other questions
- Go to the "Issues" tab in the GitHub repository
- Click the "New Issue" button
- Select the appropriate template from the options
- Fill in the required information according to the template
- Add relevant labels if available
- Submit the issue