Magnetic Field of a Winding
For computing larger cases on HPC computers, Elmer is usually used without ElmerGUI. Based on the geometry, a finite element mesh is generated with ElmerGrid, and the problem is solved with the ElmerSolver_mpi solver.
In most cases, the steps required to solve a problem in parallel are as follows (you must have a working serial case):
ElmerGrid 2 2 meshdir -metis #np 3 -partdual
sbatch --partition=rome --ntasks=#np --ntasks-per-core=1 --output=output.log --wrap="mpirun ElmerSolver_mpi"
The magnetic field of a winding, with the input files in the ‘EndWindings’ directory, is thus computed on 32 processors as follows:
$ cd EndWindings
$ ElmerGrid 2 2 mesh -metis 32 3 -partdual
$ sbatch --partition=rome --ntasks=32 --ntasks-per-core=1 --output=output32.log --wrap="mpirun ElmerSolver_mpi"
The results can be viewed with paraview; the figure below shows the computed magnetic field strength:

.
Attachment |
Size |
|---|---|
34.74 MB |
Magnetno polje navitja
Za izračun večjih primerov na HPC računalnikih običajno uporabljamo Elmer brez uporabe programa ElmerGUI. Na osnovi geomertije generiramo mrežo končnih elementov s pomočjo programa ElmerGrid, za reševanje probema pa uporabimo solver ElmerSolver_mpi.
V večini primerov, so potrebni koraki za paralelno reševanje problema (moraš imeti delujoč seriski primer):
ElmerGrid 2 2 meshdir -metis #np 3 -partdual
sbatch --partition=rome --ntasks=#np --ntasks-per-core=1 --output=output.log --wrap="mpirun ElmerSolver_mpi"
Magneto polje navitja z vhodnimi datotekamo v direktoriju ‘EndWindings’ tako z 32 procesorji izračunamo:
$ cd EndWindings
$ ElmerGrid 2 2 mesh -metis 32 3 -partdual
$ sbatch --partition=rome --ntasks=32 --ntasks-per-core=1 --output=output32.log --wrap="mpirun ElmerSolver_mpi"
Rezultate si lahko ogledamo z programom paraviev, prikaz rezultatov jakosti magnetnega polja pa prikazuje spodnja slika:

.
Priponka |
Velikost |
|---|---|
34.74 MB |