Tudat/Astrodynamics/Aerodynamics/flightConditions.cpp
//! Function to update all flight conditions.
Function to update all flight conditions.
Function to update all flight conditions .
void AtmosphericFlightConditions::updateConditions( const double currentTime )
{
    if( !( currentTime == currentTime_ ) )
    {
        currentTime_ = currentTime;
        if( aerodynamicAngleCalculator_!= nullptr )
        {
            aerodynamicAngleCalculator_->update( currentTime, false );
        }
        currentBodyCenteredAirspeedBasedBodyFixedState_ = bodyCenteredPseudoBodyFixedStateFunction_( );
        updateAerodynamicCoefficientInput( );
        if( aerodynamicAngleCalculator_!= nullptr )
        {
            aerodynamicAngleCalculator_->update( currentTime, true );
            updateAerodynamicCoefficientInput( );
        }
        aerodynamicCoefficientInterface_->updateFullCurrentCoefficients(
                    aerodynamicCoefficientIndependentVariables_, controlSurfaceAerodynamicCoefficientIndependentVariables_ );
    }
}
void AtmosphericFlightConditions :: updateConditions ( const double currentTime ) { if ( ! ( currentTime == currentTime_ ) ) { currentTime_ = currentTime ; if ( aerodynamicAngleCalculator_ != nullptr ) { aerodynamicAngleCalculator_ -> update ( currentTime , false ) ; } currentBodyCenteredAirspeedBasedBodyFixedState_ = bodyCenteredPseudoBodyFixedStateFunction_ ( ) ; updateAerodynamicCoefficientInput ( ) ; if ( aerodynamicAngleCalculator_ != nullptr ) { aerodynamicAngleCalculator_ -> update ( currentTime , true ) ; updateAerodynamicCoefficientInput ( ) ; } aerodynamicCoefficientInterface_ -> updateFullCurrentCoefficients ( aerodynamicCoefficientIndependentVariables_ , controlSurfaceAerodynamicCoefficientIndependentVariables_ ) ; } }
Function to update all flight conditions.
Function to update all flight conditions .
// Update aerodynamic angles (but not angles w.r.t. body-fixed frame). // Calculate state of vehicle in global frame and corotating frame. // Update angles from aerodynamic to body-fixed frame (if relevant). // Update aerodynamic coefficients.