Esempio n. 1
0
 def _GetAutomaticTimeSteppingUtility(self):
     if (self.GetComputingModelPart().ProcessInfo[Kratos.DOMAIN_SIZE] == 2):
         EstimateDeltaTimeUtility = KratosCFD.EstimateDtUtility2D(
             self.GetComputingModelPart(), self.settings["time_stepping"])
     else:
         EstimateDeltaTimeUtility = KratosCFD.EstimateDtUtility3D(
             self.GetComputingModelPart(), self.settings["time_stepping"])
     return EstimateDeltaTimeUtility
Esempio n. 2
0
    def _GetAutomaticTimeSteppingUtility(self):
        if (self.computing_model_part.ProcessInfo[KratosMultiphysics.DOMAIN_SIZE] == 2):
            EstimateDeltaTimeUtility = KratosCFD.EstimateDtUtility2D(self.computing_model_part,
                                                                     self.settings["time_stepping"])
        else:
            EstimateDeltaTimeUtility = KratosCFD.EstimateDtUtility3D(self.computing_model_part,
                                                                     self.settings["time_stepping"])

        return EstimateDeltaTimeUtility
Esempio n. 3
0
    def _CreateEstimateDtUtility(self):
        domain_size = self.GetComputingModelPart().ProcessInfo[
            KratosMultiphysics.DOMAIN_SIZE]
        if domain_size == 2:
            estimate_dt_utility = KratosCFD.EstimateDtUtility2D(
                self.GetComputingModelPart(), self.settings["time_stepping"])
        else:
            estimate_dt_utility = KratosCFD.EstimateDtUtility3D(
                self.GetComputingModelPart(), self.settings["time_stepping"])

        return estimate_dt_utility