src/AircraftTrajectories/Models/IntegratedNoiseModel/IntegratedNoiseModel.cs
/// <summary>
/// Creates the position file for the whole trajectory
/// </summary>
Creates the position file for the whole trajectory
Creates the position file for the whole trajectory
protected void CreateTrajectoryFile()
        {
            using (StreamWriter file =
                    new StreamWriter(Globals.currentDirectory + "current_position" + FileSuffix + ".dat", false))
            {
                file.WriteLine("Sys");
                file.WriteLine("====================================================================================");
                file.WriteLine("met");
                file.WriteLine("         x         y         h         V         T         m");
                file.WriteLine("====================================================================================");
                for (int t = 0; t < _trajectory.Duration; t = t+20)
                {
                    file.WriteLine(_trajectory.X(t) + "      " + _trajectory.Y(t)  + "     " + _trajectory.Z(t) + "     " + _trajectory.Speed(t) + "       " + _trajectory.Thrust(t) + "        2");
                }
                file.WriteLine();
                file.WriteLine("nois_id / engine mount");
                file.WriteLine("====================================================================================");
                file.WriteLine(_aircraft.EngineId);
                file.Write(_aircraft.EngineMount);
            }
        }
protected void CreateTrajectoryFile ( ) { using ( StreamWriter file = new StreamWriter ( Globals . currentDirectory + " " + FileSuffix + " " , false ) ) { file . WriteLine ( " " ) ; file . WriteLine ( " " ) ; file . WriteLine ( " " ) ; file . WriteLine ( " " ) ; file . WriteLine ( " " ) ; for ( int t = 0 ; t < _trajectory . Duration ; t = t + 20 ) { file . WriteLine ( _trajectory . X ( t ) + " " + _trajectory . Y ( t ) + " " + _trajectory . Z ( t ) + " " + _trajectory . Speed ( t ) + " " + _trajectory . Thrust ( t ) + " " ) ; } file . WriteLine ( ) ; file . WriteLine ( " " ) ; file . WriteLine ( " " ) ; file . WriteLine ( _aircraft . EngineId ) ; file . Write ( _aircraft . EngineMount ) ; } }
Creates the position file for the whole trajectory
Creates the position file for the whole trajectory