GfsMetric

From Gerris

Jump to: navigation, search

GfsMetric is used to define an orthogonal curvilinear coordinate system and its associated metric.

The syntax is:

[ GfsVariable ] {
  x = f(rx,ry,rz)
  y = g(rx,ry,rz)
}

where (x,y) are the coordinates in physical space and (rx,ry,rz) are the coordinates in computational space.

Note that it is up to the user to specify transformations which guarantee the orthogonality of the coordinate system (for example using conformal mapping).

Once this metric is defined, all coordinates (e.g. references to (x,y) in functions etc...) are defined in physical space. The computational space coordinates can still be accessed using (rx,ry,rz).

On the other hand, the components of vector quantities (such as velocity (U,V)) are defined using the normalised basis of the computational space. This convention matches that used for standard non-Cartesian coordinate systems. For example, the Navier-Stokes equation in cylindrical coordinates are usually written in terms of the radial and tangential velocity components (i.e. using the basis of the computational domain) and the tangential velocity component also has dimension of a linear velocity (i.e. length per unit of time) and not that of an angular velocity (i.e. angle per unit of time).

Examples

Views
Navigation
communication