CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

cantera 2.0.1 and OpenFOAM-1.7.1

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

LinkBack Thread Tools Display Modes
Old   February 11, 2013, 14:17
Default cantera 2.0.1 and OpenFOAM-1.7.1
Senior Member
Join Date: Sep 2010
Location: Maryland, United States
Posts: 104
Rep Power: 9
adhiraj is on a distinguished road
Hi all,
I am trying to use cantera 2.0.1 with OpenFOAM 1.7.1 for equilibrium calculations.
I created a model that has a cantera IdealGasMix as a member.
Cantera::vector_fp Ymol;
Cantera::IdealGasMix g;
Then in each cell, I perform a step:
g.setState_TPY(T[ignCell], p[ignCell], DATA_PTR(Ymol));
equilibrate(g, "HP");
The code compiles properly, but the issue is that cantera tries to overwrite some memory location during the process, so that later when I try to solve the transport equation for the species mass fractions in OpenFOAM, I get a memory error.
Any help will be appreciated, thanks.
adhiraj is offline   Reply With Quote


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
SpalartAllmaras wall function in OpenFOAM 2.0.1 moser_r OpenFOAM Running, Solving & CFD 4 September 18, 2013 17:37
OpenFOAM 1.7.1. using openmpi on Ubuntu 12.04 dasMopo OpenFOAM Installation 5 February 17, 2013 11:14
OpenFoam 1.7.1 on Fedora 12 Help... Alphax OpenFOAM Installation 7 November 2, 2012 15:33
linearUpwind scheme in OpenFOAM 2.0.1 ??? cabul OpenFOAM 8 November 9, 2011 07:57
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07

All times are GMT -4. The time now is 21:07.