|
[Sponsors] |
September 8, 2014, 11:12 |
solve an implicit equation in UDF
|
#1 |
Member
Join Date: Jul 2014
Location: Portugal
Posts: 36
Rep Power: 12 |
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! |
|
|
|
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 |