PLUTO  4.4-patch2
Functions
imex_source.c File Reference

Solve the stiff-implicit part of the RK-Imex method. More...

#include "pluto.h"

Functions

void IMEXImplicitUpdate (Data *data, double dt1, Data_Arr S, Data_Arr Jf, Grid *grid)
 

Detailed Description

Main driver for including the stiff source terms of the resistive RMHD equation within the IMEX formalism.

Authors
G. Mattia A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
Date
Sep 06, 2020

Function Documentation

◆ IMEXImplicitUpdate()

void IMEXImplicitUpdate ( Data data,
double  dt1,
Data_Arr  S,
Data_Arr  Jf,
Grid grid 
)

Perform an implicit update of the conservative variables by adding the stiff source term to the electric field. Only the electric field is actually updated although this requires primitive variables to change.

\[ U^{(1)} = U^{(0)} + \frac{\Gamma}{\eta}\Delta tS(U^{(1)} \qquad{\rm where}\qquad \Gamma = \left(1 - \frac{1}{\sqrt{2}}\right) \]

Parameters
[in,out]dataPLUTO data array. On input, Vc is an array of primitive quantities at the old time level. On output Vc is converted from Uc at the next time level.
[in]dt1The time step to be taken
[out]SA 4D array containing the three component of the source term vector
[in]gridPointer to grid structure.