Tudat/Astrodynamics/Aerodynamics/flightConditions.cpp
//! Function to update the independent variables of the aerodynamic coefficient interface
Function to update the independent variables of the aerodynamic coefficient interface
Function to update the independent variables of the aerodynamic coefficient interface
void AtmosphericFlightConditions::updateAerodynamicCoefficientInput( )
{
    aerodynamicCoefficientIndependentVariables_.clear( );
    for( unsigned int i = 0; i < aerodynamicCoefficientInterface_->getNumberOfIndependentVariables( ); i++ )
    {
        aerodynamicCoefficientIndependentVariables_.push_back(
                    getAerodynamicCoefficientIndependentVariable(
                        aerodynamicCoefficientInterface_->getIndependentVariableName( i ) ) );
    }
    controlSurfaceAerodynamicCoefficientIndependentVariables_.clear( );
    for( unsigned int i = 0; i < aerodynamicCoefficientInterface_->getNumberOfControlSurfaces( ); i++ )
    {
        std::string currentControlSurface = aerodynamicCoefficientInterface_->getControlSurfaceName( i );
        for( unsigned int j = 0; j < aerodynamicCoefficientInterface_->getNumberOfControlSurfaceIndependentVariables( currentControlSurface ); j++ )
        {
            controlSurfaceAerodynamicCoefficientIndependentVariables_[ currentControlSurface ].push_back(
                        getAerodynamicCoefficientIndependentVariable(
                            aerodynamicCoefficientInterface_->getControlSurfaceIndependentVariableName(
                                currentControlSurface, j ), currentControlSurface ) );
        }
    }
}
void AtmosphericFlightConditions :: updateAerodynamicCoefficientInput ( ) { aerodynamicCoefficientIndependentVariables_ . clear ( ) ; for ( unsigned int i = 0 ; i < aerodynamicCoefficientInterface_ -> getNumberOfIndependentVariables ( ) ; i ++ ) { aerodynamicCoefficientIndependentVariables_ . push_back ( getAerodynamicCoefficientIndependentVariable ( aerodynamicCoefficientInterface_ -> getIndependentVariableName ( i ) ) ) ; } controlSurfaceAerodynamicCoefficientIndependentVariables_ . clear ( ) ; for ( unsigned int i = 0 ; i < aerodynamicCoefficientInterface_ -> getNumberOfControlSurfaces ( ) ; i ++ ) { std :: string currentControlSurface = aerodynamicCoefficientInterface_ -> getControlSurfaceName ( i ) ; for ( unsigned int j = 0 ; j < aerodynamicCoefficientInterface_ -> getNumberOfControlSurfaceIndependentVariables ( currentControlSurface ) ; j ++ ) { controlSurfaceAerodynamicCoefficientIndependentVariables_ [ currentControlSurface ] . push_back ( getAerodynamicCoefficientIndependentVariable ( aerodynamicCoefficientInterface_ -> getControlSurfaceIndependentVariableName ( currentControlSurface , j ) , currentControlSurface ) ) ; } } }
Function to update the independent variables of the aerodynamic coefficient interface
Function to update the independent variables of the aerodynamic coefficient interface
// Calculate independent variables for aerodynamic coefficients.