How to use discritized equations while writing a UDF

  • 18 Views
  • Last Post 25 February 2019
gunjanauti posted this 23 February 2019

I want to write a code for following equations:

In these equations how can I access alpha(i,j) and Delta x and Delta y ?

Order By: Standard | Newest | Votes
abenhadj posted this 24 February 2019

What is Alpha?

Best regards,

Amine

gunjanauti posted this 25 February 2019

alpha is volume fraction of the cell. 

 

 

abenhadj posted this 25 February 2019

And what do you want to achieve?

Best regards,

Amine

gunjanauti posted this 25 February 2019

This is just a part of the algorithm, it is used to develop an interface between two phases. The one Ansys uses (Youngs algorithm) is creating garbage values for some cases when the interface is complex (turbulent flows). Theoretically the algorithm I'm working on should be able to solve this problem, but unfortunately I'm not able to code for this in a UDF. I can code this if I develop the whole model myself but it'll take much longer and Ansys already provides a pretty accurate method to solve the remaining problem. 

 

Thank you, 

Gunjan

Close