Normal Velocity

From Elmer Wiki
Jump to: navigation, search

Sometimes it is important to inquire, where on a surface the flow goes into and where out of the surface. This demands an existing solution of the normal vector, which is to be found under ComputeNormal, and of course the velocity field. The inner product of these vectors is then the normal velocity. As the surface normal by convention should point outwards, positive signs of the normal velocity correspond to outflow, negative to inflow.

The corresponding MATC function is:

$ function getNormalVelocity(A) {\
    _getNormalVelocity = A(0)*A(3) + A(1)*A(4) + A(2)*A(5);\
}

its call from a specific Boundary section is:

Boundary Condition 1
  ComputeNormal = True

   NormalVelocity = Variable Velocity 1, Velocity 2, Velocity 3, Normal Vector 1, Normal Vector 2, Normal Vector 3
      Real MATC "getNormalVelocity(tx)"

End

--Tzwinger 07:25, 1 October 2009 (UTC)