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

cantera 2.0.1 and OpenFOAM-1.7.1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 11, 2013, 14:17
Default cantera 2.0.1 and OpenFOAM-1.7.1
  #1
Senior Member
 
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 16
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.
Code:
Cantera::vector_fp Ymol;
Cantera::IdealGasMix g;
Then in each cell, I perform a step:
Code:
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

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
SpalartAllmaras wall function in OpenFOAM 2.0.1 moser_r OpenFOAM Running, Solving & CFD 4 September 18, 2013 18: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 19:07


All times are GMT -4. The time now is 10:05.