diff --git a/src/materials/ConcreteASREigenstrain.C b/src/materials/ConcreteASREigenstrain.C index 914cbec5a..85b697044 100644 --- a/src/materials/ConcreteASREigenstrain.C +++ b/src/materials/ConcreteASREigenstrain.C @@ -155,7 +155,7 @@ ConcreteASREigenstrain::ConcreteASREigenstrain(const InputParameters & parameter else if (temperature_unit == "Kelvin") _temp_offset = 0.0; else - mooseError("Unsupported temperature unit"); + mooseAssert(false, "Unsupported temperature unit"); // Convert input value of reference temperature to Kelvin _ref_temp += _temp_offset; @@ -271,7 +271,7 @@ ConcreteASREigenstrain::computeResidual(unsigned qp, Real scalar) } } else - mooseError("Invalid expansion type"); + mooseAssert(false, "Invalid expansion type"); // Convert current temperature to Kelvin const Real T = _temperature[qp] + _temp_offset; @@ -306,7 +306,7 @@ ConcreteASREigenstrain::computeDerivative(unsigned qp, Real scalar) } } else - mooseError("Invalid expansion type"); + mooseAssert(false, "Invalid expansion type"); // Convert current temperature to Kelvin const Real T = _temperature[qp] + _temp_offset; diff --git a/src/materials/ConcreteExpansionEigenstrainBase.C b/src/materials/ConcreteExpansionEigenstrainBase.C index b0ba7cc29..f304cc954 100644 --- a/src/materials/ConcreteExpansionEigenstrainBase.C +++ b/src/materials/ConcreteExpansionEigenstrainBase.C @@ -127,7 +127,7 @@ ConcreteExpansionEigenstrainBase::computeQpEigenstrain() _eigenstrain[_qp] = _eigenstrain_old[_qp] + inc_weighted_strain; } else - mooseError("Invalid expansion type"); + mooseAssert(false, "Invalid expansion type"); } Real diff --git a/src/materials/ConcreteThermalMoisture.C b/src/materials/ConcreteThermalMoisture.C index b674053fd..860136197 100644 --- a/src/materials/ConcreteThermalMoisture.C +++ b/src/materials/ConcreteThermalMoisture.C @@ -67,7 +67,7 @@ ConcreteThermalMoisture::validParams() params.addParam( "cement_type", cement_type, "cement type input for moisture capacity calculations"); params.addParam( - "aggregate_pore_type", aggregate_pore_type, "aggregate pore structure"); + "aggregate_pore_type", aggregate_pore_type, "aggregate pore structure"); MooseEnum moisture_diffusivity_model("Bazant Xi Mensi", "Bazant"); params.addParam( @@ -295,7 +295,7 @@ ConcreteThermalMoisture::computeProperties() break; default: - mooseError("Unknown aggregate types"); + mooseAssert(false, "Unknown aggregate types"); break; } break; @@ -340,7 +340,7 @@ ConcreteThermalMoisture::computeProperties() break; default: - mooseError("Unknown aggregate types"); + mooseAssert(false, "Unknown aggregate types"); break; } break; @@ -373,7 +373,7 @@ ConcreteThermalMoisture::computeProperties() break; default: - mooseError("Unknown thermal capacity model"); + mooseAssert(false, "Unknown thermal capacity model"); break; } @@ -403,7 +403,7 @@ ConcreteThermalMoisture::computeProperties() break; default: - mooseError("Unknown aggregate types"); + mooseAssert(false, "Unknown aggregate types"); break; } break; @@ -428,7 +428,7 @@ ConcreteThermalMoisture::computeProperties() break; default: - mooseError("Unknown aggregate types"); + mooseAssert(false, "Unknown aggregate types"); break; } break; @@ -452,7 +452,7 @@ ConcreteThermalMoisture::computeProperties() break; default: - mooseError("Unknown thermal conductivity model"); + mooseAssert(false, "Unknown thermal conductivity model"); break; } @@ -492,7 +492,7 @@ ConcreteThermalMoisture::computeProperties() N_ct = 1.5; break; default: - mooseError("Unknown cement type in mositure capacity calculations"); + mooseAssert(false, "Unknown cement type in mositure capacity calculations"); break; } @@ -532,7 +532,7 @@ ConcreteThermalMoisture::computeProperties() V_ct = 0.6; break; default: - mooseError("Unknown cement type in mositure capacity calculations"); + mooseAssert(false, "Unknown cement type in mositure capacity calculations"); break; } @@ -567,7 +567,7 @@ ConcreteThermalMoisture::computeProperties() n_agg = 2.0; break; default: - mooseError("unknown aggregate pore sturtures"); + mooseAssert(false, "Unknown aggregate pore structure"); break; } @@ -588,7 +588,7 @@ ConcreteThermalMoisture::computeProperties() V_agg = 0.10; break; default: - mooseError("unknown aggregate pore sturtures"); + mooseAssert(false, "Unknown aggregate pore structure"); break; } @@ -661,7 +661,7 @@ ConcreteThermalMoisture::computeProperties() Dh0 = A * std::exp(B * C1); break; default: - mooseError("unknown moisture diffusivity models"); + mooseAssert(false, "Unknown moisture diffusivity model"); break; } diff --git a/test/tests/concrete_expansion_microcracking/tests b/test/tests/concrete_expansion_microcracking/tests index 8a0709dd3..e03d5a607 100644 --- a/test/tests/concrete_expansion_microcracking/tests +++ b/test/tests/concrete_expansion_microcracking/tests @@ -93,4 +93,12 @@ detail = 'and with a 10 MPa compressive pressure in the x, y, and z directions.' [] [] + [concrete_microcracking_damage_isotropic_error] + type = 'RunException' + input = 'concrete_expansion_microcracking.i' + expect_err = 'ConcreteExpansionMicrocrackingDamage requires that the elasticity tensor be guaranteed isotropic' + cli_args = 'Materials/inactive=concrete Materials/aniso/type=ComputeElasticityTensor Materials/aniso/fill_methode=orthotropic Materials/aniso/C_ijkl="1 1 1 1 1 1 1 1 1"' + allow_test_objects = True + requirement = 'The ConcreteExpansionMicrocrackingDamage model shall generate an error if used with a material that is not guaranteed isotropic' + [] [] diff --git a/test/tests/concrete_sulfide_attack/tests b/test/tests/concrete_sulfide_attack/tests index ddd438605..dbcbf5826 100644 --- a/test/tests/concrete_sulfide_attack/tests +++ b/test/tests/concrete_sulfide_attack/tests @@ -1,10 +1,17 @@ [Tests] issues = '#171' design = 'ConcreteThermalMoisture.md ReactionNetwork/index.md' - [./test] + [test] type = 'Exodiff' input = 'sulfide_attack.i' exodiff = 'sulfide_attack_out.e' requirement = 'Blackbear shall model the migration and reactions between chemical species involved in sulfide attack on concrete' - [../] + [] + [aqueous_speciations_syntax] + type = 'RunException' + input = 'sulfide_attack.i' + cli_args = 'ReactionNetwork/aqueous_speciations="(1.0)ca / (1.0)cl = (1.0)cacl -0.7"' + expect_err = 'Error parsing term: /' + requirement = 'The ReactionNetwork model shall generate an error if an incorrect form is provided for aqueous speciacions' + [] [] diff --git a/test/tests/mazars_damage/tests b/test/tests/mazars_damage/tests index a7df7f575..9a837cd12 100644 --- a/test/tests/mazars_damage/tests +++ b/test/tests/mazars_damage/tests @@ -20,4 +20,11 @@ detail = 'and in compression.' [] [] + [mazars_damage_isotropic_error] + type = 'RunException' + input = 'mazars.i' + expect_err = 'MazarsDamage requires that the elasticity tensor be guaranteed isotropic' + cli_args = 'Materials/inactive=elasticity Materials/aniso/type=ComputeElasticityTensor Materials/aniso/fill_methode=orthotropic Materials/aniso/C_ijkl="1 1 1 1 1 1 1 1 1"' + requirement = 'The MazarsDamage model shref #210all generate an error if used with a material that is not guaranteed isotropic' + [] []