RCAIDE.Library.Mission.Solver.expand_state

expand_state#

expand_state(segment)[source]#

Expands all state vectors to match number of control points

Parameters:

segment (Segment) –

The mission segment being analyzed
  • state:
    numerics:
    number_of_control_pointsint

    Number of discretization points [-]

    expand_rowsfunction

    Method to expand state containers

Return type:

None

Notes

This function ensures all state vectors in the segment have consistent dimensions by expanding them to match the number of control points used for discretization.

Calculation Process
  1. Get required vector size from numerics

  2. Call expand_rows to resize all state containers:
    • conditions

    • unknowns

    • residuals

    • differentials

Major Assumptions
  • All state vectors should have same length

  • Expansion preserves vector values

  • State containers support expand_rows method

  • Control points already properly set