|
[Sponsors] |
January 7, 2014, 09:49 |
field function for reaction rate
|
#1 |
New Member
Deutschland
Join Date: Jan 2014
Posts: 2
Rep Power: 0 |
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. |
|
January 7, 2014, 18:20 |
|
#2 |
New Member
Deutschland
Join Date: Jan 2014
Posts: 2
Rep Power: 0 |
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. |
|
February 12, 2015, 12:33 |
Field Function for reaction rate
|
#3 |
New Member
Tom
Join Date: Mar 2014
Posts: 2
Rep Power: 0 |
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. |
|
June 3, 2016, 04:29 |
|
#4 | |
New Member
Mr.liu
Join Date: Sep 2012
Posts: 27
Rep Power: 14 |
Quote:
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. |
||
|
|
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 |