CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Access Cp in reactingFoam for An specific Specie

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 16, 2017, 16:01
Default Access Cp in reactingFoam for An specific Specie
  #1
New Member
 
Ali Khodadadi
Join Date: Feb 2014
Posts: 3
Rep Power: 12
ali-group is on a distinguished road
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
ali-group is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 02:59.