Exemplo n.º 1
0
 def zLengthChanged(self, text):
     inputCheckAndStore(text, "m", self.obj.InternalRegion['BoxLengths'],
                        'z')
     doc_name = str(self.obj.Document.Name)
     obj = FreeCAD.getDocument(doc_name).getObject(self.obj.Name)
     obj.InternalRegion = self.obj.InternalRegion
     FreeCAD.getDocument(doc_name).recompute()
Exemplo n.º 2
0
 def PChanged(self, value):
     inputCheckAndStore(value, "kg/m/s^2", self.InitialVariables,
                        'Pressure')
Exemplo n.º 3
0
 def radiusChanged(self, value):
     inputCheckAndStore(value, "m", self.obj.InternalRegion, 'SphereRadius')
     doc_name = str(self.obj.Document.Name)
     obj = FreeCAD.getDocument(doc_name).getObject(self.obj.Name)
     obj.InternalRegion = self.obj.InternalRegion
     FreeCAD.getDocument(doc_name).recompute()
Exemplo n.º 4
0
 def inputLengthScaleChanged(self, value):
     inputCheckAndStore(value, "m", self.BoundarySettings,
                        'TurbulenceLengthScale')
Exemplo n.º 5
0
 def inputSpecificDissipationRateChanged(self, value):
     inputCheckAndStore(value, "rad/s", self.BoundarySettings,
                        'SpecificDissipationRate')
Exemplo n.º 6
0
 def inputHeatTransferCoeffChanged(self, value):
     inputCheckAndStore(value, "W/m^2/K", self.BoundarySettings,
                        'HeatTransferCoeff')
Exemplo n.º 7
0
 def inputTemperatureChanged(self, value):
     inputCheckAndStore(value, "K", self.BoundarySettings, 'Temperature')
Exemplo n.º 8
0
 def inputWireDiameterChanged(self, value):
     inputCheckAndStore(value, "m", self.BoundarySettings,
                        'ScreenWireDiameter')
Exemplo n.º 9
0
 def inputPressureChanged(self, text):
     inputCheckAndStore(text, "kg/m/s^2", self.p, 'Pressure')
Exemplo n.º 10
0
 def inputUzChanged(self, text):
     inputCheckAndStore(text, "m/s", self.p, 'Uz')
Exemplo n.º 11
0
 def inputVolumeFractionChanged(self, text):
     alphaName = self.form.comboFluid.currentText()
     if 'alphas' in self.p:
         inputCheckAndStore(text, "m/m", self.p['alphas'], alphaName)
Exemplo n.º 12
0
 def inputOmegaChanged(self, text):
     inputCheckAndStore(text, "rad/s", self.InitialVariables, 'omega')
Exemplo n.º 13
0
 def inputkChanged(self, text):
     inputCheckAndStore(text, "m^2/s^2", self.InitialVariables, 'k')
Exemplo n.º 14
0
 def inputTemperatureChanged(self, value):
     inputCheckAndStore(value, "K", self.InitialVariables, 'Temperature')
Exemplo n.º 15
0
 def inputVolumeFractionChanged(self, value):
     inputCheckAndStore(value, "m/m", self.InitialVariables['alphas'],
                        self.form.comboFluid.currentText())
Exemplo n.º 16
0
 def inputMassFlowRateChanged(self, value):
     inputCheckAndStore(value, "kg/s", self.BoundarySettings,
                        'MassFlowRate')
Exemplo n.º 17
0
 def inputPressureDropCoeffChanged(self, value):
     inputCheckAndStore(value, "m/m", self.BoundarySettings,
                        'PressureDropCoeff')
Exemplo n.º 18
0
 def yPoint1Changed(self, text):
     inputCheckAndStore(text, "m", self.obj.InternalRegion['Point1'], 'y')
     doc_name = str(self.obj.Document.Name)
     obj = FreeCAD.getDocument(doc_name).getObject(self.obj.Name)
     obj.InternalRegion = self.obj.InternalRegion
     FreeCAD.getDocument(doc_name).recompute()
Exemplo n.º 19
0
 def inputSpacingChanged(self, value):
     inputCheckAndStore(value, "m", self.BoundarySettings, 'ScreenSpacing')
Exemplo n.º 20
0
 def radius2Changed(self, text):
     inputCheckAndStore(text, "m", self.obj.InternalRegion, 'Radius2')
     doc_name = str(self.obj.Document.Name)
     obj = FreeCAD.getDocument(doc_name).getObject(self.obj.Name)
     obj.InternalRegion = self.obj.InternalRegion
     FreeCAD.getDocument(doc_name).recompute()
Exemplo n.º 21
0
 def inputHeatFluxChanged(self, value):
     inputCheckAndStore(value, "W/m^2", self.BoundarySettings, 'HeatFlux')
Exemplo n.º 22
0
 def inputCartZChanged(self, value):
     inputCheckAndStore(value, "m/s", self.BoundarySettings, 'Uz')
Exemplo n.º 23
0
 def inputKineticEnergyChanged(self, value):
     inputCheckAndStore(value, "m^2/s^2", self.BoundarySettings,
                        'TurbulentKineticEnergy')
Exemplo n.º 24
0
 def inputVelocityMagChanged(self, value):
     inputCheckAndStore(value, "m/s", self.BoundarySettings, 'VelocityMag')
Exemplo n.º 25
0
 def inputIntensityChanged(self, value):
     inputCheckAndStore(value, "m/m", self.BoundarySettings,
                        'TurbulenceIntensity')
Exemplo n.º 26
0
 def inputPressureChanged(self, value):
     inputCheckAndStore(value, "kg/m/s^2", self.BoundarySettings,
                        'Pressure')
Exemplo n.º 27
0
 def inputVolumeFractionChanged(self, value):
     inputCheckAndStore(value, "m/m", self.BoundarySettings['alphas'],
                        self.form.comboFluid.currentText())
Exemplo n.º 28
0
 def inputSlipRatioChanged(self, value):
     inputCheckAndStore(value, "m/m", self.BoundarySettings, 'SlipRatio')
Exemplo n.º 29
0
 def inputVolFlowRateChanged(self, value):
     inputCheckAndStore(value, "m^3/s", self.BoundarySettings,
                        'VolFlowRate')
Exemplo n.º 30
0
 def UzChanged(self, value):
     inputCheckAndStore(value, "m/s", self.InitialVariables, 'Uz')