Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving test coverage #275

Merged
merged 1 commit into from
Dec 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/materials/ConcreteThermalMoisture.C
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,8 @@ ConcreteThermalMoisture::computeProperties()

if (T < 20.0)
_thermal_conductivity[qp] = 1.4875;
else if (T >= 20.0 && T < 800.0)
else if (T >= 20.0)
_thermal_conductivity[qp] = -0.000625 * T + 1.5;
else if (T >= 800.0)
_thermal_conductivity[qp] = 1.0;
break;

case 1: // carbonate aggregate
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Tmax = 1200
Tmin = 28
Tmax = 635

[Mesh]
type = GeneratedMesh
dim = 2
Expand Down Expand Up @@ -69,16 +71,16 @@ Tmax = 1200
[Functions]
[temperature]
type = PiecewiseLinear
xy_data = '28 28
635 635
636 28
1243 635
1244 28
1851 635
1852 28
2459 635
2460 28
3067 635'
xy_data = '28 ${Tmin}
635 ${Tmax}
636 ${Tmin}
1243 ${Tmax}
1244 ${Tmin}
1851 ${Tmax}
1852 ${Tmin}
2459 ${Tmax}
2460 ${Tmin}
3067 ${Tmax}'
[]
[rh]
type = PiecewiseLinear
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,216 changes: 608 additions & 608 deletions test/tests/concrete_moisture_heat_transfer/gold/eurocode_thermal_model_out.csv

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

126 changes: 85 additions & 41 deletions test/tests/concrete_moisture_heat_transfer/tests
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@
csvdiff = 'asce_siliceous_thermal_model_out.csv'
cli_args = 'Materials/concrete/thermal_model=ASCE-1992 '
'Materials/concrete/aggregate_type=Siliceous '
'Materials/concrete/moisture_model=Bazant '
'Materials/concrete/D1=3.0e-10 '
'Materials/concrete/n=16 '
'Materials/concrete/critical_relative_humidity=0.75 '
'Materials/concrete/coupled_moisture_diffusivity_factor=1e-5 '
'Materials/concrete/moisture_model=Mensi '
'Materials/concrete/A=1.042e-13 '
'Materials/concrete/B=0.05 '
'Materials/concrete/cement_mass=354 '
'Materials/concrete/water_to_cement_ratio=0.5 '
'Tmin=10 '
'Tmax=800 '
'Outputs/file_base=asce_siliceous_thermal_model_out '
detail = 'ASCE-1992 siliceous thermal model.'
[]
Expand All @@ -49,11 +51,12 @@
csvdiff = 'asce_carbonate_thermal_model_out.csv'
cli_args = 'Materials/concrete/thermal_model=ASCE-1992 '
'Materials/concrete/aggregate_type=Carbonate '
'Materials/concrete/moisture_model=Bazant '
'Materials/concrete/D1=3.0e-10 '
'Materials/concrete/n=16 '
'Materials/concrete/critical_relative_humidity=0.75 '
'Materials/concrete/coupled_moisture_diffusivity_factor=1e-5 '
'Materials/concrete/moisture_model=Mensi '
'Materials/concrete/A=1.042e-13 '
'Materials/concrete/B=0.05 '
'Materials/concrete/cement_mass=354 '
'Materials/concrete/water_to_cement_ratio=0.5 '
'Tmax=800 '
'Outputs/file_base=asce_carbonate_thermal_model_out '
detail = 'ASCE-1992 carbonate thermal model.'
[]
Expand All @@ -63,11 +66,12 @@
csvdiff = 'kodur_siliceous_thermal_model_out.csv'
cli_args = 'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
'Materials/concrete/moisture_model=Bazant '
'Materials/concrete/D1=3.0e-10 '
'Materials/concrete/n=16 '
'Materials/concrete/critical_relative_humidity=0.75 '
'Materials/concrete/coupled_moisture_diffusivity_factor=1e-5 '
'Materials/concrete/moisture_model=Mensi '
'Materials/concrete/A=1.042e-13 '
'Materials/concrete/B=0.05 '
'Materials/concrete/cement_mass=354 '
'Materials/concrete/water_to_cement_ratio=0.5 '
'Tmin=10 '
'Outputs/file_base=kodur_siliceous_thermal_model_out '
detail = 'Kodur-2004 siliceous thermal model.'
[]
Expand All @@ -77,11 +81,12 @@
csvdiff = 'kodur_carbonate_thermal_model_out.csv'
cli_args = 'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Carbonate '
'Materials/concrete/moisture_model=Bazant '
'Materials/concrete/D1=3.0e-10 '
'Materials/concrete/n=16 '
'Materials/concrete/critical_relative_humidity=0.75 '
'Materials/concrete/coupled_moisture_diffusivity_factor=1e-5 '
'Materials/concrete/moisture_model=Mensi '
'Materials/concrete/A=1.042e-13 '
'Materials/concrete/B=0.05 '
'Materials/concrete/cement_mass=354 '
'Materials/concrete/water_to_cement_ratio=0.5 '
'Tmax=1000 '
'Outputs/file_base=kodur_carbonate_thermal_model_out '
detail = 'Kodur-2004 carbonate thermal model.'
[]
Expand All @@ -97,6 +102,7 @@
'Materials/concrete/n=16 '
'Materials/concrete/critical_relative_humidity=0.75 '
'Materials/concrete/coupled_moisture_diffusivity_factor=1e-5 '
'Tmax=1199 '
'Outputs/file_base=eurocode_thermal_model_out '
detail = 'Eurocode-2004 thermal model.'
[]
Expand Down Expand Up @@ -282,7 +288,6 @@
'Materials/concrete/n=16 '
'Materials/concrete/critical_relative_humidity=0.75 '
'Materials/concrete/coupled_moisture_diffusivity_factor=1e-5 '
allow_test_objects = True
detail = "Constant thermal model shall generate error if ref_density is not set by user."
[]
[constant_thermal_ref_specific_heat]
Expand All @@ -297,7 +302,6 @@
'Materials/concrete/n=16 '
'Materials/concrete/critical_relative_humidity=0.75 '
'Materials/concrete/coupled_moisture_diffusivity_factor=1e-5 '
allow_test_objects = True
detail = "Constant thermal model shall generate error if ref_specific_heat is not set by user."
[]
[constant_thermal_ref_thermal_conductivity]
Expand All @@ -312,7 +316,6 @@
'Materials/concrete/n=16 '
'Materials/concrete/critical_relative_humidity=0.75 '
'Materials/concrete/coupled_moisture_diffusivity_factor=1e-5 '
allow_test_objects = True
detail = "Constant thermal model shall generate error if ref_thermal_conductivity is not set by user."
[]
[asce_thermal_aggregate_type]
Expand All @@ -325,7 +328,6 @@
'Materials/concrete/n=16 '
'Materials/concrete/critical_relative_humidity=0.75 '
'Materials/concrete/coupled_moisture_diffusivity_factor=1e-5 '
allow_test_objects = True
detail = "ASCE-1992 thermal model shall generate error if aggregate_type is not set by user."
[]
[kodur_thermal_aggregate_type]
Expand All @@ -338,7 +340,6 @@
'Materials/concrete/n=16 '
'Materials/concrete/critical_relative_humidity=0.75 '
'Materials/concrete/coupled_moisture_diffusivity_factor=1e-5 '
allow_test_objects = True
detail = "Kodur-2004 thermal model shall generate error if aggregate_type is not set by user."
[]
[eurocode_thermal_ref_density]
Expand Down Expand Up @@ -379,7 +380,6 @@
'Materials/concrete/coupled_moisture_diffusivity_factor=1e-5 '
'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
allow_test_objects = True
detail = "Bazant moisture model shall generate error if D1 is not set by user."
[]
[bazant_moisture_model_n]
Expand All @@ -392,7 +392,6 @@
'Materials/concrete/coupled_moisture_diffusivity_factor=1e-5 '
'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
allow_test_objects = True
detail = "Bazant moisture model shall generate error if n is not set by user."
[]
[bazant_moisture_model_critical_relative_humidity]
Expand All @@ -405,7 +404,6 @@
'Materials/concrete/coupled_moisture_diffusivity_factor=1e-5 '
'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
allow_test_objects = True
detail = "Bazant moisture model shall generate error if critical_relative_humidity is not set by user."
[]
[bazant_moisture_model_coupled_moisture_diffusivity_factor]
Expand All @@ -418,7 +416,6 @@
'Materials/concrete/critical_relative_humidity=0.75 '
'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
allow_test_objects = True
detail = "Bazant moisture model shall generate error if coupled_moisture_diffusivity_factor is not set by user."
[]
[mensi_moisture_model_A]
Expand All @@ -431,7 +428,6 @@
'Materials/concrete/water_to_cement_ratio=0.5 '
'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
allow_test_objects = True
detail = "Mensi moisture model shall generate error if A is not set by user."
[]
[mensi_moisture_model_B]
Expand All @@ -444,7 +440,6 @@
'Materials/concrete/water_to_cement_ratio=0.5 '
'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
allow_test_objects = True
detail = "Mensi moisture model shall generate error if B is not set by user."
[]
[mensi_moisture_model_cement_mass]
Expand All @@ -457,7 +452,6 @@
'Materials/concrete/water_to_cement_ratio=0.5 '
'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
allow_test_objects = True
detail = "Mensi moisture model shall generate error if cement_mass is not set by user."
[]
[mensi_moisture_model_water_to_cement_ratio]
Expand All @@ -470,7 +464,6 @@
'Materials/concrete/cement_mass=354 '
'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
allow_test_objects = True
detail = "Mensi moisture model shall generate error if water_to_cement_ratio is not set by user."
[]
[xi_moisture_model_cement_type]
Expand All @@ -486,7 +479,6 @@
'Materials/concrete/water_to_cement_ratio=0.5 '
'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
allow_test_objects = True
detail = "Xi moisture model shall generate error if cement_type is not set by user."
[]
[xi_moisture_model_agg_pore_type]
Expand All @@ -502,7 +494,6 @@
'Materials/concrete/water_to_cement_ratio=0.5 '
'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
allow_test_objects = True
detail = "Xi moisture model shall generate error if aggregate_pore_type is not set by user."
[]
[xi_moisture_model_agg_vol_frac]
Expand All @@ -518,7 +509,6 @@
'Materials/concrete/water_to_cement_ratio=0.5 '
'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
allow_test_objects = True
detail = "Xi moisture model shall generate error if aggregate_vol_fraction is not set by user."
[]
[xi_moisture_model_concrete_cure_time]
Expand All @@ -534,7 +524,6 @@
'Materials/concrete/water_to_cement_ratio=0.5 '
'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
allow_test_objects = True
detail = "Xi moisture model shall generate error if concrete_cure_time is not set by user."
[]
[xi_moisture_model_cement_mass]
Expand All @@ -550,7 +539,6 @@
'Materials/concrete/water_to_cement_ratio=0.5 '
'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
allow_test_objects = True
detail = "Xi moisture model shall generate error if cement_mass is not set by user."
[]
[xi_moisture_model_aggregate_mass]
Expand All @@ -566,7 +554,6 @@
'Materials/concrete/water_to_cement_ratio=0.5 '
'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
allow_test_objects = True
detail = "Xi moisture model shall generate error if aggregate_mass is not set by user."
[]
[xi_moisture_model_water_to_cement_ratio]
Expand All @@ -582,7 +569,6 @@
'Materials/concrete/aggregate_mass=1877 '
'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
allow_test_objects = True
detail = "Xi moisture model shall generate error if water_to_cement_ratio is not set by user."
[]
[xi_moisture_model_water_to_cement_ratio_below_05]
Expand All @@ -599,8 +585,66 @@
'Materials/concrete/water_to_cement_ratio=0.45 '
'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
allow_test_objects = True
detail = "Xi moisture model shall generate error if water_to_cement_ratio is set < 0.5."
[]
[kodur_siliceous_T_outside_range]
type = 'RunException'
input = 'concrete_thermal_moisture_properties.i'
expect_err = "Temperature outside of the range for the KODUR-2004 thermal model"
cli_args = 'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
'Materials/concrete/moisture_model=Mensi '
'Materials/concrete/A=1.042e-13 '
'Materials/concrete/B=0.05 '
'Materials/concrete/cement_mass=354 '
'Materials/concrete/water_to_cement_ratio=0.5 '
'Tmax=650 '
detail = "Kodur-2004 thermal model shall generate error if temperature is more than 635."
[]
[kodur_carbonate_T_outside_range]
type = 'RunException'
input = 'concrete_thermal_moisture_properties.i'
expect_err = "Temperature outside of the range for the KODUR-2004 thermal model"
cli_args = 'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Carbonate '
'Materials/concrete/moisture_model=Mensi '
'Materials/concrete/A=1.042e-13 '
'Materials/concrete/B=0.05 '
'Materials/concrete/cement_mass=354 '
'Materials/concrete/water_to_cement_ratio=0.5 '
'Tmax=1100 '
detail = "Kodur-2004 thermal model shall generate error if temperature is more than 1100."
[]
[eurocode_T_outside_range]
type = 'RunException'
input = 'concrete_thermal_moisture_properties.i'
expect_err = "Temperature outside of the range for the EUROCODE-2004 thermal model"
cli_args = 'Materials/concrete/thermal_model=EUROCODE-2004 '
'Materials/concrete/ref_density=2231 '
'Materials/concrete/ref_specific_heat=1100 '
'Materials/concrete/moisture_model=Mensi '
'Materials/concrete/A=1.042e-13 '
'Materials/concrete/B=0.05 '
'Materials/concrete/cement_mass=354 '
'Materials/concrete/water_to_cement_ratio=0.5 '
'Tmin=10 '
'Tmax=1300 '
detail = "EUROCODE-2004 thermal model shall generate error if temperature is more than 1200."
[]
[bazant_T_outside_range]
type = 'RunException'
input = 'concrete_thermal_moisture_properties.i'
expect_err = "Temperature outside of the range for the Bazant moisture model"
cli_args = 'Materials/concrete/moisture_model=Bazant '
'Materials/concrete/D1=3.0e-10 '
'Materials/concrete/n=16 '
'Materials/concrete/critical_relative_humidity=0.75 '
'Materials/concrete/coupled_moisture_diffusivity_factor=1e-5 '
'Materials/concrete/thermal_model=KODUR-2004 '
'Materials/concrete/aggregate_type=Siliceous '
'Outputs/file_base=bazant_moisture_model_out '
'Tmin=0 '
detail = "Bazant moisture model shall generate error if temperature is less than 25."
[]
[]
[]