Skip to content

Commit

Permalink
bug fix to beam utils when trapizodal integration is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
ecamare committed Jan 10, 2025
1 parent cb415f4 commit 4a8c7dd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pynumad/analysis/beam_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,11 @@ def get_bd_source_radial_stations(bd_sum_file_name):

with open(bd_sum_file_name) as blade_yaml:
data = yaml.load(blade_yaml,Loader=yaml.FullLoader)
node_location=list(np.array(data['Init_Nodes_E1'])[:,2]/np.array(data['Init_Nodes_E1'])[-1,2])
return node_location
if 'trap' in data['Quadrature_method'].lower():
return None #The the source locations are target locations
else:
node_location=list(np.array(data['Init_Nodes_E1'])[:,2]/np.array(data['Init_Nodes_E1'])[-1,2])
return node_location

# def get_bd_source_radial_stations(qp_location,blade_length,nqp): #Adds root and top to qp data

Expand Down

0 comments on commit 4a8c7dd

Please sign in to comment.