parameters: (self, model, settings)
docstring: The constructor of the ApplyAbsorbingBoundaryProcess
docstring_summary: The constructor of the ApplyAbsorbingBoundaryProcess
docstring_tokens: The constructor of the ApplyAbsorbingBoundaryProcess
function: def __init__(self, model, settings):
          """The constructor of the ApplyAbsorbingBoundaryProcess"""
  
          KM.Process.__init__(self)
  
          self.settings = settings
          self.settings.ValidateAndAssignDefaults(self.GetDefaultParameters())
  
          self.distance_processes = []
          self.model_part = model[self.settings["computing_model_part_name"].GetString()]
          boundaries_names = self.settings["absorbing_boundaries_list"].GetStringArray()
          distance_calculator_settings = KM.Parameters()
          distance_calculator_settings.AddValue("r_squared_threshold", self.settings["r_squared_threshold"])
          for name in boundaries_names:
              boundary_part = self.model_part.GetSubModelPart(name)
              self.distance_processes.append(SW.CalculateDistanceToBoundaryProcess(self.model_part, boundary_part, distance_calculator_settings))
  
          for process in self.distance_processes:
              process.Check()
  
          self.formulation = self.__formulation[settings["formulation"].GetString()]
function_tokens: def __init__ ( self , model , settings ) : KM . Process . __init__ ( self ) self . settings = settings self . settings . ValidateAndAssignDefaults ( self . GetDefaultParameters ( ) ) self . distance_processes = [ ] self . model_part = model [ self . settings [ "computing_model_part_name" ] . GetString ( ) ] boundaries_names = self . settings [ "absorbing_boundaries_list" ] . GetStringArray ( ) distance_calculator_settings = KM . Parameters ( ) distance_calculator_settings . AddValue ( "r_squared_threshold" , self . settings [ "r_squared_threshold" ] ) for name in boundaries_names : boundary_part = self . model_part . GetSubModelPart ( name ) self . distance_processes . append ( SW . CalculateDistanceToBoundaryProcess ( self . model_part , boundary_part , distance_calculator_settings ) ) for process in self . distance_processes : process . Check ( ) self . formulation = self . __formulation [ settings [ "formulation" ] . GetString ( ) ]