# Can FLUENT solve our own defined equation

 Register Blogs Members List Search Today's Posts Mark Forums Read

 April 22, 2003, 09:11 Can FLUENT solve our own defined equation #1 Sebeci 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 ap Guest   Posts: n/a In FLUENT you can solve scalar user-defined equation which can be implemented via UDS. You can disable pre-defined 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 Sebeci 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 ap 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 Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post opehterinar81 FLUENT 0 August 19, 2011 11:55 Anirudh_Deodhar Fluent UDF and Scheme Programming 0 February 16, 2011 21:16 tomik FLUENT 0 January 5, 2006 07:38 lily FLUENT 1 April 10, 2004 18:31 Whitaker FLUENT 3 October 23, 2000 03:01

All times are GMT -4. The time now is 03:22.