# GfsVariablePoisson

### From Gerris

(Difference between revisions)

Revision as of 09:37, 11 June 2011Popinet (Talk | contribs) ← Previous diff |
Current revisionPopinet (Talk | contribs) (Added parameter block) |
||

Line 3: |
Line 3: | ||

The syntax in parameter files is | The syntax in parameter files is | ||

- | [ [[GfsVariableFunction]] ] | + | [ [[GfsVariableFunction]] ] { tolerance = 1e-3 ... } |

The variable is the solution of the Poisson equation: | The variable is the solution of the Poisson equation: | ||

Line 9: |
Line 9: | ||

::''∇<sup>2</sup><i>v</i> = <i>f</i>'' | ::''∇<sup>2</sup><i>v</i> = <i>f</i>'' | ||

- | where <i>v</i> is the name of the variable and <i>f</i> is the [[GfsFunction]] given as argument. | + | where <i>v</i> is the name of the variable and <i>f</i> is the [[GfsFunction]] given as argument. The parameter block is optional and follows the syntax (and default settings) of [[GfsProjectionParams]]. |

By default the Poisson equation is solved at every timestep. This can be tuned using the parameters of the parent [[GfsEvent]]. | By default the Poisson equation is solved at every timestep. This can be tuned using the parameters of the parent [[GfsEvent]]. | ||

<examples/> | <examples/> |

## Current revision

GfsVariablePoisson defines a new variable which is the solution of a Poisson equation.

The syntax in parameter files is

[ GfsVariableFunction ] { tolerance = 1e-3 ... }

The variable is the solution of the Poisson equation:

*∇*^{2}*v*=*f*

where *v* is the name of the variable and *f* is the GfsFunction given as argument. The parameter block is optional and follows the syntax (and default settings) of GfsProjectionParams.

By default the Poisson equation is solved at every timestep. This can be tuned using the parameters of the parent GfsEvent.

### Examples

VariablePoisson Psi -Omega

`
`