Skip to content

Commit 0076691

Browse files
committed
Update run_hydrochrono.exe regression test suite
1 parent b9c498e commit 0076691

11 files changed

Lines changed: 813 additions & 6 deletions

File tree

tests/regression/run_hydrochrono/compare_template.py

Lines changed: 773 additions & 0 deletions
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.

tests/regression/run_hydrochrono/f3of/decay_dt2/inputs/f3of_decay.simulation.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,24 @@ simulation:
44
contact_method: SMC
55

66
time_step: 0.02
7-
end_time: 40.0
7+
end_time: 120.0
88
enforce_realtime: false
99
gravity: [0, 0, -9.81]
1010

11+
integrator:
12+
type: HHT
13+
rel_tolerance: 1e-4
14+
abs_tolerance_states: 1e-4
15+
abs_tolerance_multipliers: 1e2
16+
max_iterations: 50
17+
use_stepsize_control: false
18+
use_modified_newton: false
19+
1120
solver:
12-
type: SPARSE_QR
21+
type: GMRES
22+
max_iterations: 100
23+
tolerance: 1e-8
24+
enable_diagonal_preconditioner: false
1325

1426
visualization:
1527
type: MODEL_FILE

tests/regression/run_hydrochrono/f3of/decay_dt2/inputs/f3of_decay_test_2.model.yaml renamed to tests/regression/run_hydrochrono/f3of/decay_dt2/inputs/f3of_decay_dt2.model.yaml

File renamed without changes.

tests/regression/run_hydrochrono/f3of/decay_dt2/inputs/f3of_decay_dt2.setup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
model_file: f3of_decay_test_2.model.yaml
1+
model_file: f3of_decay_dt2.model.yaml
22
simulation_file: f3of_decay.simulation.yaml
33
hydro_file: f3of_decay.hydro.yaml
44

Binary file not shown.

tests/regression/run_hydrochrono/f3of/decay_dt3/inputs/f3of_decay.hydro.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,16 @@ hydrodynamics:
1010
waves:
1111
type: still
1212

13+
# System-wide convolution options
14+
convolution:
15+
mode: TaperedDirect # Baseline | TaperedDirect
16+
smoothing:
17+
type: savitzky_golay # savitzky_golay | moving_average
18+
window_length: 5 # odd >= 3 (moving_average uses this; SG is fixed to quadratic, window=5)
19+
taper:
20+
start_percent: 0.8 # start taper at 80% of total time series (taper last 20%)
21+
end_percent: 1.0 # end taper at 100% of total time series
22+
final_amplitude: 0.0 # final amplitude (0.0 = zero, 1.0 = no change)
23+
end_time: -1.0 # truncate RIRF at this time (seconds), -1.0 = use full length
24+
diagnostics:
25+
export_csv: true # per-body CSV for representative channel (step,time,k_before,k_after)

tests/regression/run_hydrochrono/f3of/decay_dt3/inputs/f3of_decay.simulation.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,24 @@ simulation:
44
contact_method: SMC
55

66
time_step: 0.02
7-
end_time: 40.0
7+
end_time: 500.0
88
enforce_realtime: false
99
gravity: [0, 0, -9.81]
1010

1111
integrator:
12-
type: EULER_IMPLICIT_LINEARIZED
12+
type: HHT
13+
rel_tolerance: 1e-4
14+
abs_tolerance_states: 1e-4
15+
abs_tolerance_multipliers: 1e2
16+
max_iterations: 50
17+
use_stepsize_control: false
18+
use_modified_newton: false
1319

1420
solver:
15-
type: SPARSE_QR
21+
type: GMRES
22+
max_iterations: 100
23+
tolerance: 1e-8
24+
enable_diagonal_preconditioner: false
1625

1726
visualization:
1827
type: MODEL_FILE
Binary file not shown.

0 commit comments

Comments
 (0)