Update preCICE MBDyn adapter authored by Claudio Giovanni Caccia;Claudio Giovanni Caccia's avatar Claudio Giovanni Caccia;Claudio Giovanni Caccia
...@@ -146,23 +146,36 @@ At this point _MBDyn_ is ready to perform a simulation. ...@@ -146,23 +146,36 @@ At this point _MBDyn_ is ready to perform a simulation.
## Run a simulation ## Run a simulation
All the simulations are composed by a _root_ directory, which contains: In general, the _root_ directory of a simulation contains:
- a directory _Fluid_ containing the CFD case - a directory _Fluid_ containing the CFD case
- a directory _MBDyn_ containing the MBDyn case - a directory _MBDyn_ containing the MBDyn case
- the preCICE configuration file (`precice-config.xml`) - the preCICE configuration file (`precice-config.xml`)
- a _MDByn adapter_ configuration file (`config.json`) - a _MDByn adapter_ configuration file (`config.json`)
- some scripts to run, monitor and clean the simulatio - some scripts to run, monitor and clean the simulation
### _JSON_ configuration file ### _JSON_ configuration file
json file The adapter requires a json file for configuration purposes. The structural part of the simulation starts by typing:
```
mbdyn-esm-adapter -f config.json
```
The configuration files must ocntain the following informations:
```json ```json
{ {
"title": "About Front Matter" ```
"example": { 1) information regarding the
"language": "json"
} ```json
"readDataName": "Displacements0",
"writeDataName" : "Forces0",
"participantName" : "Solid",
"meshName": "Solid-Mesh",
```json
} }
``` ```
... ...
......