|
[Sponsors] |
May 27, 2021, 15:24 |
Unit Normal Vector and Interface Jump ||.||
|
#1 |
Member
X
Join Date: Jan 2019
Posts: 63
Rep Power: 7 |
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 which in OF can be written as Code:
normV = fvc::grad(alpha1); But when I try to compute the unit normal vector given by which I have written using 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 at the interface? 2. How can I write the interface jump represented by ||.|| within my solver? Any help is appreciated. |
|
February 18, 2023, 17:01 |
|
#2 |
New Member
libya
Join Date: Aug 2022
Posts: 25
Rep Power: 4 |
Did you solve the the problem,i am facing the same
|
|
February 20, 2023, 07:24 |
|
#3 |
Member
Join Date: Jan 2022
Location: Germany
Posts: 72
Rep Power: 4 |
I would do the calculation only for cells where the gradient isnt 0. That means, including an for loop where this condition is met
|
|
February 20, 2023, 10:00 |
|
#4 |
New Member
libya
Join Date: Aug 2022
Posts: 25
Rep Power: 4 |
thanks so much
|
|
Tags |
interface, interface defining, interface jumping, interfoam |
|
|