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

solve an implicit equation in UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2014, 11:12
Default solve an implicit equation in UDF
  #1
Member
 
Join Date: Jul 2014
Location: Portugal
Posts: 36
Rep Power: 12
Rui_27 is on a distinguished road
Hello everyone,

I would like to set a UDF function to specify a specie mass fraction at a wall of my computation domain using the DEFINE_PROFILE macro.

I use the value of the specie mass fraction at the adjacent cell next to the wall (C in the equation below) to calculate the value of x through:

x = A[(C-xD)/B] exp [E (F-Gx)] (equation 1)

where A,B,C,D,E,F and G are constants.

Then the value of x is used to calculate the specie mass transfer at the wall:

Mass fraction at the wall = f(x) (equation 2)

As you can see, equation 1 is in the implicit form (x cannot be isolated, at least I cannot do it). So how can I solve this implicit equation to obtain the value of x?

Thank you in advanced!
Rui_27 is offline   Reply With Quote

Reply


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
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 07:27
error message cuteapathy CFX 14 March 20, 2012 07:45
Constant velocity of the material Sas CFX 15 July 13, 2010 09:56
Solve Poissons Equation Anil CFX 8 September 25, 2007 13:57
Implicit equation solving Dr B.M. Smith (Smith) OpenFOAM Running, Solving & CFD 2 December 10, 2004 06:36


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