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

Adding a constitutive differential equation via an UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 2, 2024, 07:35
Smile Adding a constitutive differential equation via an UDF
  #1
New Member
 
Join Date: Jan 2024
Posts: 1
Rep Power: 0
tinobambino is on a distinguished road
Hello everyone


I want to model a special kind of diffusion with Ansys Fluent where one of the governing differential equations has a structure which is not very common, hence I can't use any of the provided model's equations as a surrogate.


The equation looks as follows:

\frac{\partial m_{11}}{\partial t} = \frac{J_s}{\rho(1-c)} \frac{\partial m_{11}}{\partial x} - m_{11}\frac{\partial}{\partial x}(\frac{J_s}{\rho(1-c)}) - K_1(K_2 m_{11}-1)

m_11 is the governing variable with it's time evolution playing a crucial part in the model. J_s is the diffusion flux, which will be model via the dilute approximation (hopefully) regarding species transport. Additionally, m_11 is included in one of the other equations, for completeness sake here they are:

J_s = -\rho D(\frac{\partial c}{\partial x} + \Gamma\frac{\partial m_{11}}{\partial x})

and

\rho\frac{\partial c}{\partial t} = -\frac{\partial J_s}{\partial x}

My question is the following: Can I implement a non-linear partial differential equation via an UDF with one of the inputs, J_s, being the diffusion flux calculated by Fluent via the dilute approximation?


Thanks in advance,
bambino
tinobambino is offline   Reply With Quote

Reply

Tags
differential equations, diffusion, udf and programming


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
chtMultiRegionFoam solver stops without any error amol_patel OpenFOAM Running, Solving & CFD 4 July 5, 2024 02:41
FOAM FATAL ERROR: Cannot find file "points" in directory "shell/polyMesh" amol_patel OpenFOAM Pre-Processing 22 October 29, 2021 14:34
UDF code help solve reaction rate equation palm oil zirkov Fluent UDF and Scheme Programming 0 February 13, 2017 11:34
write code UDF Fluent solve kinetic reaction rate equation palm oil zirkov FLUENT 0 February 13, 2017 11:16
adding Au (A is a constant) term to the momentum equation via udf shahri20 FLUENT 0 November 29, 2011 06:03


All times are GMT -4. The time now is 08:41.