Extension: Geometries
#include "dg/geometries/geometries.h"
|
\(\psi_p(R,Z)\) dg::geo::createMagneticField More...
Functions | |
static TokamakMagneticField | dg::geo::createMagneticField (dg::file::WrappedJsonValue gs) |
Create a Magnetic field based on the given parameters. More... | |
\(\psi_p(R,Z)\) dg::geo::createMagneticField
|
inlinestatic |
Create a Magnetic field based on the given parameters.
This function abstracts the Magnetic field generation. It reads an input Json file that tells this function via the "equilibrium" parameter which field to generate and which parameters to expect in the file. See a list of possible combinations in the following
dg::geo::description
to see valid values for the description fieldgs | Has to contain "equilibrium" which is converted dg::geo::equilibrium , i.e. "solovev", "polynomial", .... After that the respective parameters are created, for example if "solovev", then the dg::geo::solovev::Parameters( gs) is called and forwarded to dg::geo::createSolovevField(gp); similar for the rest |
json/json.h
is included before dg/geometries/geometries.h