CUPyDO API
CUPyDO is a set of python tools designed to perform fluid-structure interaction computations. The API allows to interface DART with other software through CUPyDO and uses the Core API to initialize DART (using the same dictionary of parameters). Its implementation can be found under api/cupydo and various examples can be found in CUPyDO's repository.
Run CUPyDO
Three files are needed to run DART through CUPyDO: case_fsi.py
, case_fluid.py
, case_solid
. The first file contains a small set of instructions to initialize CUPyDO,
import cupydo.interfaces.Cupydo as cupy
cupydo = cupy.CUPyDO(cfg)
cupydo.run()
where cfg is a dictionary of parameters which must at least contain:
cfg = {
'fluidSolver': 'DART',
'cfdFile': 'case_fluid',
'csdFile': 'case_solid',
...}
The second file (case_fluid.py
) contains the dictionary of parameters to initialize DART (see Core API). The third file case_solid
contains the parameters needed to configure the structural solver. While the first two files are always written in python, the format of the last file depends on the structural solver.