|
[Sponsors] |
![]() |
![]() |
#1 |
Member
X
Join Date: Jan 2019
Posts: 63
Rep Power: 6 ![]() |
Hi.
Rather than creating two threads, I am going to ask both my questions here since they are related. I am using interFoam solver for my fluid flow simulation. I am interested in acquiring the unit normal vector at the interface. I know the equation for normal vector is ![]() Code:
normV = fvc::grad(alpha1); But when I try to compute the unit normal vector given by ![]() Code:
unormV = fvc::grad(alpha1)/mag(fvc::grad(alpha1)); ![]() I am interested in acquiring unit normal vector to compute a variable which brings me to my second part of the question. The parameter I am measuring qs requires interface knowledge and is given by: ![]() My questions 1. How can I calculate unit normal vector ![]() 2. How can I write the interface jump represented by ||.|| within my solver? Any help is appreciated. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
libya
Join Date: Aug 2022
Posts: 15
Rep Power: 2 ![]() |
Did you solve the the problem,i am facing the same
![]() |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Join Date: Jan 2022
Location: Germany
Posts: 70
Rep Power: 3 ![]() |
I would do the calculation only for cells where the gradient isnt 0. That means, including an for loop where this condition is met
|
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
libya
Join Date: Aug 2022
Posts: 15
Rep Power: 2 ![]() |
thanks so much
|
|
![]() |
![]() |
![]() |
Tags |
interface, interface defining, interface jumping, interfoam |
Thread Tools | Search this Thread |
Display Modes | |
|
|