diff --git a/samples/python/onedim/adiabatic_flame.py b/samples/python/onedim/adiabatic_flame.py index 9e0c6bde38..f9363f6769 100644 --- a/samples/python/onedim/adiabatic_flame.py +++ b/samples/python/onedim/adiabatic_flame.py @@ -52,4 +52,4 @@ f.save(output, name="multi", description="solution with multicomponent transport") # write the velocity, temperature, density, and mole fractions to a CSV file -f.save('adiabatic_flame.csv', basis="mole") +f.save('adiabatic_flame.csv', basis="mole", overwrite=True) diff --git a/samples/python/onedim/burner_flame.py b/samples/python/onedim/burner_flame.py index 4d36ae5f5d..f59f8023c0 100644 --- a/samples/python/onedim/burner_flame.py +++ b/samples/python/onedim/burner_flame.py @@ -40,4 +40,4 @@ f.show() f.save(output, name="multi", description="solution with multicomponent transport") -f.save('burner_flame.csv.csv', basis="mole") +f.save('burner_flame.csv', basis="mole", overwrite=True) diff --git a/samples/python/onedim/diffusion_flame.py b/samples/python/onedim/diffusion_flame.py index f0d5f607cf..7b16ad12be 100644 --- a/samples/python/onedim/diffusion_flame.py +++ b/samples/python/onedim/diffusion_flame.py @@ -64,7 +64,7 @@ f.save(output) # write the velocity, temperature, and mole fractions to a CSV file -f.save('diffusion_flame.csv', basis="mole") +f.save('diffusion_flame.csv', basis="mole", overwrite=True) f.show_stats(0) diff --git a/samples/python/onedim/flame_fixed_T.py b/samples/python/onedim/flame_fixed_T.py index cb473914d4..8b4ca858f7 100644 --- a/samples/python/onedim/flame_fixed_T.py +++ b/samples/python/onedim/flame_fixed_T.py @@ -78,5 +78,5 @@ f.save(output, name="multi", description="solution with multicomponent transport") # write the velocity, temperature, density, and mole fractions to a CSV file -f.save('flame_fixed_T.csv', basis="mole") +f.save('flame_fixed_T.csv', basis="mole", overwrite=True) f.show_stats() diff --git a/samples/python/onedim/flame_initial_guess.py b/samples/python/onedim/flame_initial_guess.py index 00abca337a..4414a6f354 100644 --- a/samples/python/onedim/flame_initial_guess.py +++ b/samples/python/onedim/flame_initial_guess.py @@ -59,7 +59,7 @@ def describe(flame): print("Save CSV") csv_filepath = output_path / "flame.csv" -f.save(csv_filepath, basis="mole") +f.save(csv_filepath, basis="mole", overwrite=True) if "native" in ct.hdf_support(): # HDF is not a required dependency diff --git a/samples/python/onedim/premixed_counterflow_flame.py b/samples/python/onedim/premixed_counterflow_flame.py index 7d11d0fc05..7d3f7f06fc 100644 --- a/samples/python/onedim/premixed_counterflow_flame.py +++ b/samples/python/onedim/premixed_counterflow_flame.py @@ -53,6 +53,6 @@ sim.save(output, name="mix", description="solution with mixture-averaged transport") # write the velocity, temperature, and mole fractions to a CSV file -sim.save("premixed_counterflow_flame.csv", basis="mole") +sim.save("premixed_counterflow_flame.csv", basis="mole", overwrite=True) sim.show_stats() sim.show() diff --git a/samples/python/onedim/premixed_counterflow_twin_flame.py b/samples/python/onedim/premixed_counterflow_twin_flame.py index 61cf7f4676..fa98d32873 100644 --- a/samples/python/onedim/premixed_counterflow_twin_flame.py +++ b/samples/python/onedim/premixed_counterflow_twin_flame.py @@ -127,7 +127,7 @@ def solveOpposedFlame(oppFlame, massFlux=0.12, loglevel=1, print(f"Peak temperature: {T:.1f} K") print(f"Strain Rate: {K:.1f} 1/s") print(f"Consumption Speed: {Sc * 100:.2f} cm/s") -oppFlame.save("premixed_counterflow_twin_flame.csv", basis="mole") +oppFlame.save("premixed_counterflow_twin_flame.csv", basis="mole", overwrite=True) # Generate plots to see results, if user desires if '--plot' in sys.argv: diff --git a/samples/python/onedim/stagnation_flame.py b/samples/python/onedim/stagnation_flame.py index cf71c433b7..2086cd7fd4 100644 --- a/samples/python/onedim/stagnation_flame.py +++ b/samples/python/onedim/stagnation_flame.py @@ -85,6 +85,6 @@ sim.save(output, name=f"mdot-{m}", description=f"mdot = {md} kg/m2/s") # write the velocity, temperature, and mole fractions to a CSV file - sim.save(output_path / f"stagnation_flame_{m}.csv", basis="mole") + sim.save(output_path / f"stagnation_flame_{m}.csv", basis="mole", overwrite=True) sim.show_stats() diff --git a/samples/python/surface_chemistry/catalytic_combustion.py b/samples/python/surface_chemistry/catalytic_combustion.py index b0ee6def80..58b68840d1 100644 --- a/samples/python/surface_chemistry/catalytic_combustion.py +++ b/samples/python/surface_chemistry/catalytic_combustion.py @@ -117,6 +117,6 @@ sim.save(filename, "soln1", description="catalytic combustion example") # save selected solution components in a CSV file for plotting in Excel or MATLAB. -sim.save('catalytic_combustion.csv', basis="mole") +sim.save('catalytic_combustion.csv', basis="mole", overwrite=True) sim.show_stats(0)