|
[Sponsors] |
Adding a new member function to SingleStepCombustion |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 15, 2013, 04:37 |
Adding a new member function to SingleStepCombustion
|
#1 |
New Member
Tatu Pinomaa
Join Date: Oct 2012
Location: Finland
Posts: 16
Rep Power: 14 |
Hi!
I'm trying to add a new method to singleStepCombustion. The goal is to output reaction rate matrix for a specie transport equation, where the solved field is rho*Yi, instead of bare Yi (mass fraction of specie i). This is done for a modified rhoCentralFoam to handle specie transport. I thought this could be done by simply implementing the member function in singleStepCombustion.C as follows: Code:
template<class CombThermoType, class ThermoType> Foam::tmp<Foam::fvScalarMatrix> singleStepCombustion<CombThermoType, ThermoType>::Rrho ( const volScalarField& Y, const volScalarField& rhoY ) const { const label specieI = this->thermo_->composition().species()[Y.name()]; const volScalarField wSpecie ( wFuel_*singleMixture_.specieStoichCoeffs()[specieI] ); return wSpecie + fvm::Sp(0.0*wSpecie, rhoY); } Code:
virtual tmp<fvScalarMatrix> Rrho(const volScalarField& Y, const volScalarField& rhoY) const; Code:
virtual tmp<fvScalarMatrix> Rrho(const volScalarField& Y, const volScalarField& rhoY) const = 0; Code:
YEqn.H: In function ‘int main(int, char**)’: YEqn.H:73:30: error: ‘class Foam::combustionModels::psiCombustionModel’ has no member named ‘Rrho’ Tatu |
|
January 9, 2014, 00:54 |
|
#2 |
Member
Thamali
Join Date: Jul 2013
Posts: 67
Rep Power: 13 |
Hi tatu,
Did you solve your problem,although it is a long time to keep a problem? If so I have a question for you. Thanks. Thamali |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 10:56 |
issue compiling new turbulence model | perplexed user | OpenFOAM Programming & Development | 1 | January 13, 2012 04:40 |
LiencubiclowRemodel | nzy102 | OpenFOAM Bugs | 14 | January 10, 2012 09:53 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |
[OpenFOAM] LibvtkFoamso | fred | ParaView | 2 | November 18, 2005 20:01 |