strange in computation of normal vector
3 Attachment(s)
Dear everyone,
I tried to plot the gradient of alpha.water and normal vector of interface using gradient of alpha.water with interFoam solver. And I found a thing that is quite strange for me as shown in the attached file. Variables are defined as: gradAlpha = fvc::grad(alpha1) nAlphaVec = gradAlpha/(mag(gradAlpha) + epsilon) with epsilon = 1.0e-8 I think that alpha1, gradAlpha and nAlphaVec should have the same contours, however, the contour of nAlphaVec is very different compare to 2 other ones. Could someone help me to explain what is the reason for that. I thank you very much |
the calculation of the surface normal should be confined to a certain alpha, representing the surface for which you wish to obtain the normal. the results you obtain make sense to me (they are not what you want, but you got what you asked for).
|
Quote:
Seen in other way, the value of gradAlpha is seldom truly "machine zero", hence dividing it by a rather small value may produce spurious results. by confining the operator to where it "makes sense", the problems you see may be avoided alltogether. |
Quote:
|
All times are GMT -4. The time now is 12:56. |