PLUTO  4.0
 All Data Structures Files Functions Variables Enumerations Macros Pages
Functions
ct.c File Reference

Update staggered magnetic field. More...

#include "pluto.h"

Functions

void CT_Update (const Data *d, Grid *grid)
 
void CT_CheckDivB (double ***bf[], Grid *grid)
 

Detailed Description

Magnetic field is updated using a discrete version of Stoke's theorem

References

Author
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
Date
Aug 16, 2012

Function Documentation

void CT_CheckDivB ( double ***  bf[],
Grid grid 
)

Check the divergence-free condition of magnetic field in the constrained transport formalism.

void CT_Update ( const Data d,
Grid grid 
)

Update staggered magnetic field using discrete version of Stoke's theorem.

Parameters
[in,out]dpointer to PLUTO Data structure
[in]gridpointer to an array of Grid structures
Todo:
dt may be set separately in a more concise manner.
Author
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
Date
Aug 16, 2012