/ArtraCFD

ArtraCFD: A Computational Fluid Dynamics Solver

Primary LanguageC

ArtraCFD

A Computational Fluid Dynamics Solver

by

Huangrui Mo (Google Scholar) (ORCID)

Demo cases

Case 1: Re=100 flow over a cylinder (click to play animation)

Vortex Shedding

Case 2: Ma=2.81 Shock diffracting over a cylinder (click to play animation)

Shock Diffraction

Case 3: Galilean transformation between a supersonic moving wedge and a supersonic incoming flow (click to play animation)

Galilean Transformation

Case 4: Ma=5 flow over a complex body (click to play animation)

Hypersonic Flow

Case 5: Direct simulation of explosively dispersed particles (click to play animation)

Vortex Shedding

Solver configuration

Fluid-solid interaction:

  • Operator splitting

Fluid dynamics:

  • Governing equations: 3D Navier-Stokes equations (Cartesian, compressible, conservative)
  • Temporal discretization: RK2 and RK3
  • Spatial discretization: WENO3 and WENO5 (convective fluxes) + 2nd order central scheme (diffusive fluxes)
  • Boudary treatment: immersed boundary method

Solid dynamics:

  • Governing equations: Newton's second law (translation), Euler equations (rotation), multi-body contact and collision
  • Temporal integration: RK2
  • Interface description: triangulated facets with front tracking

How to compile

  1. Download the code
  2. Enter the code directory
  3. Compile to generate the C executable:
make

How to run the program

  1. Run the program:
./artracfd
  1. Check help guide:
help
  1. Check program manual:
manual
  1. Generate a sample test case:
init
  1. Solve the smaple case:
solve

For algorithms and more test cases, please check the Reference below.

Reference: