Skip to content

Commit

Permalink
FEM: fix unit tests in the regard of new material module name
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach authored and yorikvanhavre committed Jan 2, 2017
1 parent 846637e commit 6ab6603
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mod/Fem/TestFem.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import FreeCAD
import FemAnalysis
import FemSolverCalculix
import MechanicalMaterial
import FemMaterial
import csv
import tempfile
import unittest
Expand Down Expand Up @@ -109,7 +109,7 @@ def create_new_mesh(self):
self.active_doc.recompute()

def create_new_material(self):
self.new_material_object = MechanicalMaterial.makeMechanicalMaterial('MechanicalMaterial')
self.new_material_object = FemMaterial.makeFemMaterial('MechanicalMaterial')
mat = self.new_material_object.Material
mat['Name'] = "Steel-Generic"
mat['YoungsModulus'] = "200000 MPa"
Expand Down Expand Up @@ -362,7 +362,7 @@ def create_new_mesh(self):
self.active_doc.recompute()

def create_new_material(self):
self.new_material_object = MechanicalMaterial.makeMechanicalMaterial('MechanicalMaterial')
self.new_material_object = FemMaterial.makeFemMaterial('MechanicalMaterial')
mat = self.new_material_object.Material
mat['Name'] = "Steel-Generic"
mat['YoungsModulus'] = "200000 MPa"
Expand Down

0 comments on commit 6ab6603

Please sign in to comment.