Skip to content

Commit

Permalink
Tutorials/Sconscript/Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ssun30 authored and speth committed May 11, 2023
1 parent 1df1da1 commit c8e024d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
3 changes: 0 additions & 3 deletions interfaces/matlab_experimental/SetCanteraPath.m

This file was deleted.

@@ -1,30 +1,23 @@
function LoadCantera
addpath('Class', 'Utility', 'PresetFlowDevices', 'PresetFunctors', ...
'PresetMixtures', 'PresetReactors', '1D');
if ispc
ctname = 'cantera_shared.dll';
elseif ismac
ctname = 'libcantera_shared.dylib';
elseif isunix
ctname = 'libcantera_shared.so';

else
error('Operating System Not Supported!');
return;
end
if ~libisloaded(ct)
load('Utility/cantera_root.mat');
addpath([cantera_root, '/samples/matlab_new']);
[~,warnings] = loadlibrary([cantera_root '/lib/' ctname], ...
[~,warnings] = loadlibrary([cantera_root '/Lib/' ctname], ...
[cantera_root '/include/cantera/clib/ctmatlab.h'], ...
'includepath', [cantera_root '/include'], ...
'addheader','ct','addheader','ctfunc', ...
'addheader','ctmultiphase','addheader', ...
'ctonedim','addheader','ctreactor', ...
'addheader','ctrpath','addheader','ctsurf', ...
'addheader','ctxml');
example_dir = [cantera_root, '/samples/matlab_new'];
addpath(example_dir);
end
disp('Cantera is ready for use');
end
File renamed without changes.
12 changes: 12 additions & 0 deletions samples/matlab_experimental/test_examples.m
@@ -0,0 +1,12 @@
% runs selected examples without pausing
equil();
isentropic();
reactor1();
reactor2();
surfreactor;
periodic_cstr;
rankine(300.0, 2.0*oneatm, 0.8, 0.7);
prandtl1();
flame1;
catcomb;
exit;

0 comments on commit c8e024d

Please sign in to comment.