Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Updated pole.cpp (#1317)
Browse files Browse the repository at this point in the history
Fixed the angle used in calculation of pole moment_x and moment_y  to be tilt direction instead of degree of tilt

Signed-off-by: AllisonBrand <[email protected]>
Signed-off-by: David P. Chassin <[email protected]>
  • Loading branch information
AllisonBrand authored and dchassin committed Sep 22, 2023
1 parent 515462b commit 40bce0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/powerflow/pole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ TIMESTAMP pole::postsync(TIMESTAMP t0) ////
verbose("equipment_moment_x = %g ft*lb (moment in x-axis)", equipment_moment_x);
verbose("equipment_moment_y = %g ft*lb (moment in y-axis)", equipment_moment_y);

double pole_moment_x = pole_moment_wind*cos(wind_direction*PI/180)+pole_moment*cos(tilt_angle/180*PI);
double pole_moment_y = pole_moment_wind*sin(wind_direction*PI/180)+pole_moment*sin(tilt_angle/180*PI);
double pole_moment_x = pole_moment_wind*cos(wind_direction*PI/180)+pole_moment*cos(tilt_direction*PI/180);
double pole_moment_y = pole_moment_wind*sin(wind_direction*PI/180)+pole_moment*sin(tilt_direction*PI/180);
verbose("pole_moment_x = %g ft*lb (moment in x-axis)", pole_moment_x);
verbose("pole_moment_y = %g ft*lb (moment in y-axis)", pole_moment_y);

Expand Down

0 comments on commit 40bce0f

Please sign in to comment.