PLUTO  4.4-patch2
Functions
fargo_source.c File Reference

Add source terms before the FARGO advection step. More...

#include "pluto.h"

Functions

void FARGO_Source (Data_Arr UU, Data_Arr Vs, double dt, Grid *grid)
 

Detailed Description

This function is called prior to the FARGO advection algorithm to add source terms. At present, we use it only for the energy equation in the ShearingBox module:

\[ \pd{E'}{t} + w\pd{E'}{y} = (B_xB_y - \rho v_xv'_y)\pd{w}{x} \]

where $w = -q\Omega x$. The discretization follows the algorithm of [GS10], see Eq. (51) and (63) of that paper.

Reference

Author
A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
Date
Apr 30, 2020

Function Documentation

◆ FARGO_Source()

void FARGO_Source ( Data_Arr  UU,
Data_Arr  Vs,
double  dt,
Grid grid 
)
Parameters
[in,out]UUarray of conserved variables
[in]Vsarray of staggered magnetic fields
[in]dtthe current time increment
[in]gridpointer to an array of Grid structures