FEM: code formating, cut lines with more than 200 diggits
This commit is contained in:
@@ -146,10 +146,12 @@ class Proxy(solverbase.Proxy):
|
||||
obj.addProperty("App::PropertyString", "IterationsControlParameterCutb", "Fem", "User defined time incrementation cutbacks control parameter")
|
||||
obj.IterationsControlParameterCutb = p_cutb
|
||||
|
||||
obj.addProperty("App::PropertyBool", "IterationsUserDefinedIncrementations", "Fem", "Set to True to switch off the ccx automatic incrementation completely (ccx parameter DIRECT). Use with care. Analysis may not converge!")
|
||||
stringIterationsUserDefinedIncrementations = "Set to True to switch off the ccx automatic incrementation completely (ccx parameter DIRECT). Use with care. Analysis may not converge!"
|
||||
obj.addProperty("App::PropertyBool", "IterationsUserDefinedIncrementations", "Fem", stringIterationsUserDefinedIncrementations)
|
||||
obj.IterationsUserDefinedIncrementations = False
|
||||
|
||||
obj.addProperty("App::PropertyBool", "IterationsUserDefinedTimeStepLength", "Fem", "Set to True to use the user defined time steps. The time steps are set with TimeInitialStep and TimeEnd")
|
||||
stringIterationsUserDefinedTimeStepLength = "Set to True to use the user defined time steps. The time steps are set with TimeInitialStep and TimeEnd"
|
||||
obj.addProperty("App::PropertyBool", "IterationsUserDefinedTimeStepLength", "Fem", stringIterationsUserDefinedTimeStepLength)
|
||||
obj.IterationsUserDefinedTimeStepLength = False
|
||||
|
||||
known_ccx_solver_types = ["default", "spooles", "iterativescaling", "iterativecholesky"]
|
||||
|
||||
@@ -992,7 +992,8 @@ class FemInputWriterCcx(FemInputWriter.FemInputWriter):
|
||||
v = self.mesh_object.FemMesh.getccxVolumesByFace(ho)
|
||||
f.write("** Heat flux on face {}\n".format(elem))
|
||||
for i in v:
|
||||
f.write("{},F{},{},{}\n".format(i[0], i[1], heatflux_obj.AmbientTemp, heatflux_obj.FilmCoef * 0.001)) # SvdW add factor to force heatflux to units system of t/mm/s/K # OvG: Only write out the VolumeIDs linked to a particular face
|
||||
# SvdW: add factor to force heatflux to units system of t/mm/s/K # OvG: Only write out the VolumeIDs linked to a particular face
|
||||
f.write("{},F{},{},{}\n".format(i[0], i[1], heatflux_obj.AmbientTemp, heatflux_obj.FilmCoef * 0.001))
|
||||
elif heatflux_obj.ConstraintType == "DFlux":
|
||||
f.write('*DFLUX\n')
|
||||
for o, elem_tup in heatflux_obj.References:
|
||||
@@ -1035,7 +1036,8 @@ class FemInputWriterCcx(FemInputWriter.FemInputWriter):
|
||||
for line in lines:
|
||||
b = line.split(',')
|
||||
if int(b[0]) == n and b[3] == 'PIPE INLET\n':
|
||||
f.write(b[1] + ',1,1,' + str(fluidsection_obj.InletFlowRate * 0.001) + '\n') # degree of freedom 1 is for defining flow rate, factor applied to convert unit from kg/s to t/s
|
||||
# degree of freedom 1 is for defining flow rate, factor applied to convert unit from kg/s to t/s
|
||||
f.write(b[1] + ',1,1,' + str(fluidsection_obj.InletFlowRate * 0.001) + '\n')
|
||||
elif fluidsection_obj.LiquidSectionType == 'PIPE OUTLET':
|
||||
f.write('**Fluid Section Outlet \n')
|
||||
if fluidsection_obj.OutletPressureActive is True:
|
||||
@@ -1051,7 +1053,8 @@ class FemInputWriterCcx(FemInputWriter.FemInputWriter):
|
||||
for line in lines:
|
||||
b = line.split(',')
|
||||
if int(b[0]) == n and b[3] == 'PIPE OUTLET\n':
|
||||
f.write(b[1] + ',1,1,' + str(fluidsection_obj.OutletFlowRate * 0.001) + '\n') # degree of freedom 1 is for defining flow rate, factor applied to convert unit from kg/s to t/s
|
||||
# degree of freedom 1 is for defining flow rate, factor applied to convert unit from kg/s to t/s
|
||||
f.write(b[1] + ',1,1,' + str(fluidsection_obj.OutletFlowRate * 0.001) + '\n')
|
||||
|
||||
def write_outputs_types(self, f):
|
||||
f.write('\n***********************************************************\n')
|
||||
|
||||
Reference in New Issue
Block a user