PLUTO
userdef_output.c File Reference
#include "pluto.h"
Include dependency graph for userdef_output.c:

Go to the source code of this file.

Functions

void ComputeUserVar (const Data *d, Grid *grid)
 
void ChangeDumpVar ()
 

Function Documentation

void ChangeDumpVar ( )

Definition at line 30 of file userdef_output.c.

35 {
36  Image *image;
37 
38 }
Definition: structs.h:300
static Image image[MAX_IMAGE_NUMBER]
Definition: set_image.c:4

Here is the caller graph for this function:

void ComputeUserVar ( const Data d,
Grid grid 
)

Definition at line 4 of file userdef_output.c.

14 {
15  int i, j, k, nv;
16  double ***tmp, T, v[NVAR], mu = 0.5;
17 
18  tmp = GetUserVar("tmp");
19  DOM_LOOP(k,j,i){
20  VAR_LOOP(nv) v[nv] = d->Vc[nv][k][j][i];
21 #if EOS == IDEAL
22  T = v[PRS]/v[RHO]*KELVIN*mu;
23 #elif EOS == PVTE_LAW
24  GetPV_Temperature(v, &T);
25 #endif
26  tmp[k][j][i] = T;
27  }
28 }
tuple T
Definition: Sph_disk.py:33
DOM_LOOP(k, j, i)
Definition: analysis.c:22
#define RHO
Definition: mod_defs.h:19
#define KELVIN
Definition: pluto.h:401
double *** GetUserVar(char *)
Definition: set_output.c:251
#define VAR_LOOP(n)
Definition: macros.h:226
int j
Definition: analysis.c:2
int k
Definition: analysis.c:2
int i
Definition: analysis.c:2
int GetPV_Temperature(double *v, double *T)
Definition: thermal_eos.c:221
#define NVAR
Definition: pluto.h:609

Here is the call graph for this function:

Here is the caller graph for this function: