FEM: py3, set prints in brackets
This commit is contained in:
@@ -312,7 +312,7 @@ class FemTools(QtCore.QRunnable, QtCore.QObject):
|
||||
mat_obj = m['Object']
|
||||
if mat_obj.Category == 'Solid':
|
||||
if 'YoungsModulus' in mat_map:
|
||||
# print Units.Quantity(mat_map['YoungsModulus']).Value
|
||||
# print(Units.Quantity(mat_map['YoungsModulus']).Value)
|
||||
if not Units.Quantity(mat_map['YoungsModulus']).Value:
|
||||
message += "Value of YoungsModulus is set to 0.0.\n"
|
||||
else:
|
||||
|
||||
@@ -251,8 +251,8 @@ class FemToolsCcx(FemTools.FemTools):
|
||||
nonpositive_jacobian_elenodes = []
|
||||
for line in self.ccx_stdout.splitlines():
|
||||
if 'determinant in element' in line:
|
||||
# print line
|
||||
# print line.split()
|
||||
# print(line)
|
||||
# print(line.split())
|
||||
non_posjac_ele = int(line.split()[3])
|
||||
# print(non_posjac_ele)
|
||||
if non_posjac_ele not in nonpositive_jacobian_elements:
|
||||
|
||||
@@ -334,13 +334,13 @@ def makeSolverZ88(name="Z88"):
|
||||
|
||||
|
||||
'''
|
||||
# print supportedTypes
|
||||
# get the supportedTypes
|
||||
App.newDocument()
|
||||
module = 'Fem'
|
||||
FreeCADGui.doCommand('import ' + module)
|
||||
for s in sorted(App.ActiveDocument.supportedTypes()):
|
||||
if s.startswith(module):
|
||||
print s
|
||||
print(s)
|
||||
'''
|
||||
|
||||
## @}
|
||||
|
||||
@@ -260,7 +260,7 @@ def readResult(frd_input):
|
||||
# hexa20 import works with the following frd file node assignment
|
||||
elements_hexa20[elem] = (nd8, nd5, nd6, nd7, nd4, nd1, nd2, nd3, nd20, nd17,
|
||||
nd18, nd19, nd12, nd9, nd10, nd11, nd16, nd13, nd14, nd15)
|
||||
# print elements_hexa20[elem]
|
||||
# print(elements_hexa20[elem])
|
||||
elif elemType == 5 and input_continues is False:
|
||||
# first line
|
||||
# C3D15 Calculix --> penta15 FreeCAD
|
||||
|
||||
Reference in New Issue
Block a user