|
[Sponsors] |
September 25, 2014, 14:47 |
what is 'useReactionRate' in reactingFoam ??
|
#1 |
New Member
Harshad Lalit
Join Date: May 2013
Posts: 26
Rep Power: 12 |
Hello all,
I am still a newbie with OpenFoam. I want to know what does the boolean statement useReactionRate TRUE achieve when using the reactingFoam solver ?? Any help would be greatly appreciated. Thanks! |
|
September 28, 2014, 14:38 |
|
#2 |
New Member
Harshad Lalit
Join Date: May 2013
Posts: 26
Rep Power: 12 |
Anyone who can help?
|
|
September 30, 2014, 03:44 |
|
#3 |
Senior Member
|
Hi,
Assuming that you mean useReactionRate in PaSRCoeffs dictionary in constant/combustionProperties file (though it was non-trivial to figure this out), it has no direct connection with reactingFoam but it's a property of combustoin model. If you go to src/combustionModels/PaSR and look as PaSR.C, you'll find there: Code:
template<class Type> void Foam::combustionModels::PaSR<Type>::correct() { if (this->active()) { ... if (!useReactionRate_) { this->chemistryPtr_->solve(t - dt, dt); } else { this->chemistryPtr_->calculate(); } ... } Code:
// Chemistry solution //- Calculates the reaction rates virtual void calculate() = 0; //- Solve the reaction system for the given start time and // timestep and return the characteristic time virtual scalar solve(const scalar t0, const scalar deltaT) = 0; |
|
March 18, 2015, 10:10 |
How to know the detail of the models and parameters? in reactingFoam
|
#4 | |
Member
Howar
Join Date: Mar 2015
Posts: 53
Rep Power: 11 |
Quote:
|
||
February 27, 2016, 11:05 |
reply
|
#5 |
Member
amin jalalian
Join Date: Mar 2014
Posts: 34
Rep Power: 12 |
Hi
the "useReactionRate" has been removed in OF301. It is not in src's files or other folder's, but it is in some tutorial files which is not true and their programmers forgot to remove that phrase from tutorials. regards. |
|
May 7, 2016, 04:39 |
|
#6 | |
Member
amin jalalian
Join Date: Mar 2014
Posts: 34
Rep Power: 12 |
Quote:
better: Hi the "useReactionRate" in has been removed in OF301. It is not in src's files or other folder's, but it is still in 3 tutorial files (file: combustionProperties) which is not right and it seems its programmers forgot to remove "useReactionRate" from tutorials. regards. |
||
June 2, 2016, 11:27 |
|
#7 | |
New Member
Mr.liu
Join Date: Sep 2012
Posts: 27
Rep Power: 13 |
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") RR = 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 |
calculate flame speed using reactingFoam | IColin | OpenFOAM Running, Solving & CFD | 0 | February 4, 2014 15:14 |
reactingFoam crashing | rishibigghe | OpenFOAM Running, Solving & CFD | 0 | June 14, 2011 17:50 |
Constant Volume Combustion with reactingFoam | Alish1984 | OpenFOAM Running, Solving & CFD | 2 | May 8, 2011 08:51 |
reactingFoam wedge handling wrong U | dhondupant | OpenFOAM Bugs | 1 | December 9, 2010 07:34 |
reactingFoam - turbulent reacting flow | hamburgFoam | OpenFOAM | 0 | December 7, 2009 12:57 |