Skip to content

Commit

Permalink
Add custom convergence file and automatic scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
simopier committed Oct 24, 2024
1 parent 333927a commit 59f96c6
Show file tree
Hide file tree
Showing 7 changed files with 467 additions and 403 deletions.
402 changes: 201 additions & 201 deletions test/tests/val-2c/gold/val-2c_delay_csv.csv

Large diffs are not rendered by default.

Binary file modified test/tests/val-2c/gold/val-2c_delay_out.e
Binary file not shown.
402 changes: 201 additions & 201 deletions test/tests/val-2c/gold/val-2c_immediate_injection_csv.csv

Large diffs are not rendered by default.

Binary file modified test/tests/val-2c/gold/val-2c_immediate_injection_out.e
Binary file not shown.
2 changes: 2 additions & 0 deletions test/tests/val-2c/tests
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
prereq = val-2c_immediate_injection_csv
should_execute = false # this test relies on the output files from val-2c_csv, so it shouldn't be run twice
exodiff = val-2c_immediate_injection_out.e
custom_cmp = 'val-2c_immediate_injection_exodus.exodiff'
requirement = 'The system shall be able to model the Test Cell Release Experiment (val-2c) with immediate T2 injection and properly compute the exodus file.'
recover = false
[]
Expand All @@ -22,6 +23,7 @@
input = val-2c_delay.i
csvdiff = val-2c_delay_csv.csv
requirement = 'The system shall be able to model the Test Cell Release Experiment (val-2c) with delayed T2 injection.'
abs_zero = 1e-8
recover = false
[]
[val-2c_delay_exodus]
Expand Down
4 changes: 3 additions & 1 deletion test/tests/val-2c/val-2c_base.i
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,9 @@
petsc_options_iname = '-pc_type -sub_pc_type -snes_type'
petsc_options_value = 'asm lu vinewtonrsls' # This petsc option helps prevent negative concentrations with bounds'
nl_rel_tol = 2.e-10
nl_rel_tol = 1.e-10
automatic_scaling = true
compute_scaling_once = false
end_time = ${time_end}
dtmax = ${dtmax}
Expand Down
60 changes: 60 additions & 0 deletions test/tests/val-2c/val-2c_immediate_injection_exodus.exodiff
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# *****************************************************************
# EXODIFF EXODIFF EXODIFF EXODIFF EXODIFF EXODIFF EXODIFF
#
# Version 2.46 (2011-07-11)
# Authors: Richard Drake, [email protected]
# Greg Sjaardema, [email protected]
# 2012/02/21 12:01:29 MST
#
# EXODIFF EXODIFF EXODIFF EXODIFF EXODIFF EXODIFF EXODIFF
# *****************************************************************

# FILE 1: ~/projects/TMAP8/test/tests/val-2c/gold/val-2c_immediate_injection_out.e
# Title: polypole1_intergranular_coarsening_out.e
# Dim = 1, Blocks = 2, Nodes = 15, Elements = 14, Nodesets = 2, Sidesets = 2
# Vars: Global = 13, Nodal = 8, Element = 0, Nodeset = 0, Sideset = 0, Times = 201


# ==============================================================
# NOTE: All node and element ids are reported as global ids.

# NOTES: - The min/max values are reporting the min/max in absolute value.
# - Time values (t) are 1-offset time step numbers.
# - Element block numbers are the block ids.
# - Node(n) and element(e) numbers are 1-offset.

# COORDINATES absolute 1.e-6

# TIME STEPS relative 1.e-6 floor 0.0

GLOBAL VARIABLES relative 5.5.e-6 floor 1e-10
h2o_enclosure_edge_concentration relative 5.5e-06 absolute 1e-10
h2o_enclosure_inventory relative 5.5e-06 absolute 1e-10
h2o_paint_inventory relative 5.5e-06 absolute 1e-10
ht_enclosure_edge_concentration relative 5.5e-06 absolute 1e-10
ht_enclosure_inventory relative 5.5e-06 absolute 1e-10
ht_paint_inventory relative 5.5e-06 absolute 1e-10
hto_enclosure_edge_concentration relative 5.5e-06 absolute 1e-10
hto_enclosure_inventory relative 5.5e-06 absolute 1e-10
hto_paint_inventory relative 5.5e-06 absolute 1e-10
t2_enclosure_edge_concentration relative 5.5e-06 absolute 1e-10
t2_enclosure_inventory relative 5.5e-06 absolute 1e-10
t2_paint_inventory relative 5.5e-06 absolute 1e-10
tritium_total_inventory relative 5.5e-06 absolute 1e-10

NODAL VARIABLES relative 5.5.e-6 floor 1e-10
h2o_enclosure_concentration relative 5.5e-06 absolute 1e-10
h2o_paint_concentration relative 5.5e-06 absolute 1e-10
ht_enclosure_concentration relative 5.5e-06 absolute 1e-10
ht_paint_concentration relative 5.5e-06 absolute 1e-10
hto_enclosure_concentration relative 5.5e-06 absolute 1e-10
hto_paint_concentration relative 1.0e-04 absolute 1e-7
t2_enclosure_concentration relative 5.5e-06 absolute 1e-10
t2_paint_concentration relative 5.5e-06 absolute 1e-10

# No ELEMENT VARIABLES

# No NODESET VARIABLES

# No SIDESET VARIABLES

0 comments on commit 59f96c6

Please sign in to comment.