Skip to content

Commit

Permalink
Clean up:
Browse files Browse the repository at this point in the history
- add #12 as issue number
- increase figure resolution
  • Loading branch information
simopier committed Oct 23, 2024
1 parent b2cf7ba commit cdd5c5f
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 146 deletions.
132 changes: 0 additions & 132 deletions doc/content/verification_and_validation/ver-1jb_new.md

This file was deleted.

2 changes: 1 addition & 1 deletion test/tests/val-2b/comparison_val-2b.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ def numerical_solution_on_experiment_input(experiment_input, tmap_input, tmap_ou
RMSPE = RMSE*100/np.mean(expt_flux)
ax.text(870,3e16, 'RMSPE = %.2f '%RMSPE+'%',fontweight='bold')
ax.minorticks_on()
plt.savefig('val-2b_comparison.png', bbox_inches='tight')
plt.savefig('val-2b_comparison.png', bbox_inches='tight', dpi=300)
plt.close(fig)
2 changes: 1 addition & 1 deletion test/tests/val-2c/tests
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Tests]
design = 'val-2c.md'
issues = '#98'
issues = '#12 #98'
[val-2c_immediate_injection_csv]
type = CSVDiff
input = val-2c_immediate_injection.i
Expand Down
6 changes: 3 additions & 3 deletions test/tests/ver-1b/comparison_ver-1b.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
RMSPE = RMSE*100/np.mean(analytical_conc[idx:])
ax.text(5,0.9, 'RMSPE = %.2f '%RMSPE+'%',fontweight='bold')
ax.minorticks_on()
plt.savefig('ver-1b_comparison_time.png', bbox_inches='tight')
plt.savefig('ver-1b_comparison_time.png', bbox_inches='tight', dpi=300)
plt.close(fig)


Expand Down Expand Up @@ -82,7 +82,7 @@
RMSPE = RMSE*100/np.mean(analytical_conc[idx:])
ax.text(10,0.4, 'RMSPE = %.2f '%RMSPE+'%',fontweight='bold')
ax.minorticks_on()
plt.savefig('ver-1b_comparison_dist.png', bbox_inches='tight')
plt.savefig('ver-1b_comparison_dist.png', bbox_inches='tight', dpi=300)
plt.close(fig)
#================== Comparison of flux as a function of time ===================

Expand Down Expand Up @@ -119,5 +119,5 @@
RMSPE = RMSE*100/np.mean(analytical_flux[idx:])
ax.text(10,0.25, 'RMSPE = %.2f '%RMSPE+'%',fontweight='bold')
ax.minorticks_on()
plt.savefig('ver-1b_comparison_flux.png', bbox_inches='tight')
plt.savefig('ver-1b_comparison_flux.png', bbox_inches='tight', dpi=300)
plt.close(fig)
2 changes: 1 addition & 1 deletion test/tests/ver-1dd/comparison_ver-1dd.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@ def summation_term(num_terms, time):
ax.text(0.15,0.05e18, 'Numerical breakthrough time = %.2f '%tmap_intercept + 's',fontweight='bold')
ax.text(0.153,0.18e18, 'Analytical breakthrough time = %.2f '%tau_be + 's',fontweight='bold')
ax.minorticks_on()
plt.savefig('ver-1dd_comparison_diffusion.png', bbox_inches='tight')
plt.savefig('ver-1dd_comparison_diffusion.png', bbox_inches='tight', dpi=300)
plt.close(fig)
2 changes: 1 addition & 1 deletion test/tests/ver-1fa/comparison_ver-1fa.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@
RMSPE = RMSE*100/np.mean(analytical_temp)
ax.text(0.5,1000, 'RMSPE = %.2f '%RMSPE+'%',fontweight='bold')
ax.minorticks_on()
plt.savefig('ver-1fa_comparison_temperature.png', bbox_inches='tight');
plt.savefig('ver-1fa_comparison_temperature.png', bbox_inches='tight', dpi=300);
plt.close(fig)
2 changes: 1 addition & 1 deletion test/tests/ver-1fb/comparison_ver-1fb.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ def summation_terms(n, x, t, alph):
RMSPE = RMSE*100/np.mean(analytical_temp[3])
ax.text(2.75,340, 'RMSPE = %.2f '%RMSPE+'%',fontweight='bold',c='c')
ax.minorticks_on()
plt.savefig('ver-1fb_comparison_temperature.png', bbox_inches='tight')
plt.savefig('ver-1fb_comparison_temperature.png', bbox_inches='tight', dpi=300)
plt.close(fig)
6 changes: 3 additions & 3 deletions test/tests/ver-1fc/comparison_ver-1fc.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def get_analytical_solution_steady_state(x):
RMSE = np.linalg.norm(tmap8_sol_steady_state_temperature-analytical_sol_steady_state_x)
err_percent = RMSE*100/np.mean(analytical_sol_steady_state_x)
ax.text(0.55, 400, 'RMSPE = %.2f '%err_percent+'% \n',fontweight='bold')
plt.savefig('ver-1fc_comparison_temperature_steady_state.png', bbox_inches='tight');
plt.savefig('ver-1fc_comparison_temperature_steady_state.png', bbox_inches='tight', dpi=300);
plt.close(fig)

#===============================================================================
Expand All @@ -130,7 +130,7 @@ def get_analytical_solution_steady_state(x):
ax.set_ylim(bottom=0)
plt.grid(which='major', color='0.65', linestyle='--', alpha=0.3)
ax.minorticks_on()
plt.savefig('ver-1fc_comparison_temperature_transient_t150.png', bbox_inches='tight');
plt.savefig('ver-1fc_comparison_temperature_transient_t150.png', bbox_inches='tight', dpi=300);
plt.close(fig)

#===============================================================================
Expand All @@ -150,6 +150,6 @@ def get_analytical_solution_steady_state(x):
ax.set_ylim(bottom=0)
plt.grid(which='major', color='0.65', linestyle='--', alpha=0.3)
ax.minorticks_on()
plt.savefig('ver-1fc_comparison_temperature_transient_x0.09.png', bbox_inches='tight');
plt.savefig('ver-1fc_comparison_temperature_transient_x0.09.png', bbox_inches='tight', dpi=300);
plt.close(fig)

2 changes: 1 addition & 1 deletion test/tests/ver-1fd/comparison_ver-1fd.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ def get_analytical_solution(x,t_vect):
RMSE = np.linalg.norm(tmap8_sol_temperature-analytical_sol_temperature)
err_percent = RMSE*100/np.mean(analytical_sol_temperature)
ax.text(900, 151, 'RMSPE = %.2f '%err_percent+'%',fontweight='bold')
plt.savefig('ver-1fd_comparison_convective_heating.png', bbox_inches='tight');
plt.savefig('ver-1fd_comparison_convective_heating.png', bbox_inches='tight', dpi=300);
plt.close(fig)
2 changes: 1 addition & 1 deletion test/tests/ver-1gc/comparison_ver-1gc.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ def get_analytical_solution(t_vect):
RMSE_C = np.linalg.norm(tmap8_sol_concentration_C-concentration_C)
err_percent_C = RMSE_C*100/np.mean(concentration_C)
ax.text(1010, 2.05e14, '(C) RMSPE = %.2f '%err_percent_C+'%',fontweight='bold',color = 'tab:green')
plt.savefig('ver-1gc_comparison_diff_conc.png', bbox_inches='tight');
plt.savefig('ver-1gc_comparison_diff_conc.png', bbox_inches='tight', dpi=300);
plt.close(fig)

2 changes: 1 addition & 1 deletion test/tests/ver-1ka/comparison_ver-1ka.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@
plt.grid(which='major', color='0.65', linestyle='--', alpha=0.3)

# Save the plot as a PNG file
plt.savefig('ver-1ka_comparison_time.png', bbox_inches='tight')
plt.savefig('ver-1ka_comparison_time.png', bbox_inches='tight', dpi=300)

0 comments on commit cdd5c5f

Please sign in to comment.