
[Sponsors] 
April 22, 2003, 09:11 
Can FLUENT solve our own defined equation

#1 
Guest
Posts: n/a

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


April 22, 2003, 10:24 
Re: Can FLUENT solve our own defined equation

#2 
Guest
Posts: n/a

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 

April 22, 2003, 11:24 
Re: Can FLUENT solve our own defined equation

#3 
Guest
Posts: n/a

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 

April 22, 2003, 15:20 
Re: Can FLUENT solve our own defined equation

#4 
Guest
Posts: n/a

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 

Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
What the differences flow equation of Fluent 6.3 and Fluent 12.1  opehterinar81  FLUENT  0  August 19, 2011 11:55 
Fluent User defined Scalars and UDF  Anirudh_Deodhar  Fluent UDF and Scheme Programming  0  February 16, 2011 21:16 
how solve a scalar equation with Fluent  tomik  FLUENT  0  January 5, 2006 07:38 
Can FLUENT solve our own defined equation?  lily  FLUENT  1  April 10, 2004 18:31 
Can FLUENT solve this type of problem?  Whitaker  FLUENT  3  October 23, 2000 03:01 