|
[Sponsors] |
Access Cp in reactingFoam for An specific Specie |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 16, 2017, 16:01 |
Access Cp in reactingFoam for An specific Specie
|
#1 |
New Member
Ali Khodadadi
Join Date: Feb 2014
Posts: 3
Rep Power: 12 |
Hi Foamers
I am a bit confused with using this codes for accessing Cp. In createFields: PtrList<volScalarField>& cpi = Y; forAll( cpi, rowI){ cpi[rowI].setSize(mesh.cells().size(), 0); } In YEqn.H: forAll(T, cellI) { forAll(Y, specieI) { cpi[specieI][cellI] = composition.Cp(specieI,p[cellI],T[cellI]); } } They work well for accessing cp but the whole code crash. I cant understand what is the problem. If i add these codes to my solver without any other changes for using Cp inside the code, my solver crash. Is this function changing something else?? Thank you |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
Simulation of a single bubble with a VOF-method | Suzzn | CFX | 21 | January 29, 2018 01:58 |
Error in reactingFoam | okstatecheme | OpenFOAM Running, Solving & CFD | 5 | January 14, 2015 09:26 |
Fan flow simulation in open air | idiroft | CFX | 5 | June 10, 2014 08:34 |
Two-Phase Buoyant Flow Issue | Miguel Baritto | CFX | 4 | August 31, 2006 13:02 |