parameters: (lower_left, upper_right, dimension)
return_statement: return structured_coords
docstring: This function calculates the structured mesh coordinates from an OpenMC mesh
      parameters.
  
      Parameters:
      -----------
      lower_left : numpy array of float
          The lower left coordinate of the mesh. A numpy array of length 3.
          Format: [x_min, y_min, z_min].
      upper_right : numpy array of float
          The upper right coordinate of the mesh. A numpy array of length 3.
          Format: [x_max, y_max, z_max].
      dimension : numpy array of int
          Number of mesh intervals in each dimension. A numpy array of length 3.
          Format: [x_ints, y_ints, z_ints].
  
      Returns:
      --------
      structured_coords : numpy array
          A nested numpy array definning the boundaries of the mesh element in
          each dimension. Format: [[x_bounds1, x_bounds2. ...],
                                   [y_bounds1, y_bounds2, ...],
                                   [z_bounds1, z_bounds2, ...]]
docstring_summary: This function calculates the structured mesh coordinates from an OpenMC mesh
      parameters.
docstring_tokens: This function calculates the structured mesh coordinates from an OpenMC mesh parameters .
function: def calc_structured_coords(lower_left, upper_right, dimension):
      """
      This function calculates the structured mesh coordinates from an OpenMC mesh
      parameters.
  
      Parameters:
      -----------
      lower_left : numpy array of float
          The lower left coordinate of the mesh. A numpy array of length 3.
          Format: [x_min, y_min, z_min].
      upper_right : numpy array of float
          The upper right coordinate of the mesh. A numpy array of length 3.
          Format: [x_max, y_max, z_max].
      dimension : numpy array of int
          Number of mesh intervals in each dimension. A numpy array of length 3.
          Format: [x_ints, y_ints, z_ints].
  
      Returns:
      --------
      structured_coords : numpy array
          A nested numpy array definning the boundaries of the mesh element in
          each dimension. Format: [[x_bounds1, x_bounds2. ...],
                                   [y_bounds1, y_bounds2, ...],
                                   [z_bounds1, z_bounds2, ...]]
      """
  
      # check the length of parameters
      if len(lower_left) != 3 or len(upper_right) != 3 or len(dimension) != 3:
          raise NotImplementedError("Only 3D OpenMC mesh is supported!")
      structured_coords = []
      for dim in range(3):
          bounds = []
          step = (upper_right[dim] - lower_left[dim]) / dimension[dim]
          for i in range(dimension[dim] + 1):
              bounds.append(lower_left[dim] + i * step)
          structured_coords.append(bounds)
      return structured_coords
function_tokens: def calc_structured_coords ( lower_left , upper_right , dimension ) : # check the length of parameters if len ( lower_left ) != 3 or len ( upper_right ) != 3 or len ( dimension ) != 3 : raise NotImplementedError ( "Only 3D OpenMC mesh is supported!" ) structured_coords = [ ] for dim in range ( 3 ) : bounds = [ ] step = ( upper_right [ dim ] - lower_left [ dim ] ) / dimension [ dim ] for i in range ( dimension [ dim ] + 1 ) : bounds . append ( lower_left [ dim ] + i * step ) structured_coords . append ( bounds ) return structured_coords