Exemple #1
0
        /// <summary>
        /// Initializes the plot driver
        /// </summary>
        protected void CreatePlotter()
        {
            switch (m_format)
            {
            case FieldStateConfiguration.ExportFormats.TecPlot:
                m_PlotDriver = new Tecplot(this.GridDat, m_showJumps, m_GhostZone, (uint)m_config.SuperSampling);
                break;

            case FieldStateConfiguration.ExportFormats.Cgns:
                throw new NotImplementedException();
            //m_PlotDriver = new CgnsExport(this.GridDat, false, m_showJumps, m_GhostZone, (uint)m_config.SuperSampling);
            //break;

            case FieldStateConfiguration.ExportFormats.Hdf5:
                throw new NotImplementedException();
            //m_PlotDriver = new CgnsExport(this.GridDat, true, m_showJumps, m_GhostZone, (uint)m_config.SuperSampling);
            //break;

            case FieldStateConfiguration.ExportFormats.CSV:
                m_PlotDriver = new CSVExportDriver(this.GridDat, m_showJumps, (uint)m_config.SuperSampling);
                break;

            case FieldStateConfiguration.ExportFormats.Curve:
                m_PlotDriver = new CurveExportDriver(this.GridDat, m_showJumps, (uint)m_config.SuperSampling);
                break;

            case FieldStateConfiguration.ExportFormats.BinaryStream:
                m_PlotDriver = new BinaryStreamExportDriver(this.GridDat, m_showJumps, m_GhostZone, (uint)m_config.SuperSampling);
                break;

            default:
                throw new NotImplementedException();
            }
        }
Exemple #2
0
 protected override void PlotCurrentState(double physTime, TimestepNumber timestepNo, int superSampling = 0)
 {
     if (plotDriver == null)
     {
         plotDriver = new Tecplot(GridData, true, false, (uint)superSampling);
     }
     UpdateDerivedVariables();
     plotDriver.PlotFields("XDGShockTest-" + timestepNo, physTime, m_IOFields);
 }