[1D] Update samples to use YAML output instead of XML

This commit is contained in:
Ray Speth
2021-10-06 12:50:53 -04:00
committed by Ingmar Schoegl
parent e9e173f5e4
commit d98ea6ff8e
4 changed files with 6 additions and 6 deletions

View File

@@ -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);

View File

@@ -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.
%

View File

@@ -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);

View File

@@ -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);