Update use_api_cupydo authored by Adrien Crovato's avatar Adrien Crovato
## CUPyDO API ## CUPyDO API
[CUPyDO](https://github.com/ulgltas/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](use_api_core) to initialize DART (using the same dictionary of parameters). Its implementation and documentation, as well as various examples, can be found in CUPyDO's repository. [CUPyDO](https://github.com/ulgltas/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](use_api_core) to initialize DART (using the same dictionary of parameters). Its implementation and documentation, as well as 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,
```python
import cupydo.interfaces.Cupydo as cupy
cupydo = cupy.CUPyDO(cfg)
cupydo.run()
```
where cfg is a dictionary of parameters which must at least contain:
```python
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](use_api_core)). 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.
\ No newline at end of file