|
[Sponsors] |
Why the fuel consumption rate is assigned with the equality operator? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Join Date: Dec 2015
Posts: 24
Rep Power: 9 ![]() |
I noticed that in the combustion models inheriting from
Code:
singleStepCombustion Code:
wFuel_ Does anybody know why? For example, in infinitelyFastChemistry.C (https://develop.openfoam.com/Develop...hemistry.C#L67) we have: Code:
template<class ReactionThermo, class ThermoType> void infinitelyFastChemistry<ReactionThermo, ThermoType>::correct() { this->wFuel_ == dimensionedScalar(dimMass/dimVolume/dimTime, Zero); if (this->active()) { this->singleMixturePtr_->fresCorrect(); const label fuelI = this->singleMixturePtr_->fuelIndex(); const volScalarField& YFuel = this->thermo().composition().Y()[fuelI]; const dimensionedScalar s = this->singleMixturePtr_->s(); if (this->thermo().composition().contains("O2")) { const volScalarField& YO2 = this->thermo().composition().Y("O2"); this->wFuel_ == this->rho()/(this->mesh().time().deltaT()*C_) *min(YFuel, YO2/s.value()); } } } |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Join Date: Aug 2017
Location: Algeria
Posts: 90
Rep Power: 8 ![]() |
take a look at this post:
Difference between = and ==
__________________
"When in doubt, use brute force." -- Ken Thompson |
|
![]() |
![]() |
![]() |
Tags |
combustion, operator |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[openSmoke] libOpenSMOKE | Tobi | OpenFOAM Community Contributions | 562 | January 25, 2023 09:21 |
Firefoam fuel consumption rate? | c_dowd | OpenFOAM Programming & Development | 2 | June 6, 2018 17:14 |
burning of solid fuel | lizihujx | FLUENT | 8 | September 19, 2012 08:50 |
How to calculate phase flow rate? | sangramroy | FLUENT | 0 | January 11, 2012 13:02 |
fuel composition and pyrolysis rate settting | willy | CFX | 0 | March 13, 2004 01:27 |