CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

calling Janaf coeff

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 13, 2012, 15:20
Post calling Janaf coeff
  #1
New Member
 
sebastien vilfayeau
Join Date: Feb 2012
Posts: 11
Rep Power: 5
sebastien_F1 is on a distinguished road
Hi,

I'm working on fireFoam, OpenFoam and I try to implement a new model. For this model, I need to have access to polynomial Janaf coefficients defined in "constant/thermo.compressibleGas".

My solution was to use a dynamic cast inside my code as follows :

const specieThermo<janafThermo<perfectGas> >& janaf_
(
dynamic_const<const specieThermo<janafThermo<perfectGas> >&>(thermo_)
);

And after to call those coefficients with member functions in janafthermo, which are lowCpcoeffs and highCpcoeff.

For example : janaf_.lowCpcoeffs()

When I compile my code, I have no errors, but when I run the code I have a bas cast error ( std::bad_cast)

I don't know how to solve this problem,. If you have any idea you're welcomed.

thanks
sebastien
sebastien_F1 is offline   Reply With Quote

Reply

Tags
janafthermo, openfoam, polynomial, thermo

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newer Janaf Model iyer.arvind OpenFOAM 38 May 14, 2015 07:13
absorption coeff. for radiation yugo_wen STAR-CCM+ 0 June 1, 2010 10:25
Low temp. (~ 300 K) turb. jet & JANAF problems bart_weisser OpenFOAM Running, Solving & CFD 0 February 11, 2010 19:50
Material properties:absoption and scattering coeff Novice FLUENT 0 December 4, 2008 03:21
JANAF tangd OpenFOAM Running, Solving & CFD 12 July 26, 2006 04:26


All times are GMT -4. The time now is 11:57.