... | ... | @@ -4,11 +4,10 @@ Many test cases are given to help users to understand how to use the different f |
|
|
|
|
|
Let us illustrate the structure of the executable python files with a two dimensional deposit of grains in a fluid. This test case is provided in the [testcases/depot-2d/depot.py](https://git.immc.ucl.ac.be/fluidparticles/migflow/blob/master/testcases/depot-2d/depot.py) file.
|
|
|
|
|
|
Some steps have to be followed in order to properly define the application you want to solve with the MigFlow Software.
|
|
|
Several steps are required to properly define the problem you want to solve with the MigFlow Software.
|
|
|
|
|
|
1. Set the problem parametres.
|
|
|
|
|
|
In an application, many variables are required to define :
|
|
|
* [fluid and grains properties](https://git.immc.ucl.ac.be/fluidparticles/migflow/blob/master/testcases/depot-2d/depot.py#L69)
|
|
|
```python
|
|
|
g = np.array([0,-9.81,0]) # gravity
|
... | ... | @@ -23,13 +22,7 @@ outf = 5 # number of iterations between ou |
|
|
dt = 1e-2 # time step
|
|
|
tEnd = 100 # final time
|
|
|
```
|
|
|
* [domain geometry](https://git.immc.ucl.ac.be/fluidparticles/migflow/blob/master/testcases/depot-2d/depot.py#L81)
|
|
|
```python
|
|
|
#geometrical parameters
|
|
|
ly = 5e-2 # grains area height
|
|
|
lx = 4e-1 # grains area widht
|
|
|
H = 1.2 # domain height
|
|
|
```
|
|
|
|
|
|
|
|
|
2. Define the matrix of the grains positions and actually create the grains at these positions
|
|
|
|
... | ... | |