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 can be found under [api/cupydo](https://gitlab.uliege.be/am-dept/dartflo/blob/master/dart/api/cupydo.py) and various examples can be found in CUPyDO's repository. :warning: _**DART v1.3.0 compatible with CUPyDO v1.9.**_
[CUPyDO](https://gitlab.uliege.be/am-dept/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 can be found under [api/cupydo](https://gitlab.uliege.be/am-dept/dartflo/blob/master/dart/api/cupydo.py) 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, ### Run CUPyDO
```python 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 ```python
cupydo = cupy.CUPyDO(cfg) import cupydo.interfaces.Cupydo as cupy
cupydo.run() cupydo = cupy.CUPyDO(cfg)
``` cupydo.run()
where cfg is a dictionary of parameters which must at least contain: ```
```python where cfg is a dictionary of parameters which must at least contain:
cfg = { ```python
'fluidSolver': 'DART', cfg = {
'cfdFile': 'case_fluid', 'fluidSolver': 'DART',
'csdFile': 'case_solid', '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. 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