Streamer fluid modeling - An overview of ARCoS  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Macros | Typedefs
rz_array.h File Reference

Definitions for 2D/3D arrays. More...

#include "cstream.h"
Include dependency graph for rz_array.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rz_array_t
 

Macros

#define R_INDX   0
 
#define Z_INDX   1
 
#define THETA_INDX   2
 
#define RZTP_OK(_A, _R, _Z, _T)
 
#define __RZTP(_A, _R, _Z, _T)
 
#define RZTP(_A, _R, _Z, _T)   __RZTP(_A, _R, _Z, _T)
 
#define RZT(_A, _R, _Z, _T)   (*RZTP(_A, _R, _Z, _T))
 
#define RZTm(_A, _R, _Z, _T)
 
#define RZP(_A, _R, _Z)   RZTP(_A, _R, _Z, (_A)->theta0)
 
#define RZ(_A, _R, _Z)   RZT(_A, _R, _Z, (_A)->theta0)
 
#define BND_CND_HNEUMANN   1
 
#define BND_CND_HDIRICHLET   -1
 
#define BND_INWARD   -1
 
#define BND_OUTWARD   1
 
#define _RZ_ARRAY_H_
 

Typedefs

typedef struct rz_array_t rz_array_t
 

Detailed Description

Definitions for 2D/3D arrays.

Definition in file rz_array.h.

Macro Definition Documentation

#define R_INDX   0

Definition at line 24 of file rz_array.h.

#define Z_INDX   1

Definition at line 25 of file rz_array.h.

#define THETA_INDX   2

Definition at line 26 of file rz_array.h.

#define RZTP_OK (   _A,
  _R,
  _Z,
  _T 
)
Value:
((_R) >= (_A)->r0 && (_R) < (_A)->nr + (_A)->r0 + 4 \
&& (_Z) >= (_A)->z0 && (_Z) < (_A)->nz + (_A)->z0 + 4 \
&& (_T) >= (_A)->theta0 && (_T) < (_A)->ntheta + (_A)->theta0 + 4) \

Definition at line 29 of file rz_array.h.

#define __RZTP (   _A,
  _R,
  _Z,
  _T 
)
Value:
((_A)->data \
+ ((_R) - (_A)->r0) * (_A)->strides[R_INDX] \
+ ((_Z) - (_A)->z0) * (_A)->strides[Z_INDX] \
+ (((_T) - (_A)->theta0) * (_A)->strides[THETA_INDX]))

Definition at line 34 of file rz_array.h.

#define RZTP (   _A,
  _R,
  _Z,
  _T 
)    __RZTP(_A, _R, _Z, _T)

Definition at line 56 of file rz_array.h.

#define RZT (   _A,
  _R,
  _Z,
  _T 
)    (*RZTP(_A, _R, _Z, _T))

Definition at line 59 of file rz_array.h.

#define RZTm (   _A,
  _R,
  _Z,
  _T 
)
Value:
((fprintf (stderr, \
"%s:%d: CHECK ir = %d, iz = %d, itheta = %d\n", \
__FILE__, __LINE__, _R, _Z, _T), \
fprintf (stderr, \
"->r0 = %d ->z0 = %d ->theta0 = %d ->nr = %d ->nz = %d ->ntheta = %d\n", \
(_A)->r0, (_A)->z0, (_A)->theta0, \
(_A)->nr, (_A)->nz, (_A)->ntheta), \
fprintf (stderr, \
"->data = %g\n", \
(_A)->data), \
exit(-1), (double*) NULL))

Definition at line 60 of file rz_array.h.

#define RZP (   _A,
  _R,
  _Z 
)    RZTP(_A, _R, _Z, (_A)->theta0)

Definition at line 76 of file rz_array.h.

#define RZ (   _A,
  _R,
  _Z 
)    RZT(_A, _R, _Z, (_A)->theta0)

Definition at line 77 of file rz_array.h.

#define BND_CND_HNEUMANN   1

Definition at line 79 of file rz_array.h.

#define BND_CND_HDIRICHLET   -1

Definition at line 80 of file rz_array.h.

#define BND_INWARD   -1

Definition at line 82 of file rz_array.h.

#define BND_OUTWARD   1

Definition at line 83 of file rz_array.h.

#define _RZ_ARRAY_H_

Definition at line 85 of file rz_array.h.

Typedef Documentation

typedef struct rz_array_t rz_array_t

Definition at line 9 of file rz_array.h.