GfsPhysicalParams

From Gerris

(Difference between revisions)
Jump to: navigation, search
Revision as of 21:33, 22 March 2010
Popinet (Talk | contribs)

← Previous diff
Current revision
Popinet (Talk | contribs)

Line 1: Line 1:
-For the [[GfsOcean]] and [[GfsRiver]] solvers only, use GfsPhysicalParams to set the gravitational field strength <code>g</code> (a number).+GfsPhysicalParams controls the following physical parameters
 +
 + {
 + L = NUMBER
 + g = NUMBER
 + alpha = [ [[GfsFunction]] ]
 + }
-For example, from the [http://gfs.sourceforge.net/tests/tests/geo.html Geostrophic adjustment] test case+with
- PhysicalParams { g = 9.4534734306584e-4 } +;<code>L</code>: the size of a [[GfsBox]] (default is unity),
- +;<code>g</code>: for the [[GfsOcean]] and [[GfsRiver]] solvers only, the strength of the gravitational field (default is unity),
-For the [[GfsSimulation]] solver, use GfsPhysicalParams to set the the specific volume (the reciprocal of density) <code>alpha</code> (a scalar field).+;<code>alpha</code>: for the [[GfsSimulation]] solver, the specific volume (i.e the inverse of density) (default is unity).
- +
-For example, from the [http://gfs.sourceforge.net/examples/examples/rt.html Rayleigh&ndash;Taylor] example+
- +
- VariableTracerVOF T+
- InitFraction T (0.05*cos (2.*M_PI*x) + y) { ty = 0.5 }+
- PhysicalParams { alpha = 1./(T*1.225 + (1. - T)*0.1694) }+
- +
-(here the fluid with characteristic function <code>T</code> has density 1.225 and the other fluid has density 0.1694).+
<examples/> <examples/>

Current revision

GfsPhysicalParams controls the following physical parameters

{
  L = NUMBER
  g = NUMBER
  alpha = [ GfsFunction ]
}

with

L
the size of a GfsBox (default is unity),
g
for the GfsOcean and GfsRiver solvers only, the strength of the gravitational field (default is unity),
alpha
for the GfsSimulation solver, the specific volume (i.e the inverse of density) (default is unity).

Examples

Personal tools
communication