'cleanup' previously only deleted ThermoPhase, Kinetics, Transport, Domain1D, Sim1D, and XML_Node objects, while missing all objects associated with reactor networks (Reactor, ReactorNet, FlowDevice, Wall), MultiPhase, Func1, and reaction paths (ReactionPathBuilder, ReactionPathDiagram). Fixes #251.
13 lines
284 B
Matlab
13 lines
284 B
Matlab
function test_suite = testImport
|
|
initTestSuite;
|
|
|
|
function testImportXML
|
|
gas = importPhase('gri30.xml', 'gri30_mix');
|
|
dkm = mixDiffCoeffs(gas);
|
|
assertEqual(length(dkm), nSpecies(gas))
|
|
|
|
function testImportCTI
|
|
gas = importPhase('h2o2.cti');
|
|
assertEqual(temperature(gas), 300)
|
|
|
|
cleanup()
|