예제 #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()
예제 #2
0
 def PChanged(self, value):
     inputCheckAndStore(value, "kg/m/s^2", self.InitialVariables,
                        'Pressure')
예제 #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()
예제 #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')