|
[Sponsors] |
June 9, 2018, 13:43 |
UDF with differential equations
|
#1 |
New Member
Edwin P
Join Date: Jun 2018
Posts: 13
Rep Power: 7 |
Hi.
I am computing a source term of the energy equation in ANSYS Fluent. How to add a system of differential equations in a UDF? Each differential equation depends on time and temperature. In particular, I want to solve a set of differential equations based on the Arrhenious equation: dx1/dt=k1*exp(k2/(R*T)), dx2/dt=k3*exp(k4/R*T), where k1,k2,k3,k4 and R are constants. Thus, my source term is (dx1/dt+dx2/dt)*k5. I know that I could use DEFINE_SOURCE(name,c,t,dS,eqn). Any suggestion? Regards |
|
Tags |
differential equation, fluent, source terms, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to extract Differential Equations Matrix Coeff | srodrb | OpenFOAM Programming & Development | 7 | August 13, 2022 04:51 |
udf for one dimensional linear motion based on force | maccheese | Fluent UDF and Scheme Programming | 2 | September 1, 2019 02:18 |
Save output of udf in another udf! | JuanJoMex | FLUENT | 0 | February 8, 2018 12:43 |
UDF Compilation Error - Loading Library - COMMON Problem! Help! | robtheslob | Fluent UDF and Scheme Programming | 8 | July 24, 2015 00:53 |
UDF in Differential form | Chin Fook | Fluent UDF and Scheme Programming | 10 | July 27, 2012 13:48 |