Skip to content

Commit

Permalink
Have touchdown tools.touchdown_distance() also provide a_BC
Browse files Browse the repository at this point in the history
  • Loading branch information
pweissgraeber committed Apr 5, 2024
1 parent 5e7277e commit 10a37f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion weac/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,14 @@ def touchdown_distance(
touchdown.calc_segments(L=1e5, a=0, phi=phi)
first_contact = touchdown.calc_a1()

# Compute cut length associated to transition from stage B to C,
# associated with the maximum of the ERR
length_BC = touchdown.calc_a2()

# Compute steady-state touchdown distance in a dummy PST with a cut
# of 5 times the first contact distance
touchdown.calc_segments(L=1e5, a=5*first_contact, phi=phi)
steady_state = touchdown.calc_lC()

# Return first-contact cut length and steady-state touchdown distance (mm)
return first_contact, steady_state
return first_contact, length_BC, steady_state

0 comments on commit 10a37f7

Please sign in to comment.