surface tension as function of normal gradient
I am looking to use a UDF to assign surface tension as a function of the normal gradient of a user defined scalar at a transient fluid-gas interface. I am having difficulty identifying the normal gradient at the interface. Does anyone know how to identify the normal gradient of a scalar at an interface in VOF? Also, when you hook a UDF for surface tension, does Fluent automatically locate the interface and apply it there?
I know this was 8 years ago, but did you find a solution? I am encountering the same problem at this time.
You can get the gradient with "C_UDSI_G(c,t,i)".
You can get the face normal using "F_AREA(A,f,t)"; A/|A| is the normal.
Take the inner product between them and you have the normal gradient at the wall.
So altogether it would look something like this:
For me, surface tension is something that comes out of a calculation, and not something I assign, so I don't know if and how you can hook this to the solver.
The above code was only written and not tested, so it is possible there are some typo's or other mistakes.
|All times are GMT -4. The time now is 01:04.|