Skip to content

Commit

Permalink
FEM: objects, code formating, new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Mar 2, 2020
1 parent a34cd69 commit b452760
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 28 deletions.
7 changes: 5 additions & 2 deletions src/Mod/Fem/femobjects/_FemConstraintBodyHeatSource.py
Expand Up @@ -37,5 +37,8 @@ class Proxy(FemConstraint.Proxy):
def __init__(self, obj):
super(Proxy, self).__init__(obj)
obj.addProperty(
"App::PropertyFloat", "HeatSource",
"Base", "Body heat source")
"App::PropertyFloat"

This comment has been minimized.

Copy link
@wwmayer

wwmayer Mar 2, 2020

Contributor

Comma is missing. Fixed with 24f10a3

"HeatSource",
"Base",
"Body heat source"
)
49 changes: 35 additions & 14 deletions src/Mod/Fem/femobjects/_FemConstraintFlowVelocity.py
Expand Up @@ -37,23 +37,44 @@ class Proxy(FemConstraint.Proxy):
def __init__(self, obj):
super(Proxy, self).__init__(obj)
obj.addProperty(
"App::PropertyFloat", "VelocityX",
"Parameter", "Body heat flux")
"App::PropertyFloat",
"VelocityX",
"Parameter",
"Body heat flux"
)
obj.addProperty(
"App::PropertyBool", "VelocityXEnabled",
"Parameter", "Body heat flux")
"App::PropertyBool",
"VelocityXEnabled",
"Parameter",
"Body heat flux"
)
obj.addProperty(
"App::PropertyFloat", "VelocityY",
"Parameter", "Body heat flux")
"App::PropertyFloat",
"VelocityY",
"Parameter",
"Body heat flux"
)
obj.addProperty(
"App::PropertyBool", "VelocityYEnabled",
"Parameter", "Body heat flux")
"App::PropertyBool",
"VelocityYEnabled",
"Parameter",
"Body heat flux"
)
obj.addProperty(
"App::PropertyFloat", "VelocityZ",
"Parameter", "Body heat flux")
"App::PropertyFloat",
"VelocityZ",
"Parameter",
"Body heat flux"
)
obj.addProperty(
"App::PropertyBool", "VelocityZEnabled",
"Parameter", "Body heat flux")
"App::PropertyBool",
"VelocityZEnabled",
"Parameter",
"Body heat flux"
)
obj.addProperty(
"App::PropertyBool", "NormalToBoundary",
"Parameter", "Body heat flux")
"App::PropertyBool",
"NormalToBoundary",
"Parameter",
"Body heat flux"
)
42 changes: 30 additions & 12 deletions src/Mod/Fem/femobjects/_FemConstraintInitialFlowVelocity.py
Expand Up @@ -37,20 +37,38 @@ class Proxy(FemConstraint.Proxy):
def __init__(self, obj):
super(Proxy, self).__init__(obj)
obj.addProperty(
"App::PropertyFloat", "VelocityX",
"Parameter", "Body heat flux")
"App::PropertyFloat",
"VelocityX",
"Parameter",
"Body heat flux"
)
obj.addProperty(
"App::PropertyBool", "VelocityXEnabled",
"Parameter", "Body heat flux")
"App::PropertyBool",
"VelocityXEnabled",
"Parameter",
"Body heat flux"
)
obj.addProperty(
"App::PropertyFloat", "VelocityY",
"Parameter", "Body heat flux")
"App::PropertyFloat",
"VelocityY",
"Parameter",
"Body heat flux"
)
obj.addProperty(
"App::PropertyBool", "VelocityYEnabled",
"Parameter", "Body heat flux")
"App::PropertyBool",
"VelocityYEnabled",
"Parameter",
"Body heat flux"
)
obj.addProperty(
"App::PropertyFloat", "VelocityZ",
"Parameter", "Body heat flux")
"App::PropertyFloat",
"VelocityZ",
"Parameter",
"Body heat flux"
)
obj.addProperty(
"App::PropertyBool", "VelocityZEnabled",
"Parameter", "Body heat flux")
"App::PropertyBool",
"VelocityZEnabled",
"Parameter",
"Body heat flux"
)

0 comments on commit b452760

Please sign in to comment.