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

PaSR Combustion Model via UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 12, 2016, 12:57
Default PaSR Combustion Model via UDF
  #1
New Member
 
Join Date: Oct 2016
Posts: 6
Rep Power: 10
RiccardoCFD is on a distinguished road
Good morning,
I'm writing a thesis about spark ignition engines fuelled with natural gas using a partially stratified charge injection strategy. I've spent much time so far trying to use the available combustion models in CONVERGE in order to match some experimental data. The results have been rather disappointing, so I've decided to implement the PaSR combustion model via the definition of a UFD. However, I find it very difficult to manipulate all those *.c files, since there are no enough comments to understand how the variables are defined.

I'll try to explain briefly what I would like to do: (let kk and i be two indices referring respectively to the computational node and to the chemical species)
1) Calculate the turbulent mixing time scale:

tau_mix[kk] = CONST*(mu_eff[kk]/(rho[kk]*epsilon[kk])^0.5

where rho is the fluid density, mu_eff is the global viscosity and epsilon is the turbulent energy dissipation.

2) Calculate the chemical time of the reference limiting species:

1/tau_chem[kk] = max(-omega_dot[i,kk]/Y[i,kk])

where omega_dot and Y are respectively the chemical reaction rate (mol/m3*s) and the molar concentration of species i in the kk-th cell of the computational domain.

3) Calculate the parameter kappa_pasr, defined as follows:

kappa_pasr[kk] = tau_chem[kk]/(tau_chem[kk]+tau_mix[kk])

4) Calculate the effective reaction rate (after understanding how the SAGE model refers to the laminar one):

new_RR[i,kk] = kappa_pasr[kk]*RR[i,kk] (kg/m3*s)

5) Use this new reaction rate in the source term related to combustion in the species transport equation and in the energy equation.

I know that my request is probably to hard to be satisfied, but I wonder if someone can give me some suggestions for the implementation of this UDF.

Last edited by RiccardoCFD; October 12, 2016 at 15:00.
RiccardoCFD is offline   Reply With Quote

Old   October 13, 2016, 11:17
Default
  #2
Member
 
xieshengbai's Avatar
 
Shengbai Xie
Join Date: Aug 2016
Location: Convergent Science, Madison WI
Posts: 68
Rep Power: 10
xieshengbai is on a distinguished road
Hey,

I am sorry that our current combustion models did not serve your purpose well. But I have to say that there are many parameters that you can tune with as well as that the mechanism itself matters.

UDFs are tricky and requires some knowledge of our data structure. So it is hard to tell via this forum. The best way is to send an formal inquiry as well as your case to us at support@convergecfd.com, then we can have some experts working on it in particular.

Thank you.

Quote:
Originally Posted by RiccardoCFD View Post
Good morning,
I'm writing a thesis about spark ignition engines fuelled with natural gas using a partially stratified charge injection strategy. I've spent much time so far trying to use the available combustion models in CONVERGE in order to match some experimental data. The results have been rather disappointing, so I've decided to implement the PaSR combustion model via the definition of a UFD. However, I find it very difficult to manipulate all those *.c files, since there are no enough comments to understand how the variables are defined.

I'll try to explain briefly what I would like to do: (let kk and i be two indices referring respectively to the computational node and to the chemical species)
1) Calculate the turbulent mixing time scale:

tau_mix[kk] = CONST*(mu_eff[kk]/(rho[kk]*epsilon[kk])^0.5

where rho is the fluid density, mu_eff is the global viscosity and epsilon is the turbulent energy dissipation.

2) Calculate the chemical time of the reference limiting species:

1/tau_chem[kk] = max(-omega_dot[i,kk]/Y[i,kk])

where omega_dot and Y are respectively the chemical reaction rate (mol/m3*s) and the molar concentration of species i in the kk-th cell of the computational domain.

3) Calculate the parameter kappa_pasr, defined as follows:

kappa_pasr[kk] = tau_chem[kk]/(tau_chem[kk]+tau_mix[kk])

4) Calculate the effective reaction rate (after understanding how the SAGE model refers to the laminar one):

new_RR[i,kk] = kappa_pasr[kk]*RR[i,kk] (kg/m3*s)

5) Use this new reaction rate in the source term related to combustion in the species transport equation and in the energy equation.

I know that my request is probably to hard to be satisfied, but I wonder if someone can give me some suggestions for the implementation of this UDF.
xieshengbai is offline   Reply With Quote

Reply


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
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 07:20
UDF for linear PTT model implementation dpitz Fluent UDF and Scheme Programming 1 February 4, 2011 11:08
The problem of UDF in Non premixed combustion model zhangyuan Main CFD Forum 0 May 25, 2009 10:41
LES and combustion model Margherita Cadorin CFX 0 October 29, 2008 06:24
can alternate combustion model by UDF? Han Xingsi FLUENT 0 September 1, 2008 03:08


All times are GMT -4. The time now is 21:39.