PLUTO
|
Store or retrieve the Electromotive Force (EMF). More...
#include "pluto.h"
Go to the source code of this file.
Macros | |
#define | eps_UCT_CONTACT 1.e-6 |
#define | EX(k, j, i) (vz[k][j][i]*By[k][j][i] - vy[k][j][i]*Bz[k][j][i]) |
#define | EY(k, j, i) (vx[k][j][i]*Bz[k][j][i] - vz[k][j][i]*Bx[k][j][i]) |
#define | EZ(k, j, i) (vy[k][j][i]*Bx[k][j][i] - vx[k][j][i]*By[k][j][i]) |
Functions | |
void | CT_StoreEMF (const State_1D *state, int beg, int end, Grid *grid) |
EMF * | CT_GetEMF (const Data *d, Grid *grid) |
Variables | |
static EMF | emf |
Store or retrieve the Electromotive Force (EMF).
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.
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.
Definition in file ct_emf.c.
Retrieve EMF by suitable average of 1D face-centered fluxes.
[in] | d | |
[in] | grid |
Definition at line 205 of file ct_emf.c.
Store EMF components and related information available during 1D sweeps.
[in] | state | pointer to State_1D structure |
[in] | beg | initial index of computation |
[in] | end | final index of computation |
[in] | grid | pointer to Grid structure; |
Definition at line 35 of file ct_emf.c.