parameters: (self, Model, custom_settings )
docstring: The constructor of the RemeshFluidDomainsProcess-Object.
          Keyword arguments:
          self -- It signifies an instance of a class.
          model -- The Model to be used
          parameters -- The ProjectParameters used
docstring_summary: The constructor of the RemeshFluidDomainsProcess-Object.
          Keyword arguments:
          self -- It signifies an instance of a class.
          model -- The Model to be used
          parameters -- The ProjectParameters used
docstring_tokens: The constructor of the RemeshFluidDomainsProcess - Object . Keyword arguments : self -- It signifies an instance of a class . model -- The Model to be used parameters -- The ProjectParameters used
function: def __init__(self, Model, custom_settings ):
          """The constructor of the RemeshFluidDomainsProcess-Object.
          Keyword arguments:
          self -- It signifies an instance of a class.
          model -- The Model to be used
          parameters -- The ProjectParameters used
          """
          KratosMultiphysics.Process.__init__(self)
          self.main_model_part = Model[custom_settings["model_part_name"].GetString()]
  
          ##settings string in json format
          default_settings = KratosMultiphysics.Parameters("""{
              "echo_level"                        : 0,
              "model_part_name"                   : "Fluid Domain",
              "meshing_control_type"              : "step",
              "meshing_frequency"                 : 1.0,
              "meshing_before_output"             : true,
              "meshing_domains"                   : [],
              "update_conditions_on_free_surface" : {},
              "write_totalVolumeBeforeMeshing"    : true
          }""")
  
          ##overwrite the default settings with user-provided parameters
          self.settings = custom_settings
          self.settings.ValidateAndAssignDefaults(default_settings)
  
          self.echo_level        = self.settings["echo_level"].GetInt()
          self.dimension         = self.main_model_part.ProcessInfo[KratosMultiphysics.SPACE_DIMENSION]
          self.meshing_frequency = self.settings["meshing_frequency"].GetDouble()
          self.write_total_volume = self.settings["write_totalVolumeBeforeMeshing"].GetBool()
  
          self.meshing_control_is_time = False
          meshing_control_type   = self.settings["meshing_control_type"].GetString()
          if meshing_control_type == "time":
              self.meshing_control_is_time = True
          elif meshing_control_type == "step":
              self.meshing_control_is_time = False
  
          #construct meshing domains
          self.meshing_domains = []
          domains_list = self.settings["meshing_domains"]
          self.number_of_domains = domains_list.size()
          for i in range(0, self.number_of_domains):
              item = domains_list[i]
              python_module_name = "KratosMultiphysics.PfemFluidDynamicsApplication"
              full_module_name = python_module_name + "." + item["python_module"].GetString()
              domain_module = import_module(full_module_name)
              domain = domain_module.CreateMeshingDomain(self.main_model_part,item)
              self.meshing_domains.append(domain)
  
          # mesh mesher initial values
          self.remesh_domains_active = False
          for domain in self.meshing_domains:
              if domain.Active():
                  self.remesh_domains_active = True
  
          self.neighbours_search_performed = False
          self.step_count   = 1
          self.counter      = 1
          self.next_meshing = 0.0
          self.meshing_before_output = self.settings["meshing_before_output"].GetBool()
          self.update_conditions_on_free_surface = self.settings["update_conditions_on_free_surface"]["update_conditions"].GetBool()
function_tokens: def __init__ ( self , Model , custom_settings ) : KratosMultiphysics . Process . __init__ ( self ) self . main_model_part = Model [ custom_settings [ "model_part_name" ] . GetString ( ) ] ##settings string in json format default_settings = KratosMultiphysics . Parameters ( """{
              "echo_level"                        : 0,
              "model_part_name"                   : "Fluid Domain",
              "meshing_control_type"              : "step",
              "meshing_frequency"                 : 1.0,
              "meshing_before_output"             : true,
              "meshing_domains"                   : [],
              "update_conditions_on_free_surface" : {},
              "write_totalVolumeBeforeMeshing"    : true
          }""" ) ##overwrite the default settings with user-provided parameters self . settings = custom_settings self . settings . ValidateAndAssignDefaults ( default_settings ) self . echo_level = self . settings [ "echo_level" ] . GetInt ( ) self . dimension = self . main_model_part . ProcessInfo [ KratosMultiphysics . SPACE_DIMENSION ] self . meshing_frequency = self . settings [ "meshing_frequency" ] . GetDouble ( ) self . write_total_volume = self . settings [ "write_totalVolumeBeforeMeshing" ] . GetBool ( ) self . meshing_control_is_time = False meshing_control_type = self . settings [ "meshing_control_type" ] . GetString ( ) if meshing_control_type == "time" : self . meshing_control_is_time = True elif meshing_control_type == "step" : self . meshing_control_is_time = False #construct meshing domains self . meshing_domains = [ ] domains_list = self . settings [ "meshing_domains" ] self . number_of_domains = domains_list . size ( ) for i in range ( 0 , self . number_of_domains ) : item = domains_list [ i ] python_module_name = "KratosMultiphysics.PfemFluidDynamicsApplication" full_module_name = python_module_name + "." + item [ "python_module" ] . GetString ( ) domain_module = import_module ( full_module_name ) domain = domain_module . CreateMeshingDomain ( self . main_model_part , item ) self . meshing_domains . append ( domain ) # mesh mesher initial values self . remesh_domains_active = False for domain in self . meshing_domains : if domain . Active ( ) : self . remesh_domains_active = True self . neighbours_search_performed = False self . step_count = 1 self . counter = 1 self . next_meshing = 0.0 self . meshing_before_output = self . settings [ "meshing_before_output" ] . GetBool ( ) self . update_conditions_on_free_surface = self . settings [ "update_conditions_on_free_surface" ] [ "update_conditions" ] . GetBool ( )