mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[1D] Update samples to use YAML output instead of XML
This commit is contained in:
committed by
Ingmar Schoegl
parent
e9e173f5e4
commit
d98ea6ff8e
@@ -177,7 +177,7 @@ solve(sim1D, loglevel, refine_grid);
|
||||
sim1D
|
||||
|
||||
% save the solution
|
||||
saveSoln(sim1D,'catcomb.xml','energy',['solution with energy equation']);
|
||||
saveSoln(sim1D,'catcomb.yaml','energy',['solution with energy equation']);
|
||||
|
||||
%%%%%%%%%% show statistics %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
writeStats(sim1D);
|
||||
|
||||
@@ -92,7 +92,7 @@ solve(fl, loglevel, 0);
|
||||
enableEnergy(f);
|
||||
setRefineCriteria(fl, 2, 200.0, 0.1, 0.2);
|
||||
solve(fl, loglevel, refine_grid);
|
||||
saveSoln(fl,'c2h6.xml','energy',['solution with energy equation']);
|
||||
saveSoln(fl,'c2h6.yaml','energy',['solution with energy equation']);
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Show statistics of solution and elapsed time.
|
||||
%
|
||||
|
||||
@@ -72,7 +72,7 @@ setMaxJacAge(fl, max_jacobian_age(1), max_jacobian_age(2));
|
||||
|
||||
% if the starting solution is to be read from a previously-saved
|
||||
% solution, uncomment this line and edit the file name and solution id.
|
||||
%restore(fl,'h2flame2.xml', 'energy')
|
||||
%restore(fl,'h2flame.yaml', 'energy')
|
||||
|
||||
solve(fl, loglevel, refine_grid);
|
||||
|
||||
@@ -86,7 +86,7 @@ solve(fl, loglevel, refine_grid);
|
||||
enableEnergy(f);
|
||||
setRefineCriteria(fl, 2, 200.0, 0.05, 0.1);
|
||||
solve(fl, 1, 1);
|
||||
saveSoln(fl,'h2fl.xml','energy',['solution with energy equation']);
|
||||
saveSoln(fl,'h2flame.yaml','energy',['solution with energy equation']);
|
||||
|
||||
%%%%%%%%%% show statistics %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
writeStats(fl);
|
||||
|
||||
@@ -64,7 +64,7 @@ fl = flame(gas, inlet_o, f, inlet_f);
|
||||
|
||||
% if the starting solution is to be read from a previously-saved
|
||||
% solution, uncomment this line and edit the file name and solution id.
|
||||
%restore(fl,'h2flame2.xml', 'energy')
|
||||
%restore(fl,'c2h6-flame.yaml', 'energy')
|
||||
|
||||
% solve with fixed temperature profile first
|
||||
solve(fl, loglevel, refine_grid);
|
||||
@@ -79,7 +79,7 @@ solve(fl, loglevel, refine_grid);
|
||||
enableEnergy(f);
|
||||
setRefineCriteria(fl, 2, 200.0, 0.1, 0.1);
|
||||
solve(fl, loglevel, refine_grid);
|
||||
saveSoln(fl,'c2h6.xml','energy',['solution with energy equation']);
|
||||
saveSoln(fl,'c2h6-flame.yaml','energy',['solution with energy equation']);
|
||||
|
||||
%%%%%%%%%% show statistics %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
writeStats(fl);
|
||||
|
||||
Reference in New Issue
Block a user