Beispiel #1
0
        public static void IsentropicVortexIdealGasOptimizedHLLCTest()
        {
            Program <VortexControl> p = null;

            Application <VortexControl> ._Main(
                new string[] { @"-c cs:CNS.Tests.IsentropicVortex.ControlFiles.IsentropicVortexIdealGasOptimizedHLLC()" },
                false,
                delegate() {
                p = new IsentropicVortexTest();
                return(p);
            });

            CheckErrorThresholds(
                p.QueryHandler.QueryResults,
                Tuple.Create("L2ErrorDensity", 4e-3),
                Tuple.Create("L2ErrorPressure", 5e-3),
                Tuple.Create("L2ErrorEntropy", 3.15e-3));
        }
Beispiel #2
0
        public static void IsentropicVortexStiffenedlGasRusanovTest()
        {
            Program <VortexControl> p = null;

            Application <VortexControl> ._Main(
                new string[] { @"-c cs:CNS.Tests.IsentropicVortex.ControlFiles.IsentropicVortexStiffenedGasRusanov()" },
                false,
                delegate() {
                p = new IsentropicVortexTest();
                return(p);
            });

            CheckErrorThresholds(
                p.QueryHandler.QueryResults,
                Tuple.Create("L2ErrorDensity", 2e-2),
                Tuple.Create("L2ErrorPressure", 6e-2),
                Tuple.Create("L2ErrorEntropy", 2e-3));
        }