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:
- Importing the modules
- Creating the mesh
- Defining the problem
- Solving the flow
- Post-processing the results
Note DART can be used in a development or in a production environment. For the former, the code needs to be compiled, and then launched using 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) illustrates this method of using DART. They rely on default methods, 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.