src/AircraftTrajectories/Models/IntegratedNoiseModel/IntegratedNoiseModel.cs
/// <summary>
/// Creates the position file for a particular time step
/// </summary>
/// <param name="t"></param>
Creates the position file for a particular time step
Creates the position file for a particular time step
protected void CreatePositionFile(int t)
        {
            using (System.IO.StreamWriter file =
            new System.IO.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("====================================================================================");
                file.WriteLine(_trajectory.X(t)        + "      " + _trajectory.Y(t)        + "     " + _trajectory.Z(t)        + "     " + _trajectory.Speed(t) + "      " + _trajectory.Thrust(t) + "        2");
                file.WriteLine(_trajectory.X(t + 0.01) + "      " + _trajectory.Y(t + 0.01) + "     " + _trajectory.Z(t + 0.01) + "     " + _trajectory.Speed(t + 0.01) + "      " + _trajectory.Thrust(t + 0.01) + "        2");
                file.WriteLine();
                file.WriteLine("nois_id / engine mount");
                file.WriteLine("====================================================================================");
                file.WriteLine(_aircraft.EngineId);
                file.WriteLine(_aircraft.EngineMount);
            }
        }
protected void CreatePositionFile ( int t ) { using ( System . IO . StreamWriter file = new System . IO . StreamWriter ( Globals . currentDirectory + " " + FileSuffix + " " , false ) ) { file . WriteLine ( " " ) ; file . WriteLine ( " " ) ; file . WriteLine ( " " ) ; file . WriteLine ( " " ) ; file . WriteLine ( " " ) ; file . WriteLine ( _trajectory . X ( t ) + " " + _trajectory . Y ( t ) + " " + _trajectory . Z ( t ) + " " + _trajectory . Speed ( t ) + " " + _trajectory . Thrust ( t ) + " " ) ; file . WriteLine ( _trajectory . X ( t + 0.01 ) + " " + _trajectory . Y ( t + 0.01 ) + " " + _trajectory . Z ( t + 0.01 ) + " " + _trajectory . Speed ( t + 0.01 ) + " " + _trajectory . Thrust ( t + 0.01 ) + " " ) ; file . WriteLine ( ) ; file . WriteLine ( " " ) ; file . WriteLine ( " " ) ; file . WriteLine ( _aircraft . EngineId ) ; file . WriteLine ( _aircraft . EngineMount ) ; } }
Creates the position file for a particular time step
Creates the position file for a particular time step
t
int
None