예제 #1
0
        public void CrossSectionExamplesAddCrossSection()
        {
            string sim11Filepath = Path.Combine(ExampleBase.ExampleRoot, @"CrossSection\Simulation.sim11");
            string xns11Filepath = Path.Combine(ExampleBase.ExampleRoot, @"CrossSection\CrossSections.xns11");

            CrossSectionExamples.AddCrossSectionAndSave(xns11Filepath);
            CrossSectionExamples.AddCrossSectionAndRun(sim11Filepath);
        }
예제 #2
0
        public void CrossSectionExamplesLoopAllCrossSections()
        {
            string xns11Filepath = Path.Combine(ExampleBase.ExampleRoot, @"CrossSection\CrossSections.xns11");

            // Load cross section data
            Diagnostics             diagnostics   = new Diagnostics("Errors");
            CrossSectionDataFactory csDataFactory = new CrossSectionDataFactory();
            CrossSectionData        csData        = csDataFactory.Open(Connection.Create(xns11Filepath), diagnostics);

            // Loop over all cross sections
            CrossSectionExamples.LoopAllCrossSections(csData);

            // Save the cross section as a new file name
            csData.Connection.FilePath.FileNameWithoutExtension += "-csLoop";
            CrossSectionDataFactory.Save(csData);
        }
예제 #3
0
        public void CrossSectionExamplesModifyCrossSectionProcessed()
        {
            string xns11Filepath = Path.Combine(ExampleBase.ExampleRoot, @"CrossSection\CrossSections.xns11");

            CrossSectionExamples.ModifyCrossSectionProcessedAndSave(xns11Filepath);
        }
예제 #4
0
        public void CrossSectionExamplesNavigation()
        {
            string xns11Filepath = Path.Combine(ExampleBase.ExampleRoot, @"Vida\Vida96-1.xns11");

            CrossSectionExamples.Navigation(xns11Filepath);
        }