Foam-Extend » History » Version 2

Raphael Cóbe, 12 Jul 2016 17:25

1 1 Raphael Cóbe
h1. Foam-Extend
2 1 Raphael Cóbe
3 1 Raphael Cóbe
h2. Envio local, exemplos de scripts
4 1 Raphael Cóbe
5 1 Raphael Cóbe
Informações sobre o uso direto do cluster local estão em [[SLURM|aqui]].
6 1 Raphael Cóbe
7 1 Raphael Cóbe
h3. SMP
8 1 Raphael Cóbe
9 1 Raphael Cóbe
<pre>
10 2 Raphael Cóbe
#!/bin/bash
11 1 Raphael Cóbe
#SBATCH -t 5:00
12 1 Raphael Cóbe
13 1 Raphael Cóbe
module load foam-extend
14 1 Raphael Cóbe
15 1 Raphael Cóbe
# unpack input file
16 1 Raphael Cóbe
unzip foam-extend-cavity.zip
17 1 Raphael Cóbe
18 1 Raphael Cóbe
blockMesh 
19 1 Raphael Cóbe
icoFoam
20 1 Raphael Cóbe
21 1 Raphael Cóbe
#pack all results
22 1 Raphael Cóbe
zip cavity.zip *
23 1 Raphael Cóbe
24 1 Raphael Cóbe
</pre>
25 1 Raphael Cóbe
26 1 Raphael Cóbe
h3. MPI
27 1 Raphael Cóbe
28 1 Raphael Cóbe
Note que para a submissão utilizando MPI, utilizamos o comando **mpirun** e não o srun.
29 1 Raphael Cóbe
30 1 Raphael Cóbe
<pre>
31 1 Raphael Cóbe
#!/bin/bash
32 1 Raphael Cóbe
#SBATCH -t 5:00 -n 4
33 1 Raphael Cóbe
34 1 Raphael Cóbe
module load foam-extend
35 1 Raphael Cóbe
36 1 Raphael Cóbe
unzip circCylinder3dHex.zip
37 1 Raphael Cóbe
38 1 Raphael Cóbe
decomposePar
39 1 Raphael Cóbe
mpirun -n 4 moveDynamicMesh -parallel
40 1 Raphael Cóbe
</pre>