Skip to content

Commit

Permalink
Material: Add thermal reference temperature
Browse files Browse the repository at this point in the history
Fixes FreeCAD#13019

Adds the property 'Thermal Expansion Reference Temperature' to
the Thermal properties
  • Loading branch information
davesrocketshop committed Mar 18, 2024
1 parent 2326d52 commit aab45fd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/Mod/Material/Resources/Models/Thermal/Thermal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,11 @@ Model:
Description: >
Thermal expansion coefficient (linear) in [FreeCAD
ThermalExpansionCoefficient unit]
ThermalExpansionReferenceTemperature:
DisplayName: "Thermal Expansion Reference Temperature"
Type: 'Quantity'
Units: 'K'
URL: ''
Description: >
The reference temperature is the temperature at which zero thermal
strains exist for the analysis.
2 changes: 1 addition & 1 deletion src/Mod/Material/materialtests/TestMaterials.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def testCalculiXSteel(self):

self.assertTrue(steel.isPhysicalModelComplete(self.uuids.Density))
self.assertFalse(steel.isPhysicalModelComplete(self.uuids.IsotropicLinearElastic))
self.assertTrue(steel.isPhysicalModelComplete(self.uuids.Thermal))
self.assertFalse(steel.isPhysicalModelComplete(self.uuids.Thermal))
self.assertFalse(steel.isPhysicalModelComplete(self.uuids.LinearElastic))
self.assertTrue(steel.isAppearanceModelComplete(self.uuids.BasicRendering))

Expand Down
2 changes: 1 addition & 1 deletion tests/src/Mod/Material/App/TestMaterials.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ TEST_F(TestMaterial, TestCalculiXSteel)

EXPECT_TRUE(steel->isPhysicalModelComplete(Materials::ModelUUIDs::ModelUUID_Mechanical_Density)); // Density
EXPECT_FALSE(steel->isPhysicalModelComplete(Materials::ModelUUIDs::ModelUUID_Mechanical_IsotropicLinearElastic)); // IsotropicLinearElastic - incomplete
EXPECT_TRUE(steel->isPhysicalModelComplete(Materials::ModelUUIDs::ModelUUID_Thermal_Default)); // Thermal
EXPECT_FALSE(steel->isPhysicalModelComplete(Materials::ModelUUIDs::ModelUUID_Thermal_Default)); // Thermal
EXPECT_FALSE(steel->isPhysicalModelComplete(Materials::ModelUUIDs::ModelUUID_Mechanical_LinearElastic)); // Legacy linear elastic - Not in the model
EXPECT_TRUE(steel->isAppearanceModelComplete(Materials::ModelUUIDs::ModelUUID_Rendering_Basic)); // BasicRendering - inherited from Steel.FCMat

Expand Down

0 comments on commit aab45fd

Please sign in to comment.