Exemplo n.º 1
0
    def get_h_z(*args):
    	"""
	Returns the array of z_components of the magnetic field.
	"""
    	if(_get_nfeh(*args) == 1):
		return _PyNEC.nec_near_field_pattern_get_field_z(*args)
	else:
		error_msg = "This result is a Near Electric Field Pattern. Try and get 'e_z' instead."
		raise exceptions.Warning(error_msg)
Exemplo n.º 2
0
    def get_h_z(*args):
    	"""
	Returns the array of z_components in amps / meters of the magnetic field.
	"""
    	nfeh = _get_nfeh(*args)
    	if nfeh == 1 :
		return _PyNEC.nec_near_field_pattern_get_field_z(*args)
	elif nfeh == 0:
		error_msg = "This result is a Near Electric Field Pattern. Try and get 'e_z' instead."
		raise exceptions.Warning(error_msg)
	else :
		error_msg = "Unknown near_field_type : " + nfeh.__str__() + "."
		raise exceptions.Warning(error_msg)