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

UDF with differential equations

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By `e`

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 9, 2018, 13:43
Question UDF with differential equations
  #1
New Member
 
Edwin P
Join Date: Jun 2018
Posts: 13
Rep Power: 7
intied is on a distinguished road
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
intied is offline   Reply With Quote

 

Tags
differential equation, fluent, source terms, udf


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
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


All times are GMT -4. The time now is 10:56.