GfsPhysicalParams

From Gerris

(Difference between revisions)
Jump to: navigation, search
Revision as of 04:04, 21 September 2007
GeordieMcBain (Talk | contribs)
(new page)
← Previous diff
Revision as of 04:04, 21 September 2007
GeordieMcBain (Talk | contribs)
(markup typo)
Next diff →
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+and from the [http://gfs.sourceforge.net/examples/examples/rt.html Rayleigh–Taylor] example
VariableTracerVOF {} T VariableTracerVOF {} T

Revision as of 04:04, 21 September 2007

Use GfsPhysicalParams to set the gravitational field strength g (a number) and the specific volume (the reciprocal of density) alpha (a scalar field).

For example, from the Geostrophic adjustment test case

 PhysicalParams { g = 9.4534734306584e-4 } 

and 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).

Personal tools
communication