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

From OpenFOAMWiki
(Created page with '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++) { fac…')
 
Line 10: Line 10:
 
A_n \boldsymbol \psi_n - A_o \boldsymbol \psi_o</math>
 
A_n \boldsymbol \psi_n - A_o \boldsymbol \psi_o</math>
  
{{CAP owner neighbour}}; and
+
Where:
 +
* ''A'' are [[matrix coefficients]];
 +
* ''o'' and ''n'' are the [[owner and neighbour indices]]; and
 
* f is a face index.
 
* f is a face index.
  
 
[[Category:OpenFOAM coding guide]]
 
[[Category:OpenFOAM coding guide]]

Revision as of 13:37, 30 June 2010

A function built into the matrix to facilitate implementation of the H operator. Used by 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: