CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   tangent vectors in directionMixed (

Martin80 June 9, 2011 11:02

tangent vectors in directionMixed

I am using directionMixed BC and want to know the within used tangent vectors.

To precise my question:
Let's split v into the face normal component and into two tangential components like
v = v_n *n + v_t1 * t1 + v_t2 *t2

When I am using directionMixed like this:
refValue uniform (0 0 1);
refGradient uniform (2 3 0);
valueFraction uniform (0 0 0 0 0 1);

I have set the boundary conditions (hopefully) like:
\partial_n v_t1=2;
\partial_n v_t2=3;

To get the face normal vector n I am using:


How can I get the tangential vectors t1 and t2 ?

Maybe someone has an useful hint,

All times are GMT -4. The time now is 02:50.