FEM: pep8, more code formatting
This commit is contained in:
@@ -23,11 +23,8 @@
|
||||
|
||||
import sys
|
||||
import FreeCAD
|
||||
from FreeCAD import Placement
|
||||
from FreeCAD import Rotation
|
||||
from FreeCAD import Vector
|
||||
|
||||
import Draft
|
||||
import ObjectsFem
|
||||
import Part
|
||||
import Sketcher
|
||||
|
||||
@@ -182,7 +182,9 @@ def setup(doc=None, solvertype="elmer"):
|
||||
# constraint inlet velocity
|
||||
FlowVelocity_Inlet = ObjectsFem.makeConstraintFlowVelocity(doc, "FlowVelocity_Inlet")
|
||||
FlowVelocity_Inlet.References = [(BooleanFragments, "Edge5")]
|
||||
FlowVelocity_Inlet.VelocityXFormula = "Variable Coordinate 2; Real MATC \"10*(tx+50e-3)*(50e-3-tx)\""
|
||||
FlowVelocity_Inlet.VelocityXFormula = (
|
||||
"Variable Coordinate 2; Real MATC \"10*(tx+50e-3)*(50e-3-tx)\""
|
||||
)
|
||||
FlowVelocity_Inlet.VelocityXUnspecified = False
|
||||
FlowVelocity_Inlet.VelocityXHasFormula = True
|
||||
FlowVelocity_Inlet.VelocityYUnspecified = False
|
||||
|
||||
@@ -188,7 +188,9 @@ def setup(doc=None, solvertype="elmer"):
|
||||
# constraint inlet velocity
|
||||
FlowVelocity_Inlet = ObjectsFem.makeConstraintFlowVelocity(doc, "FlowVelocity_Inlet")
|
||||
FlowVelocity_Inlet.References = [(BooleanFragments, "Edge5")]
|
||||
FlowVelocity_Inlet.VelocityXFormula = "Variable Coordinate 2; Real MATC \"10*(tx+50e-3)*(50e-3-tx)\""
|
||||
FlowVelocity_Inlet.VelocityXFormula = (
|
||||
"Variable Coordinate 2; Real MATC \"10*(tx+50e-3)*(50e-3-tx)\""
|
||||
)
|
||||
FlowVelocity_Inlet.VelocityXUnspecified = False
|
||||
FlowVelocity_Inlet.VelocityXHasFormula = True
|
||||
FlowVelocity_Inlet.VelocityYUnspecified = False
|
||||
|
||||
@@ -85,8 +85,8 @@ def setup(doc=None, solvertype="elmer"):
|
||||
# solver
|
||||
if solvertype == "elmer":
|
||||
solver_obj = ObjectsFem.makeSolverElmer(doc, "SolverElmer")
|
||||
equation_electrostatic = ObjectsFem.makeEquationElectrostatic(doc, solver_obj)
|
||||
equation_heat = ObjectsFem.makeEquationHeat(doc, solver_obj)
|
||||
ObjectsFem.makeEquationElectrostatic(doc, solver_obj)
|
||||
ObjectsFem.makeEquationHeat(doc, solver_obj)
|
||||
equation_flux_potential = ObjectsFem.makeEquationFlux(doc, solver_obj)
|
||||
equation_flux_temperature = ObjectsFem.makeEquationFlux(doc, solver_obj)
|
||||
else:
|
||||
|
||||
@@ -23,8 +23,6 @@
|
||||
|
||||
import sys
|
||||
import FreeCAD
|
||||
from FreeCAD import Placement
|
||||
from FreeCAD import Rotation
|
||||
from FreeCAD import Vector
|
||||
|
||||
import Draft
|
||||
|
||||
@@ -23,8 +23,6 @@
|
||||
|
||||
import sys
|
||||
import FreeCAD
|
||||
from FreeCAD import Rotation
|
||||
from FreeCAD import Vector
|
||||
|
||||
import Fem
|
||||
import ObjectsFem
|
||||
|
||||
Reference in New Issue
Block a user