Only problem is, I cant find the flamespeed file in my demos. Is it
On 1 Apr., 19:46, Mahdi Salehi <
smehdi...@gmail.com> wrote:
> Hi,
> You need to change the flamespeed.cpp code. All you have to do is to change
> your inlet condition. If you need to change the mass fractions at the inlet:
>
> vector_fp x;
> x.resize(nsp);
> for(int k=0;k<nsp;k++){
> if(k==gas.speciesIndex("CH4")) {x[k]= Y_CH4_init; }
> else if(k==gas.speciesIndex("O2")) {x[k]= Y_O2_init; }
> else if(k==gas.speciesIndex("CO2")){x[k]= Y_CO2_init; }
> else if(k==gas.speciesIndex("H2O")){x[k]= Y_H2O_init; }
> else if(k==gas.speciesIndex("H2")) {x[k]= Y_H2_init; }
> else if(k==gas.speciesIndex("N2")) {x[k]= Y_N2_init; }
> else{ x[k]=0.0; }
> }
> gas.setState_TPY(temp,pressure,DATA_PTR(x));
>
> where for example Y_H2_init is the mass fraction of H2 that you need to
> change.
> Cheers,
>