CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   tangent vectors in directionMixed (http://www.cfd-online.com/Forums/openfoam-programming-development/89319-tangent-vectors-directionmixed.html)

Martin80 June 9, 2011 11:02

tangent vectors in directionMixed
 
Hi,


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:
v_n=1;
\partial_n v_t1=2;
\partial_n v_t2=3;


To get the face normal vector n I am using:

mesh.Sf().boundaryField([b_outlet]/mesh.magSf().boundaryField([b_outlet];


How can I get the tangential vectors t1 and t2 ?


Maybe someone has an useful hint,
Martin.


All times are GMT -4. The time now is 11:27.