Difference between revisions of "OpenFOAM guide/LduMatrix;;faceH"

From OpenFOAMWiki
Line 1: Line 1:
A function built into the matrix to facilitate implementation of the [[H operator]].  Used by [[fvMatrix::flux]].
+
A function built into the matrix to facilitate implementation of the [[H operator]].  Used by [[fvMatrix;;flux]].
  
 
  for (register label face=0; face<l.size(); face++)
 
  for (register label face=0; face<l.size(); face++)

Revision as of 15:34, 30 June 2010

A function built into the matrix to facilitate implementation of the H operator. Used by fvMatrix;;flux.

for (register label face=0; face<l.size(); face++)
{
    faceHpsi[face] = Upper[face]*psi[u[face]]
        - Lower[face]*psi[l[face]];
}

\mathbf{H}_f \left ( \boldsymbol \psi \right ) =
A_n \boldsymbol \psi_n - A_o \boldsymbol \psi_o

Where: