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

How to define the DEFINE_UDS_FLUX for transport equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 21, 2018, 04:03
Default How to define the DEFINE_UDS_FLUX for transport equation
  #1
New Member
 
LI MING
Join Date: Apr 2018
Posts: 1
Rep Power: 0
mingllove is on a distinguished road
Problem:
Pipe flow driven by pressure input;
Governing Equations including Navier-Stokes, Possion-Nernst-Plank (transport equation);
Using UDS to code Possion-Nernst-Plank (transport equation);
The strategy is included in figure.

About the Code:
“uds-flux.c”
# include “udf.h”
# include “sg.h”
• DEFINE_UDS_FLUX(UDS0_FLUX,f,t,i){…}
• DEFINE_UDS_FLUX(UDS1_FLUX,f,t,i){…}
• DEFINE_SOURCE(POSSION_SOURCE,c,t,dS,eqn){…}
• DEFINE_UDS_UNSTEADY(uds0_unsteady,c,t,i,apu,su){…}
• DEFINE_UDS_UNSTEADY(uds0_unsteady,c,t,i,apu,su){…}
The problems are how to code the DEFINE_UDS_FLUX. Is there any example or tutorial?

Can anybody help me to define a UDF for it?
Thanks
Attached Images
File Type: png problem.png (35.6 KB, 28 views)
mingllove 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
Hydrogen storage by metal hydride longbk FLUENT 12 August 1, 2023 20:13
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
Define velocity profile in fully develpoed region to solve energy equation haghgoo_reza OpenFOAM Programming & Development 0 September 22, 2013 20:19
UDF carbon conversion papteo Fluent UDF and Scheme Programming 1 August 18, 2011 07:32
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24


All times are GMT -4. The time now is 03:59.