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()
示例#2
0
 def PChanged(self, value):
     inputCheckAndStore(value, "kg/m/s^2", self.InitialVariables,
                        'Pressure')
 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()
示例#4
0
 def inputLengthScaleChanged(self, value):
     inputCheckAndStore(value, "m", self.BoundarySettings,
                        'TurbulenceLengthScale')
示例#5
0
 def inputSpecificDissipationRateChanged(self, value):
     inputCheckAndStore(value, "rad/s", self.BoundarySettings,
                        'SpecificDissipationRate')
示例#6
0
 def inputHeatTransferCoeffChanged(self, value):
     inputCheckAndStore(value, "W/m^2/K", self.BoundarySettings,
                        'HeatTransferCoeff')
示例#7
0
 def inputTemperatureChanged(self, value):
     inputCheckAndStore(value, "K", self.BoundarySettings, 'Temperature')
示例#8
0
 def inputWireDiameterChanged(self, value):
     inputCheckAndStore(value, "m", self.BoundarySettings,
                        'ScreenWireDiameter')
示例#9
0
 def inputPressureChanged(self, text):
     inputCheckAndStore(text, "kg/m/s^2", self.p, 'Pressure')
示例#10
0
 def inputUzChanged(self, text):
     inputCheckAndStore(text, "m/s", self.p, 'Uz')
示例#11
0
 def inputVolumeFractionChanged(self, text):
     alphaName = self.form.comboFluid.currentText()
     if 'alphas' in self.p:
         inputCheckAndStore(text, "m/m", self.p['alphas'], alphaName)
示例#12
0
 def inputOmegaChanged(self, text):
     inputCheckAndStore(text, "rad/s", self.InitialVariables, 'omega')
示例#13
0
 def inputkChanged(self, text):
     inputCheckAndStore(text, "m^2/s^2", self.InitialVariables, 'k')
示例#14
0
 def inputTemperatureChanged(self, value):
     inputCheckAndStore(value, "K", self.InitialVariables, 'Temperature')
示例#15
0
 def inputVolumeFractionChanged(self, value):
     inputCheckAndStore(value, "m/m", self.InitialVariables['alphas'],
                        self.form.comboFluid.currentText())
示例#16
0
 def inputMassFlowRateChanged(self, value):
     inputCheckAndStore(value, "kg/s", self.BoundarySettings,
                        'MassFlowRate')
示例#17
0
 def inputPressureDropCoeffChanged(self, value):
     inputCheckAndStore(value, "m/m", self.BoundarySettings,
                        'PressureDropCoeff')
示例#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()
示例#19
0
 def inputSpacingChanged(self, value):
     inputCheckAndStore(value, "m", self.BoundarySettings, 'ScreenSpacing')
示例#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()
示例#21
0
 def inputHeatFluxChanged(self, value):
     inputCheckAndStore(value, "W/m^2", self.BoundarySettings, 'HeatFlux')
示例#22
0
 def inputCartZChanged(self, value):
     inputCheckAndStore(value, "m/s", self.BoundarySettings, 'Uz')
示例#23
0
 def inputKineticEnergyChanged(self, value):
     inputCheckAndStore(value, "m^2/s^2", self.BoundarySettings,
                        'TurbulentKineticEnergy')
示例#24
0
 def inputVelocityMagChanged(self, value):
     inputCheckAndStore(value, "m/s", self.BoundarySettings, 'VelocityMag')
示例#25
0
 def inputIntensityChanged(self, value):
     inputCheckAndStore(value, "m/m", self.BoundarySettings,
                        'TurbulenceIntensity')
示例#26
0
 def inputPressureChanged(self, value):
     inputCheckAndStore(value, "kg/m/s^2", self.BoundarySettings,
                        'Pressure')
示例#27
0
 def inputVolumeFractionChanged(self, value):
     inputCheckAndStore(value, "m/m", self.BoundarySettings['alphas'],
                        self.form.comboFluid.currentText())
示例#28
0
 def inputSlipRatioChanged(self, value):
     inputCheckAndStore(value, "m/m", self.BoundarySettings, 'SlipRatio')
示例#29
0
 def inputVolFlowRateChanged(self, value):
     inputCheckAndStore(value, "m^3/s", self.BoundarySettings,
                        'VolFlowRate')
示例#30
0
 def UzChanged(self, value):
     inputCheckAndStore(value, "m/s", self.InitialVariables, 'Uz')