コード例 #1
0
        public void FunctionsAreContiniousTest()
        {
            var bound = new ParallelepipedNearBound();

            foreach (var point in bound.CornerPoints)
            {
                var x = FunctionFactory.G(point);
                var y = FunctionFactory.Gother(point);
                Assert.AreEqual(x, y);
            }
        }
コード例 #2
0
        public void DoWork()
        {
            var bound = new ParallelepipedNearBound();
            // var bound = new Parallelepiped();
            // Writer.OutputIfAllowed(bound, "bound.txt");
            //var boundWithCondition = ConditionSetter.SetMixedCondition(bound);
            var boundWithCondition = ConditionSetter.SetKirghoffCondition(bound);
            // var source = new InnerSourcePlate();
            var source = new List <InnerSourceWithFunction <Point3D> >(); //no innersors CollocationKirghoffMethod
            // var innerSource = InnerSourceFactory.GetSourcesPlate(source);
            //var method = MethodFactory.GetCollocationMethodNearBoundary(boundWithCondition);//, innerSource);
            var method = MethodFactory.GetCollocationKirghoffMethod(
                boundWithCondition,
                source,
                KirghoffTransformation.Exp,
                KirghoffTransformation.ConverseExp);

            method.Solve();
            method.PlotErrorOnBound();
            var plotter = PlotterFactory.GetPlotter(bound, method.U);

            plotter.Plot();
        }