[go: nahoru, domu]

Skip to content

CUDA implementation of Weakly-Compressible Smoothed Particle Hydrodynamics for Elasto Plastic and thermal coupled Mechanics

License

Notifications You must be signed in to change notification settings

luchete80/WeldFormGPU

Repository files navigation

WeldFormGPU is the GPU version of WeldForm This is being migrated to be the CPU / GPU solver.

Features

Has been exclusively adapted to solid mechaincs, and it includes:

  • Mechanic Solver
  • Thermal Solver
  • Coupled ThermoMechanical Solver (in progress)
  • Contact formulation (in progress)
  • Adaptive search only in case of plastic strain threshold (in progress)

alt text

Is hevaily based on Kirk Fraser Thesis and works on SPH model of FSW

Requirements

GPU Version

  1. Solver executables. Check which version corresponds to your GPU [here].
  2. Visual Studio Runtime Libraries [here] (https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170)
  3. CUDA runtime libraries.

Building Instructions

  1. Install Visual Studio Community 2019 (Not tested on 2022 yet)
  2. Install cmake
  3. Download and install CUDA compilers (tested only on 11.4 version)
  4. Set CUDA compiler path on CMD: set CUDA_PATH="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1"
  5. Create a direcory for building libraries binaries
  6. Run make.bat (located here on root directory), to set MSVC env vars
  7. Clone this repo (for example to c:\WeldFormGPU\src)
  8. Inside binaries library run: cmake c:\WeldFormGPU\src -G "NMake Makefiles"
  9. Inside binaries library run: nmake.exe

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1