CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Can FLUENT solve our own defined equation

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 22, 2003, 09:11
Default 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.
  Reply With Quote

Old   April 22, 2003, 10:24
Default 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
  Reply With Quote

Old   April 22, 2003, 11:24
Default 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

  Reply With Quote

Old   April 22, 2003, 15:20
Default 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
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 20:16
how solve a scalar equation with Fluent tomik FLUENT 0 January 5, 2006 06: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


All times are GMT -4. The time now is 07:46.