Bimetric 3+1 toolkit for spherical symmetry
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
grid/gridFunctions.h File Reference

Contains definitions of the variables that are tracked on a grid point. More...

#include <vector>
Include dependency graph for gridFunctions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GF_Descriptor
 Verbose descriptor of a grid function. More...
struct  fld::EvolvedBy
 A pair of two grid functions where the first is evolved in time by the other. More...

Namespaces

namespace  fld
 Contains the localized variable names for all known grid functions.

Defines

#define GFCNT   fld::sysLast

Enumerations

enum  fld::sysIndex { fld::t = 0, fld::r, fld::sysLast }
 Identifiers of all known grid functions (the variables or fields on a grid). More...

Detailed Description

Contains definitions of the variables that are tracked on a grid point.

Author:
Mikica Kocic

Here we configure the grid functions we are dealing with on a grid point. The customization should be done in the fld namespace below.

A grid function is a discretization of a variable (a "field") which is defined on every point of a given grid. Examples are the components of the metric tensor in GR, or the rest-mass density of a fluid which is defined in all cells within a given domain.

Instructions to add a new grid function for the field gf

  • add the identifier gf to an enumeration in the fld namespace
  • (optionally) add gf to a list passed to GridInitialData::gridFunction()
  • (optionally) add gf to a list passed to GridOutputWriter::gridFunction()
  • (optionally) add gf to a list passed to MoLIntegrator::keepConstant() or to MoLIntegrator::keepEvolved()
  • to be able to access gf's values using gf(m,n), add emitField(gf) inside the declaration.
You will also need to:

Definition in file gridFunctions.h.


Define Documentation

#define GFCNT   fld::sysLast

Definition at line 72 of file gridFunctions.h.