Store or retrieve the Electromotive Force (EMF). More...
#include "pluto.h"
Functions | |
void | CT_StoreEMF (const State_1D *state, int beg, int end, Grid *grid) |
void | CT_StoreResistiveEMF (double **res_flx, int beg, int end, Grid *grid) |
EMF * | CT_GetEMF (const Data *d, Grid *grid) |
This file provides a database functionality for storing or retrieving EMF components and related information at different points and times in the code.
The CT_StoreEMF() function is called immediately after a 1D Riemann solver during the hydro sweeps in order to save Fluxes and characteristic signal velocities into the emf structure for later reuse. The fluxes coming from different sweeps are the different components of the advective part (-v X B) part of the electric field.
This CT_StoreResistiveEMF() function is used to save the electric field components associated with resistive terms only.
The function CT_GetEMF() is used to obtain the edge-centered electric field by properly averaging the EMF components previously stored at the zone faces during the 1D sweeps.