|
|
|
## Writing custom scripts
|
|
|
|
Users can customize their use of DART by writing their own scripts. Each script follows a similar pattern, which is detailed in the following pages:
|
|
|
|
0. [Importing the modules](use_custom_import)
|
|
|
|
1. [Creating the mesh](use_custom_mesh)
|
|
|
|
2. [Defining the problem](use_custom_prob)
|
|
|
|
3. [Solving the flow](use_custom_solver)
|
|
|
|
4. [Post-processing the results](use_custom_post)
|
|
|
|
1. [Importing the modules](use_custom_import)
|
|
|
|
2. [Creating the mesh](use_custom_mesh)
|
|
|
|
3. [Defining the problem](use_custom_prob)
|
|
|
|
4. [Solving the flow](use_custom_solver)
|
|
|
|
5. [Post-processing the results](use_custom_post)
|
|
|
|
|
|
|
|
*Note* DART can be used in a development or in a production environement. For the former, the code needs to be compiled, and then launched using [run.py](https://gitlab.uliege.be/am-dept/dartflo/blob/master/run.py). For the latter, the code needs to be installed to a location which is in the python path (the default install path is the user's python site-packages).
|
|
|
|
|
|
|
|
*Note* the tests from the battery (available under [tests](https://gitlab.uliege.be/am-dept/dartflo/blob/master/dart/tests)) illustrates this method of using DART. They rely on [default methods](https://gitlab.uliege.be/am-dept/dartflo/blob/master/dart/default.py), which are used to reduce to amount of copy-pasted code and are not meant to be general. They should not be used except for creating new tests, similar to those already existing. |
|
|
|
*Note* the tests from the battery (available under [tests](https://gitlab.uliege.be/am-dept/dartflo/blob/master/dart/tests)) illustrates this method of using DART. They rely on [default methods](https://gitlab.uliege.be/am-dept/dartflo/blob/master/dart/default.py), which are used to reduce to amount of copy-pasted code and are not meant to be general. They should not be used except for creating new tests, similar to those already existing. |
|
|
\ No newline at end of file |