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

define laminar flame speed in thickened flame model

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2019, 06:43
Default define laminar flame speed in thickened flame model
  #1
New Member
 
Haitao Lu
Join Date: Nov 2019
Posts: 1
Rep Power: 0
Haitao Lu is on a distinguished road
Hello, I want to define laminar flame speed in thickened flame model, it can be compiled, but didn't give a correct answer.Could anyone give me some help? thankyou.
Code:
#include "udf.h"
DEFINE_PROPERTY(fl_speed,c,t)
{
	 real s;
	 real x;
	 real y;
	 real xc[ND_ND];
	 Domain *domain;
	 domain=Get_Domain(1);
	 thread_loop_c(t,domain)
  {
	 begin_c_loop_all(c,t)
	  {
	     C_CENTROID(xc,c,t);
		 x=xc[0];
		 y=xc[1];
		 if(x*x+y*y<0.0016)
		 {
			 s=0.4;
		 }else if(x*x+y*y>0.0025)
		 {
			 s=0.4;
		 }else
		 {
			 s=0.35; 
		 }
	    end_c_loop_all(c,t)
        }    
   }
       return s;
}
Haitao Lu is offline   Reply With Quote

Old   November 14, 2019, 15:07
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
"didn't give a correct answer" can mean many different things.
If you can tell what you expected to see, and what you did see, it is much easier to help you.
pakk is offline   Reply With Quote

Reply

Tags
flame speed, thickened flame

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
Calculation of laminar flame speed (fluent) Twinsen FLUENT 2 November 12, 2020 17:57
Eddy formation in laminar flame combustion. Wouated STAR-CCM+ 0 July 16, 2019 05:02
interFoam wave propagation and explosion of Courant number and residuals ChiaraViola OpenFOAM Running, Solving & CFD 1 June 26, 2019 06:36
Overflow Error in Multiphase Modelling with Two Continuous Fluids ashtonJ CFX 6 August 11, 2014 15:32
Laminar Model danillocafaldo CFX 5 August 16, 2010 11:43


All times are GMT -4. The time now is 16:28.