Tudat/Astrodynamics/Aerodynamics/flightConditions.cpp
//! Function to set custom dependency of aerodynamic coefficients
Function to set custom dependency of aerodynamic coefficients
Function to set custom dependency of aerodynamic coefficients
void AtmosphericFlightConditions::setAerodynamicCoefficientsIndependentVariableFunction(
        const AerodynamicCoefficientsIndependentVariables independentVariable,
        const std::function< double( ) > coefficientDependency )
{
    if( ( independentVariable == mach_number_dependent ) ||
            ( independentVariable == angle_of_attack_dependent ) ||
            ( independentVariable == angle_of_sideslip_dependent )||
            ( independentVariable == altitude_dependent ) )
    {
        throw std::runtime_error(
                    std::string( "Error when setting aerodynamic coefficient function dependency, value of parameter " ) +
                    std::to_string( independentVariable ) +
                    std::string(", will not  be used." ) );
    }
    else
    {
        customCoefficientDependencies_[ independentVariable ] = coefficientDependency;
    }
}
void AtmosphericFlightConditions :: setAerodynamicCoefficientsIndependentVariableFunction ( const AerodynamicCoefficientsIndependentVariables independentVariable , const std :: function < double ( ) > coefficientDependency ) { if ( ( independentVariable == mach_number_dependent ) || ( independentVariable == angle_of_attack_dependent ) || ( independentVariable == angle_of_sideslip_dependent ) || ( independentVariable == altitude_dependent ) ) { throw std :: runtime_error ( std :: string ( " " ) + std :: to_string ( independentVariable ) + std :: string ( " " ) ) ; } else { customCoefficientDependencies_ [ independentVariable ] = coefficientDependency ; } }
Function to set custom dependency of aerodynamic coefficients
Function to set custom dependency of aerodynamic coefficients