Пример #1
0
 def SetGraphicalOutput(self):
     """This function sets the settings for the graphical
     output
     """
     if( self.project_parameters.Has("output_configuration") ):
         from KratosMultiphysics.PfemFluidDynamicsApplication.pfem_fluid_gid_output_process import GiDOutputProcess
         self.output_settings = self.project_parameters["output_configuration"]
         self.post_process_model_part = self.model.CreateModelPart("output_model_part")
         return GiDOutputProcess(self.post_process_model_part,
                                 self.problem_name,
                                 self.output_settings)
     else:
         return (KratosMultiphysics.Process())
Пример #2
0
 def SetCustomGraphicalOutput(self, custom_parameters):
     """This function sets the settings for the graphical
     output
     """
     if custom_parameters.Has("output_configuration"):
         from KratosMultiphysics.PfemFluidDynamicsApplication.pfem_fluid_gid_output_process import GiDOutputProcess
         self.output_settings = custom_parameters["output_configuration"]
         self.output_settings["result_file_configuration"].RemoveValue(
             "nodal_results")
         self.output_settings["result_file_configuration"].AddValue(
             "nodal_results",
             self.project_parameters["output_configuration"]
             ["result_file_configuration"]["nodal_results"])
         self.output_settings["result_file_configuration"].RemoveValue(
             "gauss_point_results")
         self.output_settings["result_file_configuration"].AddValue(
             "gauss_point_results",
             self.project_parameters["output_configuration"]
             ["result_file_configuration"]["gauss_point_results"])
         return GiDOutputProcess(self.post_process_model_part,
                                 self.problem_name, self.output_settings)
     else:
         return (KratosMultiphysics.Process())