@verbose
def make_bem_solution(surfs, verbose=None):
 logger.info('Approximation method : Linear collocation\n')
 if isinstance(surfs, string_types):
  logger.info('Loading surfaces...')
  surfs = read_bem_surfaces(surfs)
 bem = ConductorModel(is_sphere=False, surfs=surfs)
 _add_gamma_multipliers(bem)
 if (len(bem['surfs']) == 3):
  logger.info('Three-layer model surfaces loaded.')
 elif (len(bem['surfs']) == 1):
  logger.info('Homogeneous model surface loaded.')
 else:
  raise RuntimeError('Only 1- or 3-layer BEM computations supported')
 _check_bem_size(bem['surfs'])
 _fwd_bem_linear_collocation_solution(bem)
 logger.info('BEM geometry computations complete.')
 return bem

@ verbose def make_bem_solution ( surfs , verbose = None ) : logger . info ( 'Approximation method : Linear collocation\n' ) if isinstance ( surfs , string_types ) : logger . info ( 'Loading surfaces...' ) surfs = read_bem_surfaces ( surfs ) bem = ConductorModel ( is_sphere = False , surfs = surfs ) _add_gamma_multipliers ( bem ) if ( len ( bem [ 'surfs' ] ) == 3 ) : logger . info ( 'Three-layer model surfaces loaded.' ) elif ( len ( bem [ 'surfs' ] ) == 1 ) : logger . info ( 'Homogeneous model surface loaded.' ) else : raise RuntimeError ( 'Only 1- or 3-layer BEM computations supported' ) _check_bem_size ( bem [ 'surfs' ] ) _fwd_bem_linear_collocation_solution ( bem ) logger . info ( 'BEM geometry computations complete.' ) return bem
create a bem solution using the linear collocation approach .