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

How to write UDF to add a source term to the new transport equation ?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 20, 2012, 03:14
Default How to write UDF to add a source term to the new transport equation ?
  #1
New Member
 
IVI
Join Date: Oct 2012
Posts: 14
Rep Power: 4
89566008 is on a distinguished road
please help me to write UDF for this type of source term

S=-d/dx(AZ+B)
where A and B are constant and Z is the new scalar.
89566008 is offline   Reply With Quote

Old   October 22, 2012, 06:31
Default
  #2
Senior Member
 
Mahesh
Join Date: Jun 2009
Posts: 114
Rep Power: 7
mvee is on a distinguished road
Please describe your problem.
Why do want scalar equation and how its source term exist?
How do you couple its solution with NS equation?

Best wishes
Mvee
mvee is offline   Reply With Quote

Old   October 22, 2012, 07:23
Default
  #3
New Member
 
IVI
Join Date: Oct 2012
Posts: 14
Rep Power: 4
89566008 is on a distinguished road
the scalar equation is for ion density in ESP .
the source term is in below form :
S=d/dx(constant1*uds0*grad_uds1+constant2)
uds0 is the current scalar that the source term is for it
and uds1 is the scalar that defined separate
thanks
IVI
89566008 is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to troduce a source term in ICOFOAM solver's equation sawyer86 OpenFOAM Running, Solving & CFD 0 July 20, 2012 11:15
Source term energy equation for reactive flows DaIN Main CFD Forum 0 October 6, 2011 15:11
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 6 April 17, 2010 23:40
Is it possible to use divergence in the source term of an scalar transport equation? jannnesss CFX 0 January 8, 2010 19:53
source term udf tas38 FLUENT 1 August 14, 2009 10:44


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