Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
ldz_main.cpp File Reference

Londrillo – Del Zanna upwind constrained transport field solver. More...

#include "ldz_electric_field.hpp"
#include "ldz_magnetic_field.hpp"
#include "ldz_hall.hpp"
#include "ldz_gradpe.hpp"
#include "ldz_volume.hpp"
#include "fs_common.h"
#include "derivatives.hpp"
#include "fs_limiters.h"
#include "mpiconversion.h"
#include "../fieldtracing/fieldtracing.h"
#include "../logger.h"
Include dependency graph for ldz_main.cpp:

Go to the source code of this file.

Functions

bool propagateFields (fsgrids::perbspan perb, fsgrids::perbspan perbdt2, fsgrids::efieldspan e, fsgrids::efieldspan edt2, fsgrids::ehallspan ehall, fsgrids::egradpespan egradpe, fsgrids::egradpespan egradpedt2, fsgrids::momentsspan moments, fsgrids::momentsspan momentsdt2, fsgrids::dperbspan dperb, fsgrids::dmomentsspan dmoments, fsgrids::dmomentsspan dmomentsdt2, fsgrids::bgbspan bgb, fsgrids::volspan vol, fsgrids::technicalspan technical, FieldSolverGrid &fsgrid, SysBoundary &sysBoundaries, creal &dt, cuint subcycles)
 Top-level field propagation function.

Variables

Logger logFile

Detailed Description

Londrillo – Del Zanna upwind constrained transport field solver.

On the divergence-free condition in Godunov-type schemes for ideal magnetohydrodynamics: the upwind constrained transport method, P. Londrillo and L. Del Zanna, J. Comp. Phys., 195, 2004. http://dx.doi.org/10.1016/j.jcp.2003.09.016

Reconstructions taken from: Efficient, high accuracy ADER-WENO schemes for hydrodynamics and divergence-free magnetohydrodynamics, D. S. Balsara, T. Rumpf, M. Dumbser, C.-D. Munz, J. Comp. Phys, 228, 2480-2516, 2009. http://dx.doi.org/10.1016/j.jcp.2008.12.003 and Divergence-free reconstruction of magnetic fields and WENO schemes for magnetohydrodynamics, D. S. Balsara, J. Comp. Phys., 228, 5040-5056, 2009. http://dx.doi.org/10.1016/j.jcp.2009.03.038

***** NOTATION USED FOR VARIABLES FOLLOWS THE ONES USED *****
***** IN THE ABOVEMENTIONED PUBLICATION(S) *****

Definition in file ldz_main.cpp.

Function Documentation

◆ propagateFields()

Top-level field propagation function.

Propagates the magnetic field, computes the derivatives and the upwinded electric field, then computes the volume-averaged field values. Takes care of the Runge-Kutta iteration at the top level, the functions called get as an argument the element from the enum defining the current stage and handle their job correspondingly.

Parameters
perbfsgrid holding perturbed magnetic field
perbdt2fsgrid holding perturbed magnetic field at Runge-Kutta half-step
efsgrid holding electric field
edt2fsgrid holding electric field
ehallfsgrid holding Hall term electric field
egradpefsgrid holding gradient of electron pressure electric field
egradpedt2fsgrid holding gradient of electron pressure electric field at Runge-Kutta half-step
momentsfsgrid holding moments
momentsdt2fsgrid holding moments at Runge-Kutta half-step
dperbfsgrid holding perturbed magnetic field derivatives
dmomentsfsgrid holding moments derivatives
dmomentsdt2fsgrid holding moments derivatives at Runge-Kutta half-step
bgbfsgrid holding background magnetic field
volfsgrid holding volume magnetic field
technicalfsgrid holding technical parameters
fsgridfsgrids container
sysBoundariesContainer of existing system boundaries
dtLength of the time step
subcyclesNumber of subcycles to compute.
See also
propagateMagneticFieldSimple calculateDerivativesSimple calculateUpwindedElectricFieldSimple calculateVolumeAveragedFields calculateBVOLDerivativesSimple

Definition at line 91 of file ldz_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ logFile

Logger logFile
extern

Definition at line 25 of file main.cpp.