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

Define Diffusion Source

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2019, 16:26
Default Define Diffusion Source
  #1
New Member
 
Ghadeer
Join Date: Feb 2019
Posts: 5
Rep Power: 7
Holagee is on a distinguished road
Hello All,

I am trying to simulate the effect of electric field on methane-air flame. The electric field will induce movements of ions within the flame due to potential difference. Hence, I need to define a new diffusion source called (Ambipolar diffusion) which is computed as follows:



I want to add this diffusion term to the energy equation since the diffused ions carry heat due (as enthalpy), but I need to compute the divergence of the ambipolar diffusion source that I defined in the UDF code. Does anyone know how? or in general an easier way to include this diffusion effect?

I appreciate all the help!

Last edited by Holagee; April 5, 2019 at 00:15.
Holagee is offline   Reply With Quote

Old   April 4, 2019, 22:42
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Ansys Fluent Customization manual

look for user defined scalars

best regards
AlexanderZ is offline   Reply With Quote

Old   April 5, 2019, 01:33
Default
  #3
New Member
 
Ghadeer
Join Date: Feb 2019
Posts: 5
Rep Power: 7
Holagee is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
Ansys Fluent Customization manual

look for user defined scalars

best regards
But how to link this UDS to the energy equation?
Holagee is offline   Reply With Quote

Old   April 5, 2019, 02:06
Default
  #4
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
you may add heat source to cover the effect of your UDS

best regards
AlexanderZ is offline   Reply With Quote

Reply

Tags
ansys, diffusion, fluent, source energy term, udf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 01:22
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 12:41
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 13:59
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


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