FEM: TestFem, use no space in materialname

This commit is contained in:
Bernd Hahnebach 2015-09-14 18:54:51 +02:00
parent c7ab1fd98b
commit b553d9895d
3 changed files with 5 additions and 5 deletions

View File

@ -78,7 +78,7 @@ class FemTest(unittest.TestCase):
def create_new_material(self): def create_new_material(self):
self.new_material_object = self.active_doc.addObject("App::MaterialObjectPython", 'MechanicalMaterial') self.new_material_object = self.active_doc.addObject("App::MaterialObjectPython", 'MechanicalMaterial')
mat = self.new_material_object.Material mat = self.new_material_object.Material
mat['Name'] = "Test Material" mat['Name'] = "TestMaterial"
mat['YoungsModulus'] = "20000 MPa" mat['YoungsModulus'] = "20000 MPa"
mat['PoissonRatio'] = "0.36" mat['PoissonRatio'] = "0.36"
mat['Density'] = "1000 kg/m^3" mat['Density'] = "1000 kg/m^3"

View File

@ -449,13 +449,13 @@ Eall
** Materials ** Materials
** written by write_materials function ** written by write_materials function
** Young's modulus unit is MPa = N/mm2 ** Young's modulus unit is MPa = N/mm2
*MATERIAL, NAME=Test Material *MATERIAL, NAME=TestMaterial
*ELASTIC *ELASTIC
20000 , 20000 ,
0.360 0.360
*DENSITY *DENSITY
1.000e-09, 1.000e-09,
*SOLID SECTION, ELSET=MaterialSolidElements, MATERIAL=Test Material *SOLID SECTION, ELSET=MaterialSolidElements, MATERIAL=TestMaterial
*********************************************************** ***********************************************************
** One step is needed to calculate the mechanical analysis of FreeCAD ** One step is needed to calculate the mechanical analysis of FreeCAD

View File

@ -449,13 +449,13 @@ Eall
** Materials ** Materials
** written by write_materials function ** written by write_materials function
** Young's modulus unit is MPa = N/mm2 ** Young's modulus unit is MPa = N/mm2
*MATERIAL, NAME=Test Material *MATERIAL, NAME=TestMaterial
*ELASTIC *ELASTIC
20000 , 20000 ,
0.360 0.360
*DENSITY *DENSITY
1.000e-09, 1.000e-09,
*SOLID SECTION, ELSET=MaterialSolidElements, MATERIAL=Test Material *SOLID SECTION, ELSET=MaterialSolidElements, MATERIAL=TestMaterial
*********************************************************** ***********************************************************
** One step is needed to calculate the mechanical analysis of FreeCAD ** One step is needed to calculate the mechanical analysis of FreeCAD