Skip to content

Commit

Permalink
Fix failing tests #99
Browse files Browse the repository at this point in the history
  • Loading branch information
SudiptaBiswas committed Nov 16, 2020
1 parent 4aa681d commit 97192a8
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 23 deletions.
32 changes: 10 additions & 22 deletions test/tests/rebar_bondslip/RCBeam_constraint.i
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
strain = finite
incremental = true
generate_output = 'stress_xx stress_xy stress_yy strain_xx strain_xy strain_yy
max_principal_stress mid_principal_stress min_principal_stress
secondinv_stress thirdinv_stress vonmises_stress
secondinv_strain thirdinv_strain
elastic_strain_xx elastic_strain_xy elastic_strain_yy'
vonmises_stress elastic_strain_xx elastic_strain_xy elastic_strain_yy'
save_in = 'resid_x resid_y'
[../]
[]
Expand Down Expand Up @@ -78,7 +75,7 @@
primary_variable = 'disp_x'
component = 0
max_bondstress = 100
transitional_slip_values = 0.0005
transitional_slip_values = 0.001
ultimate_slip = 0.1
rebar_radius = 7.98e-3
[]
Expand All @@ -91,26 +88,18 @@
primary_variable = 'disp_y'
component = 1
max_bondstress = 100
transitional_slip_values = 0.0005
transitional_slip_values = 0.001
ultimate_slip = 0.1
rebar_radius = 7.98e-3
[]
[]

[Functions]
[./loading]
type = PiecewiseLinear
x = '0 10 20 30 '
y = '0 -0.008 0.003 0.0'
[../]
[]

[BCs]
[./loading]
type = FunctionDirichletBC
type = DirichletBC
variable = disp_x
boundary = '102'
function = loading
value = 0.001
preset = true
[../]
[./left_support_x]
Expand Down Expand Up @@ -241,13 +230,12 @@
petsc_options_iname = '-pc_type'
petsc_options_value = 'lu'
petsc_options = '-snes_converged_reason'
nl_max_its = 100
nl_abs_tol = 1.E-5
nl_rel_tol = 1E-3
end_time = 30
nl_max_its = 10
nl_abs_tol = 1e-8
nl_rel_tol = 1e-8
dtmin = 0.00001
num_steps = 5
dt = 0.1
num_steps = 1
dt = 1.0
[]


Expand Down
3 changes: 3 additions & 0 deletions test/tests/rebar_bondslip/gold/RCBeam_constraint_out.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
time,axial_stress,deformation_x,deformation_y,node1_dx,node1_dy,node1_fx,node1_fx2,node1_fy,react_x,react_x2,react_y,react_y2,strain_xx,stress_xx
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1,47450.38093279,0.00080004745038093,-4.9527997390471e-10,4.6524399000211e-08,-5.7441994171806e-11,0.43338321376041,13028.059546252,4.2789048601961e-09,-10422.804881813,10422.804881553,4.242795205144e-07,4.242795205144e-07,0.0009994988237708,521173.25776804
Binary file modified test/tests/rebar_bondslip/gold/RCBeam_constraint_out.e
Binary file not shown.
Binary file removed test/tests/rebar_bondslip/gold/geo.e
Binary file not shown.
9 changes: 8 additions & 1 deletion test/tests/rebar_bondslip/tests
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
[Tests]
issues = '#89'
issues = '#99'
requirement = 'Blackbear shall have a model to capture the bond-slip relation between concrete and rebars'
design = 'constraints/RebarBondSlipConstraint.md'

[./bondslip]
type = 'Exodiff'
input = 'RCBeam_constraint.i'
exodiff = 'RCBeam_constraint_out.e'
abs_zero = 1e-5
[../]
[./bondslip_csv]
type = 'CSVDiff'
input = 'RCBeam_constraint.i'
csvdiff = 'RCBeam_constraint_out.csv'
abs_zero = 1e-5
[../]
[]

0 comments on commit 97192a8

Please sign in to comment.