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

define source model

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 21, 2006, 06:01
Default define source model
  #1
greg
Guest
 
Posts: n/a
Hi. In define source model we have such statement:

DEFINE_SOURCE(enrg_src, cell, mix_th, dS, eqn)

What is dS and eqn responsible for?

How this affect on energy source (code below)?

DEFINE_SOURCE(enrg_src, cell, mix_th, dS, eqn) { Thread *pri_th, *sec_th; real m_dot; real T_SAT = 100; real lambda1 = 1; real lambda2 = 1; real q = 1000;

pri_th = THREAD_SUB_THREAD(mix_th, 0); sec_th = THREAD_SUB_THREAD(mix_th, 1);

if(C_T(cell, mix_th)>=T_SAT) {

m_dot = -(12* lambda1 * (fabs(C_T(cell,sec_th)-T_SAT)) * 1)/q;

dS[eqn] = -(12* lambda1 * 1)/q;}

else {

m_dot =(12* lambda2 * (fabs(C_T(cell,pri_th)-T_SAT)) * 1)/q;

dS[eqn] = (12* lambdaH2O * 1)/q;}

thank you for help
  Reply With Quote

Old   August 21, 2006, 08:38
Default Re: define source model
  #2
cadaei
Guest
 
Posts: n/a
The dS[eqn] function is used to linearise the source term to make the solution more stable. It doesnt change the final solution, it just guides it in the right direction. You can find a more detailed explanation on the CFD Wiki at http://www.cfd-online.com/Wiki/Sourc..._linearization
  Reply With Quote

Old   August 22, 2006, 08:56
Default Re: define source model
  #3
greg
Guest
 
Posts: n/a
thanks for help

  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
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
How to define a transient species source term? aleisia FLUENT 3 March 7, 2011 23:58
Installing OF 1.6 on Mac OS X gschaider OpenFOAM Installation 140 June 19, 2010 09:23
Compiling gmshFoam with OpenFOAM-1.5 BlGene Open Source Meshers: Gmsh, Netgen, CGNS, ... 10 August 6, 2009 04:26
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


All times are GMT -4. The time now is 14:40.