How to run Cantera with Matlab

조회 수: 61 (최근 30일)
Jordan Ruffner
Jordan Ruffner 2020년 1월 24일
댓글: Walter Roberson 2020년 1월 27일
Hello,
I am trying to use Cantera with Matlab to solve a chemical recation problem. However, I can't get the Cantera examples to work in matlab.
Such as,
clear;
clc;
help equil;
if nargin == 1
gas = g;
else
gas = IdealGasMix('gri30.cti');
end
nsp = nSpecies(gas);
phi = [];
Matlab gives me an error when i try to use IdealGasMix('gri30.cti'). I've added the Cantera toolbox to the subfolders and followed the installation instructions on the Cantera website but can't seem to solve this issue.
Any advice?
  댓글 수: 6
Jordan Ruffner
Jordan Ruffner 2020년 1월 27일
Do you know how I can go about mapping it correctly so it can find Cantera?
Walter Roberson
Walter Roberson 2020년 1월 27일
https://www.mathworks.com/matlabcentral/fileexchange/62703-py_addpath-directory-matlab_too

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Chemistry에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by