Skip to content

Commit

Permalink
Give a cross sectional HD member property to OF at each joint location
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Dec 20, 2023
1 parent c1f1599 commit 900a88d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions weis/aeroelasticse/openmdao_openfast.py
Original file line number Diff line number Diff line change
Expand Up @@ -1384,21 +1384,21 @@ def update_FAST_model(self, fst_vt, inputs, discrete_inputs):
# Store data
n_joints = joints_xyz.shape[0]
n_members = N1.shape[0]
ijoints = np.arange( n_joints, dtype=np.int_ ) + 1
imembers = np.arange( n_members, dtype=np.int_ ) + 1
fst_vt['HydroDyn']['NJoints'] = n_joints
fst_vt['HydroDyn']['JointID'] = 1 + np.arange( n_joints, dtype=np.int_)
fst_vt['HydroDyn']['JointID'] = ijoints
fst_vt['HydroDyn']['Jointxi'] = joints_xyz[:,0]
fst_vt['HydroDyn']['Jointyi'] = joints_xyz[:,1]
fst_vt['HydroDyn']['Jointzi'] = joints_xyz[:,2]
fst_vt['HydroDyn']['NPropSets'] = n_members
fst_vt['HydroDyn']['PropSetID'] = imembers
fst_vt['HydroDyn']['NPropSets'] = n_joints # each joint has a cross section
fst_vt['HydroDyn']['PropSetID'] = ijoints
fst_vt['HydroDyn']['PropD'] = d_coarse
fst_vt['HydroDyn']['PropThck'] = t_coarse
fst_vt['HydroDyn']['NMembers'] = n_members
fst_vt['HydroDyn']['MemberID'] = imembers
fst_vt['HydroDyn']['MJointID1'] = N1
fst_vt['HydroDyn']['MJointID2'] = N2
fst_vt['HydroDyn']['MPropSetID1'] = fst_vt['HydroDyn']['MPropSetID2'] = imembers
fst_vt['HydroDyn']['MJointID1'] = fst_vt['HydroDyn']['MPropSetID1'] = N1
fst_vt['HydroDyn']['MJointID2'] = fst_vt['HydroDyn']['MPropSetID2'] = N2
fst_vt['HydroDyn']['MDivSize'] = 0.5*np.ones( fst_vt['HydroDyn']['NMembers'] )
fst_vt['HydroDyn']['MCoefMod'] = np.ones( fst_vt['HydroDyn']['NMembers'], dtype=np.int_)
fst_vt['HydroDyn']['JointAxID'] = np.ones( fst_vt['HydroDyn']['NJoints'], dtype=np.int_)
Expand Down

0 comments on commit 900a88d

Please sign in to comment.