FEM: solver framework, use small written modul import names in tasks

This commit is contained in:
Bernd Hahnebach
2019-03-04 08:34:19 +01:00
committed by wmayer
parent 03f044e841
commit 8a6f3172df
3 changed files with 15 additions and 15 deletions

View File

@@ -28,7 +28,7 @@ __url__ = "http://www.freecadweb.org"
import subprocess
import os.path
import femtools.femutils as FemUtils
import femtools.femutils as femutils
from .. import run
from .. import settings
@@ -45,8 +45,8 @@ class Check(run.Check):
self.checkEquations()
def checkMeshType(self):
mesh = FemUtils.get_single_member(self.analysis, "Fem::FemMeshObject")
if not FemUtils.is_of_type(mesh, "Fem::FemMeshGmsh"):
mesh = femutils.get_single_member(self.analysis, "Fem::FemMeshObject")
if not femutils.is_of_type(mesh, "Fem::FemMeshGmsh"):
self.report.error(
"Unsupported type of mesh. "
"Mesh must be created with gmsh.")
@@ -84,7 +84,7 @@ class Prepare(run.Prepare):
def checkHandled(self, w):
handled = w.getHandledConstraints()
allConstraints = FemUtils.get_member(self.analysis, "Fem::Constraint")
allConstraints = femutils.get_member(self.analysis, "Fem::Constraint")
for obj in set(allConstraints) - handled:
self.report.warning("Ignored constraint %s." % obj.Label)