Skip to main content

potentialFoam

Solves for the velocity potential to provide velocity and incompressible flux fields, typically used to initialise viscous calculations.

Overview

  • Category: Basic
  • steady state
  • incompressible

Equations

Solves for the velocity potential, Φ\Phi, using the equation

2Φ=ϕ \laplacian \Phi = \div \phi

where the volumetric flux, ϕ\phi is given by dotting the interpolated velocity with the face area vectors:

ϕ=ufSf \phi = \u_f \dprod \vec{S}_f

Finally the cell centre velocity is derived by reconstructing the volumetric flux.

Input requirements

Mandatory fields:

  • p: kinematic pressure [m2/s2] or Phi: velocity potential [m2/s]
  • U: velocity [m/s]

Physical models

  • None

Solution controls

$FOAM_CASE/system/fvSchemes requirements:

$FOAM_CASE/system/fvSolution requirements:

Command line options

  • -pName <name>: name of the pressure field
  • -initialiseUBCs: initialise the velocity boundary conditions prior to computing the volumetric flux
  • -writePhi: write the velocity potential field
  • -writep: write the Euler pressure field

Further information

Source code

See also

Tutorials