Accessing Themo Data on a Boundary Patch
Hello
Simple-ish question, this. I'm writing a boundary condition for reactingFoam. Typically, when I want to get values on said boundary, I do something like this, Code:
const fvPatchField<scalar>& p = patch().lookupPatchField<volScalarField, scalar>("p"); I can't seem use this method to get the specific heat, Cp. If I try I get the error, Code:
--> FOAM FATAL ERROR: Does anyone know how can I get Cp (and by extension other thermophysical data) on a boundary patch in this sort of context? Many thanks in advance |
Bump. Still none the wiser. Anyone? Is this even possible? How about getting thermophysical values in the cells adjacent to the boundary?
|
I think Cp is one of those that needs to be calculated from your mixture. You might need to do something like this (this is rough pseudocode ).
Code:
fvPatchField<scalarField> Cp = 0; |
Hello
I know this is an old post. Just in case.. I guess you need to add 'Cp' as a volScalarField in createFields.H file and update it every iteration. Hope this helps. |
All times are GMT -4. The time now is 13:54. |