This session is intended as an introduction to the codes that we use on a day-to-day basis to service existing or new contracts. The aim is to show similarities and differences of the codes. We define the differences between commercial (or industry hardened) codes and those codes that are being developed by research programs to address new challenges in the science (e.g. tough physics) or to take advantages of new available resources (e.g. new faster computers).
The modeling tools fall into four main areas:
In the presence of a magnetic field, charge particles will prescribe Larmor orbits and the guiding center of their orbit will drift in response to externally applied electric and magnetic fields.
Derived from moments of the Vlasov equation, the fluid description of plasmas is with macroscopic parameters (density, temperature, velocity, magnetic field).
If we consider the time-independent form of the force balance, we can find a solution, called the Grad-shafranov equation:
Non-Ideal Magnetohydrodynamics with Rotation, Open Discussion
NIMROD solves the extended magnetohydrodynamic equations using:
HiFi Multi-Fluid Modeling Framework
HiFi is a user-friendly massively parallel adaptive high order finite element (a.k.a. spectral element) modeling framework designed for multi-fluid numerical simulations in two- and three-dimensional geometries.
BOUndary-plasma Turbulence (written in C++)
The Corsica magnetic fusion simulation code is a prototype for an integrated simulation that would solve models for all aspects of tokamak operations.
To run, put the following input deck into the run directory:
&nimeq_input nimeq_solver="bl_diaga" f_model="quad_closed" f_open=0.0 f1_closed=-9.9099 f1_closed=-1. f2_closed=0.0 dfdpsi=-9.9099 pres_model="quad_closed" p1_closed=1 p2_closed=0.25 p_open=0.0e-6 p_axis=0.002e-3 gsh_tol=1.e-8 gsh_tol=1.e-8 eq_iters=300 eq_iters=60 linmaxit=150 gscenter=0.75 nimeq_tx=F / frac_flux=1. cf_min=-.3891 cf_min=-9999. spectral_energy=T
Then run nimset, then run nimeq.
(Originally FORTRAN, FORmula TRANslating system) Wikipedia / Fortran
To transfer files to your local terminal do:
$scp -P 26 username@10.1.10.11:directory/file.avi .
To uncompress tarballs:
$tar -xvf filename.tar
cd to your SCRATCH directory with
cd $SCRATCH
Make a directory for your run:
mkdir myrun1
Transfer the input deck and batch script in your example directory into your run directory. Then make a symbolic link to the preprocessor (nimset) and physics kernal (nimrod) in your run directory with:
ln -sf ~trainxx/codedirectory/nimrod/nimrod nimrod ln -sf ~trainxx/codedirectory/nimrod/nimset nimset
Then you are ready to run nimset and launch the batch script:
./nimset qsub mybatch
cp -R rundir $SCRATCH/. cd $SCRATCH nano go_script
edit out the line with -A (del should do it)
./nimset sbatch go_script squeue -u <username> tail nimrod.out