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

List of chemical species from a boundary condition

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By zhangyan
  • 1 Post By zhangyan
  • 1 Post By zhangyan
  • 1 Post By Benben

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   August 30, 2018, 07:06
Unhappy List of chemical species from a boundary condition
  #1
Member
 
benoit favier
Join Date: Jun 2017
Posts: 64
Rep Power: 8
Benben is on a distinguished road
Hello,

I am coding a new boundary condition in OpenFoam 6. This boundary condition is to be used with the "reactingFoam" solver.
I want to acces the list of chemical species defined from this boundary condition.

I can access the mass fraction of a single specie using :
Code:
const Foam::fvPatchField<scalar>& W_N2 = this->patch().lookupPatchField<volScalarField, scalar>("N2");
However, i would like to have access to the complete list of species mass fractions. Just like in the reactingFoam solver :

Code:
const PtrList<volScalarField>& Y = thermo.composition().Y();
This doesnt work as thermo is only defined in the solver's "createFields.H" file.
Is there anyway to get access to it from the boundary condition ?

Last edited by Benben; August 31, 2018 at 05:35.
Benben is offline   Reply With Quote

 


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
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 10:00
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00
External Radiation Boundary Condition (Two sided wall), Grid Interface CFD XUE FLUENT 0 July 8, 2010 06:49
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08


All times are GMT -4. The time now is 00:13.