|
[Sponsors] |
Why the fuel consumption rate is assigned with the equality operator? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 25, 2021, 03:46 |
Why the fuel consumption rate is assigned with the equality operator?
|
#1 |
New Member
Join Date: Dec 2015
Posts: 24
Rep Power: 10 |
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()); } } } |
|
November 25, 2021, 05:26 |
|
#2 |
Member
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 9 |
take a look at this post:
Difference between = and ==
__________________
"When in doubt, use brute force." -- Ken Thompson |
|
Tags |
combustion, operator |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[openSmoke] libOpenSMOKE | Tobi | OpenFOAM Community Contributions | 562 | January 25, 2023 10:21 |
Firefoam fuel consumption rate? | c_dowd | OpenFOAM Programming & Development | 2 | June 6, 2018 18:14 |
burning of solid fuel | lizihujx | FLUENT | 8 | September 19, 2012 09:50 |
How to calculate phase flow rate? | sangramroy | FLUENT | 0 | January 11, 2012 14:02 |
fuel composition and pyrolysis rate settting | willy | CFX | 0 | March 13, 2004 02:27 |