CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

field function for reaction rate

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 7, 2014, 09:49
Default field function for reaction rate
  #1
New Member
 
Deutschland
Join Date: Jan 2014
Posts: 2
Rep Power: 0
Mr.Hack is on a distinguished road
Hi,

I am simulating a combustion problem with the standard EBU model. Everything works fine and I am almost done. Now I wanted to plot the reaction rate, but I think there is no field function existing (only the chemistry heat release rate, which is "the sum of reaction rate multiplied by formation enthalpy for each species"). I would like to plot the reaction rate for just one species.

Is there anybody who can help me with this issue?

Maybe it would already help me to see the definition of the "chemistry heat release function", but I do not know, if this is possible?

Thank you in advance for your help.
Mr.Hack is offline   Reply With Quote

Old   January 7, 2014, 18:20
Default
  #2
New Member
 
Deutschland
Join Date: Jan 2014
Posts: 2
Rep Power: 0
Mr.Hack is on a distinguished road
Ok, I hopefully solved it already by my own. I still need to check if the results from my field function are correct.

(By the way; maybe cd-adapco should revise the user guide...)

Best regards...

Last edited by Mr.Hack; January 8, 2014 at 04:38.
Mr.Hack is offline   Reply With Quote

Old   February 12, 2015, 12:33
Default Field Function for reaction rate
  #3
New Member
 
Tom
Join Date: Mar 2014
Posts: 2
Rep Power: 0
TomLboro is on a distinguished road
Hi,

There is a function inbuilt in Star that shows the reaction rate for the reactions that you have set. It is a primitive function but could be a starting point.

It is in the field functions node and would be have the same name as the reaction.
TomLboro is offline   Reply With Quote

Old   June 3, 2016, 04:29
Default
  #4
New Member
 
Mr.liu
Join Date: Sep 2012
Posts: 27
Rep Power: 14
lx882211 is on a distinguished road
Quote:
Originally Posted by Mr.Hack View Post
Ok, I hopefully solved it already by my own. I still need to check if the results from my field function are correct.

(By the way; maybe cd-adapco should revise the user guide...)

Best regards...
I meet a problem in Openfoam 2.3.0, reactingFoam, i need the data of CH4 reaction rate, but i failed to autowrite it like U or Yi.

First i added this code in the CreatField.H,

volScalarField Rrate
(
IOobject
(
"Rrate",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
mesh,
dimensionedScalar("Rrate", dimMass/dimVolume/dimTime, 0.0)
);

Then, i added this code in YEqn,

forAll(Y, i)
{
if (Y[i].name() != "CH4")
Rrate = reaction->R(Yi);
}

After wmake, it shows

YEqn.H:26:14: error: no match for ‘operator=’ (operand types are ‘Foam::volScalarField {aka Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>}’ and ‘Foam::tmp<Foam::fvMatrix<double> >’)
Rrate = reaction->R(Yi);

Can you tell me how to do that? Thank you very much.
lx882211 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
UDF vs Custom field function andrew FLUENT 5 June 24, 2011 11:53
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 07:59
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27
User defined function of mass flow rate Eric FLUENT 1 April 22, 2005 19:15


All times are GMT -4. The time now is 00:25.