|
[Sponsors] |
How to define the DEFINE_UDS_FLUX for transport equation |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
LI MING
Join Date: Apr 2018
Posts: 1
Rep Power: 0 ![]() |
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 |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
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 |