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

Compute states using piece-wise linear interpolation. More...

#include "pluto.h"

Functions

void States (const State_1D *state, int beg, int end, Grid *grid)
 

Detailed Description

Provide piece-wise linear reconstruction inside each cell using primitive or characteristic variables. Note that vL and vR are left and right states with respect to the interface, while vm and vp refer to the cell center:

                   vL-> <-vR
     |--------*--------|--------*--------|
      <-vm   (i)   vp->       (i+1)

A default setup is used when LIMITER is set to DEFAULT in in your definitions.h.

A stencil of 3 zones is required for all limiters except for the FOURTH_ORDER_LIM which requires 5 zones.

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

Function Documentation

void States ( const State_1D state,
int  beg,
int  end,
Grid grid 
)

Compute states using piecewise linear interpolation.

Parameters
[in]statepointer to a State_1D structure
[in]begstarting point where vp and vm must be computed
[in]endfinal point where vp and vm must be computed
[in]gridpointer to array of Grid structures
Returns
This function has no return value.