Skip to content

samayala22/tinyvlm

Repository files navigation

Windows Linux

Quality Gate Status

TinyVLM

High Performance Potential Flow Solver


Features:

  • VLM
  • NL-VLM
  • UVLM
  • NL-UVLM
  • NLHB-UVLM

Correctors

  • High angle of attack correction
  • Dihedral / Anhedral Wings (local coordinate projection in force calculation)
  • Swept Wings (coordinate rotation)
  • Compressibility Effects (Prandtl Glauert corrector)

Backends

  • ISPC
  • CUDA

Maintainability

  • Clangd
  • Clang-Format
  • Clang-Tidy
  • Testing framework (via xmake test)
  • Compilation CI
  • Documented code (doxygen style)

Build and run

Requirements:

  • Windows (MSVC compiler) or Linux (GCC or Clang)
  • xmake build system
    • For Windows, the installer is recommended
    • For Linux, run curl -fsSL https://xmake.io/shget.text | bash

Then build and run the default config:

xmake -y -v && xmake run

The solver should run and output the aerodynamic coefficients along with some time metrics:

reading plot3d mesh
number of panels: 4096
ns: 64
nc: 64
LHS: 12.106 ms
RHS: 4 us
Solve: 341.976 ms
Compute forces: 104 us
>>> Alpha: 5.0 | CL = 0.464887 CD = 0.005636 CMx = 1.157476 CMy = -0.017555 CMz = 0.101128
SOLVER RUN: 358.235 ms