FEM: python code formatting
This commit is contained in:
@@ -37,7 +37,7 @@ def write_femelement_geometry(f, ccxwriter):
|
||||
elsetdef = "ELSET={}, ".format(matgeoset["ccx_elset_name"])
|
||||
material = "MATERIAL={}".format(matgeoset["mat_obj_name"])
|
||||
|
||||
if "beamsection_obj"in matgeoset: # beam mesh
|
||||
if "beamsection_obj" in matgeoset: # beam mesh
|
||||
beamsec_obj = matgeoset["beamsection_obj"]
|
||||
beam_axis_m = matgeoset["beam_axis_m"]
|
||||
# in CalxuliX called the 1direction
|
||||
|
||||
@@ -289,11 +289,11 @@ class Writer(object):
|
||||
self._simulation("Coordinate System", "Cartesian 3D")
|
||||
self._simulation("Coordinate Mapping", (1, 2, 3))
|
||||
# not necessary anymore since we use SI units
|
||||
#if self.unit_schema == Units.Scheme.SI2:
|
||||
#self._simulation("Coordinate Scaling", 0.001)
|
||||
# Console.PrintMessage(
|
||||
# "'Coordinate Scaling = Real 0.001' was inserted into the solver input file.\n"
|
||||
# )
|
||||
# if self.unit_schema == Units.Scheme.SI2:
|
||||
# self._simulation("Coordinate Scaling", 0.001)
|
||||
# Console.PrintMessage(
|
||||
# "'Coordinate Scaling = Real 0.001' was inserted into the solver input file.\n"
|
||||
# )
|
||||
self._simulation("Simulation Type", "Steady state")
|
||||
self._simulation("Steady State Max Iterations", 1)
|
||||
self._simulation("Output Intervals", 1)
|
||||
|
||||
@@ -44,6 +44,7 @@ from femtools import membertools
|
||||
|
||||
SOLVER_TYPES = ["sorcg", "siccg", "choly"]
|
||||
|
||||
|
||||
class Check(run.Check):
|
||||
|
||||
def run(self):
|
||||
@@ -103,7 +104,7 @@ class Solve(run.Solve):
|
||||
binary = settings.get_binary("Z88")
|
||||
if binary is None:
|
||||
self.fail() # a print has been made in settings module
|
||||
|
||||
|
||||
prefs = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Fem/Z88")
|
||||
solver = SOLVER_TYPES
|
||||
solver = prefs.GetInt("Solver", 0)
|
||||
|
||||
Reference in New Issue
Block a user