FEM: objects, code formating, new lines

This commit is contained in:
Bernd Hahnebach
2020-03-02 10:58:47 +01:00
parent a34cd69125
commit b45276045e
3 changed files with 70 additions and 28 deletions

View File

@@ -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"
"HeatSource",
"Base",
"Body heat source"
)

View File

@@ -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"
)

View File

@@ -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"
)