@@ -2440,6 +2440,8 @@ void CConfig::SetConfig_Options() {
24402440 addDoubleListOption (" POISSON_RATIO" , nPoissonRatio, PoissonRatio);
24412441 /* DESCRIPTION: Material density */
24422442 addDoubleListOption (" MATERIAL_DENSITY" , nMaterialDensity, MaterialDensity);
2443+ /* DESCRIPTION: Material thermal expansion coefficient */
2444+ addDoubleListOption (" MATERIAL_THERMAL_EXPANSION_COEFF" , nMaterialThermalExpansion, MaterialThermalExpansion);
24432445 /* DESCRIPTION: Knowles B constant */
24442446 addDoubleOption (" KNOWLES_B" , Knowles_B, 1.0 );
24452447 /* DESCRIPTION: Knowles N constant */
@@ -4834,9 +4836,15 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
48344836 MaterialDensity = new su2double[1 ]; MaterialDensity[0 ] = 7854 ;
48354837 }
48364838
4837- if (nElasticityMod != nPoissonRatio || nElasticityMod != nMaterialDensity) {
4838- SU2_MPI::Error (" ELASTICITY_MODULUS, POISSON_RATIO, and MATERIAL_DENSITY need to have the same number "
4839- " of entries (the number of materials)." , CURRENT_FUNCTION);
4839+ if (nMaterialThermalExpansion == 0 ) {
4840+ nMaterialThermalExpansion = 1 ;
4841+ MaterialThermalExpansion = new su2double[1 ]();
4842+ }
4843+
4844+ if (nElasticityMod != nPoissonRatio || nElasticityMod != nMaterialDensity ||
4845+ nElasticityMod != nMaterialThermalExpansion) {
4846+ SU2_MPI::Error (" ELASTICITY_MODULUS, POISSON_RATIO, MATERIAL_DENSITY, and THERMAL_EXPANSION_COEFF need "
4847+ " to have the same number of entries (the number of materials)." , CURRENT_FUNCTION);
48404848 }
48414849
48424850 if (nElectric_Constant == 0 ) {
0 commit comments