Available Versions:
version 2.4.0 / version 2.3.4
CaNS (Canonical Navier-Stokes) is a high-performance simulator for massively-parallel numerical simulations of fluid flows. It is specifically designed to solve problems involving incompressible, Newtonian fluids, making it a popular choice for researchers and engineers in fluid dynamics. CaNS is widely used in simulations of turbulence, vortex dynamics, and large-scale atmospheric or oceanic flows.
CaNS is currently running version 2.3.4 for CPU, built with OpenMPI 4.1.2 and FFTW 3.3.8 for parallel processing and efficient Fourier transforms. A GPU version is planned for a future release to enhance performance.
Here’s a quick example code to get you started. In this example, we run a CaNS simulation on a c2-standard-4 machine using Inductiva API. Ensure your input files include a ‘data’ folder for storing simulation outputs! To try it out, simply paste the code into your Python environment.
For more details on the simulator’s features and configurations, visit the official CaNS site.
"""CaNS example"""
import inductiva
# Allocate Google cloud machine
cloud_machine = inductiva.resources.MachineGroup( \
provider="GCP",
machine_type="c3d-standard-180")
# Initialize the Simulator
cans = inductiva.simulators.CaNS()
# Run simulation with config files in the input directory
task = cans.run( \
input_dir="path/to/my/cans/files",
sim_config_filename="my_config_file.nml",
on=cloud_machine)
# Wait for the simulation to finish and download the results
task.wait()
cloud_machine.terminate()
task.download_outputs()
We’ve got 20 simulators ready for you to explore.
Just one click away from running your favorite open-source simulators on the cloud and at scale!
Why not give it a try? Explore our example codes and discover everything our API can offer.
AMR-Wind
CaNS
CP2K
DualSPHysics
FVCOM
FDS
GROMACS
GX
NWChem
OpenFAST
OpenFOAM (ESI)
OpenFOAM (Foundation)
Quantum ESPRESSO
Reef3D
SCHISM
SNL-SWAN
SPlisHSPlasH
SWAN
SWASH
XBeach