Can FLUENT solve our own defined equation
Hi all Can FLUENT solve our own equation, with omitting (mass,momentum and energy)and defining new equation by UDS.

Re: Can FLUENT solve our own defined equation
In FLUENT you can solve scalar userdefined equation which can be implemented via UDS.
You can disable predefined equations in the Solve>Controls>Solution panel. I'm not sure if you can completely replace contnuity, momentum and energy equation via UDS. This seems difficult because you'd have to split all vector equations in their scalar components and to consider them as separate UDS. However, you can add terms to these equations by UDF, considering them as sources. This should allow you to obtain the equations you need. Hi and good work. ap 
Re: Can FLUENT solve our own defined equation
Thanks for your reply
As another question, I didn't exactly understand (from FLUENT manual) that the derivatives of source term should be obtained from which variable(s)?If you don't mind please let me know with an example. Regards 
Re: Can FLUENT solve our own defined equation
The derivative term dS of the source term is dS/d(phi), where phi is the scalar you're defining. Suppose you have to define the source:
S = 3*phi+5*sin(phi) you should put dS = 3+5*cos(phi). The DEFINE_SOURCE routine is: DEFINE_SOURCE(Periodic, cell, thread, dS, eqn) { real phi, source; phi = C_UDSI(cell,thread,PHI); /* Reading phi from cell */ source = 3* phi + 5*sin(phi); dS[eqn] = 3 + 5*cos(phi); return source; } Notice that the dS term is used by FLUENT only to stabilize the solution, if needed. However, you can put dS = 0.0, if you don't want to declare the derivative term. This may result in a less stable solution, because you force FLUENT to handle the source term explicitly. P.S. Do you know where I can find some example of UDS applied to multiphase systems? Hi. ap 
All times are GMT 4. The time now is 22:10. 