How to calculate the flux of this term grad(alpha1)*alphaf*U?
Hi Foamers,
I am working on a modified solver based on interFoam, having problem to calculate the flux of the following term (in modified VOF method): https://66.media.tumblr.com/09e03f7c...ssaho1_250.png where alpha1 is the liquid phase volume fraction, alphaf the fluid volume fraction, and U the fluid velocity. The term alphaf is introduced because there is a third phase: solid. To calculate the flux of this term, I tried the following code: Code:
volVectorField afGrada1("afGrada1", alphaf*fvc::grad(alpha1)); Code:
alphaEqn.H: In function ‘int main(int, char**)’: Thanks in advance. |
Code:
U*afGrada1 The inner product of that volTensorField with mesh.Sf()should produce a vector field not a scalar field. |
Quote:
I was not aware of this problem. I tried the following code (no compile error) Code:
volVectorField afGrada1("afGrada1", a1af*fvc::grad(alpha1)); Code:
LHS and RHS of + have different dimensions |
All times are GMT -4. The time now is 14:50. |