Skip to main content

Fixed gradient

Properties

  • Neumann condition
  • fixed normal-gradient
  • implicit

Face values are evaluated according to:

ϕf=ϕc+Δϕref \phi_f = \phi_c + \Delta \grad{\phi}_{\ref}

where ϕf\phi_f : face value

ϕc\phi_c : cell value

(ϕ)ref\grad(\phi)_{\ref} : reference gradient

Δ\Delta : face-to-cell distance

Usage

<patchName>
{
type fixedGradient;
gradient <field value>;
}

Further information

Source code: