Semi-Lagrangian Library
Modular library for kinetic and gyrokinetic simulations of plasmas in fusion energy devices.
|
Initialize of cartesian mesh from namelist
We propose a uniform way of initializing cartesian meshes from namelists
FIRST EXAMPLE
in namelist test.nml
&mesh_1d_unif_cart
num_cells = 32
eta_min = 0.
eta_max = 2.
/
Information from mesh_1d_unif_cart in namelist file test.nml is stored in mesh
SECOND EXAMPLE
in namelist test.nml, we can also have another cartesian mesh corresponding for example to the second dimension
&mesh_1d_unif_cart_2
num_cells_2 = 32
eta_min_2 = 0.
eta_max_2 = 2.
/
Information from mesh_1d_unif_cart_2 in namelist file test.nml is stored in mesh
THIRD EXAMPLE
We can also choose the mesh we want to initialize when we want to initialize an array (not a sll_t_cartesian_mesh_1d
which is uniform)
Suppose that we have the following namelist file test.nml
and the following code
Information from namelist file test.nml is stored in x
and v
.