# GfsPhysicalParams

(Difference between revisions)
 Revision as of 21:23, 22 March 2010Popinet (Talk | contribs) (Added examples)← Previous diff Revision as of 21:33, 22 March 2010Popinet (Talk | contribs) Next diff → Line 1: Line 1: - Use GfsPhysicalParams to set the gravitational field strength g (a number) and the specific volume (the reciprocal of density) alpha (a scalar field). + For the [[GfsOcean]] and [[GfsRiver]] solvers only, use GfsPhysicalParams to set the gravitational field strength g (a number). For example, from the [http://gfs.sourceforge.net/tests/tests/geo.html Geostrophic adjustment] test case For example, from the [http://gfs.sourceforge.net/tests/tests/geo.html Geostrophic adjustment] test case Line 5: Line 5: PhysicalParams { g = 9.4534734306584e-4 } PhysicalParams { g = 9.4534734306584e-4 } - and from the [http://gfs.sourceforge.net/examples/examples/rt.html Rayleigh–Taylor] example + For the [[GfsSimulation]] solver, use GfsPhysicalParams to set the the specific volume (the reciprocal of density) alpha (a scalar field). - VariableTracerVOF {} T + For example, from the [http://gfs.sourceforge.net/examples/examples/rt.html Rayleigh–Taylor] example - InitFraction {} T (0.05*cos (2.*M_PI*x) + y) { ty = 0.5 } + + 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) } PhysicalParams { alpha = 1./(T*1.225 + (1. - T)*0.1694) }

## Revision as of 21:33, 22 March 2010

For the GfsOcean and GfsRiver solvers only, use GfsPhysicalParams to set the gravitational field strength `g` (a number).

For example, from the Geostrophic adjustment test case

``` PhysicalParams { g = 9.4534734306584e-4 }
```

For the GfsSimulation solver, use GfsPhysicalParams to set the the specific volume (the reciprocal of density) `alpha` (a scalar field).

For example, from the Rayleigh–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 `T` has density 1.225 and the other fluid has density 0.1694).