Values, macros and structures in Gerris

From Gerris

(Difference between revisions)
Jump to: navigation, search
Revision as of 10:52, 15 May 2012
Blagree (Talk | contribs)

← Previous diff
Revision as of 11:06, 15 May 2012
Blagree (Talk | contribs)

Next diff →
Line 17: Line 17:
=== CellCube === === CellCube ===
 +
 +<source lang="c">
 +typedef struct {
 + GtsPoint p[8];
 + GfsSegment s[12];
 +}
 +</source>
 +
 +The vertices of the cube are stored in the GtsPoint array and the edges in the [[GfsSegment]] array.
 +
 +=== CellFace ===
 +
 +<source lang="c">
 +typedef struct {
 + GtsPoint p[4];
 + GfsSegment s[4];
 +}
 +</source>
 +
 +The vertices of the face are stored in the GtsPoint array and the edges in the [[GfsSegment]] array.
 +
 +=== CompatPar ===
 +
 +<source lang="c">
 +typedef struct {
 + GfsVariable * lhs;
 + gboolean dirichlet;
 +}
 +</source>
 +
 +The homogeneous version of the considered [[GfsVariable]] is stored in lhs.

Revision as of 11:06, 15 May 2012

Contents

Values defined in Gerris

N_CELLS = FTT_CELLS = <math>2^{dimension}</math>

FTT_NEIGHBORS_2D = (FTT_BOTTOM) + 1

GFS_STATUS_UNDEFINED = 0

GFS_STATUS_SOLID = 1

GFS_STATUS_FLUID = 2

Gerris Macros


Gerris structures

CellCube

typedef struct {
GtsPoint p[8];
GfsSegment s[12];
}

The vertices of the cube are stored in the GtsPoint array and the edges in the GfsSegment array.

CellFace

typedef struct {
GtsPoint p[4];
GfsSegment s[4];
}

The vertices of the face are stored in the GtsPoint array and the edges in the GfsSegment array.

CompatPar

typedef struct {
GfsVariable * lhs;
gboolean dirichlet;
}

The homogeneous version of the considered GfsVariable is stored in lhs.

Personal tools
communication