Esempio n. 1
0
        private static string CalcOneMethod(SemiSpaceParameters parameters)
        {
            var bound12 = new Parallelepiped(-1, 1, -1, 1, FunctionsForSemiSpace.H, 1, 4, 4, 4)
            {
                Name = BoundNumber.Bound12
            };
            var bound2 = new Parallelepiped(-1, 1, -1, 1, FunctionsForSemiSpace.H, 1, 4, 4, 4)
            {
                Name = BoundNumber.Bound2
            };
            var bound13 = new Parallelepiped(-1, 1, 0, 1, -1, FunctionsForSemiSpace.H, 4, 4, 4)
            {
                Name = BoundNumber.Bound13
            };
            var bound3 = new Parallelepiped(-1, 1, 0, 1, -1, FunctionsForSemiSpace.H, 4, 4, 4)
            {
                Name = BoundNumber.Bound3
            };
            //   var bound12 = new Sphere(new Point3D(5, 0, FunctionsForSemiSpace.H)) { Name = BoundNumber.Bound12 };
            //var bound2 = new Sphere(new Point3D(5, 0, FunctionsForSemiSpace.H)) { Name = BoundNumber.Bound2 };
            //  var bound13 = new Sphere(new Point3D(5, 0, FunctionsForSemiSpace.H)) { Name = BoundNumber.Bound13 };
            //  var bound3 = new Sphere(new Point3D(5, 0, FunctionsForSemiSpace.H)) { Name = BoundNumber.Bound3 };
            var boundWithCondition = ConditionSetter.SetBoundSphere(bound12, bound2, bound13, bound3).ToList();
            //   var boundWithCondition = ConditionSetter.SetBoundSphere(bound12, bound2).ToList();
            var method = MethodFactory.GetSphereMethod(boundWithCondition, null, parameters);

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

            plotter.Plot();
            return(plotter.FormatedFileName);
        }
Esempio n. 2
0
 public TwoSphereMethod(List <BoundWithCondition <Point3D> > bound, List <InnerSourceWithFunction <Point3D> > sources, Integrator <Point3D> integrator, SemiSpaceParameters parameters)
     : base(bound, sources, null, null, integrator)
 {
     this.parameters       = parameters;
     functionsForSemiSpace = new FunctionsForSemiSpace(parameters);
 }
Esempio n. 3
0
 public PlotterTwoSphere(Func <Point3D, double> solution, SemiSpaceParameters parameters)
     : base(null, solution)
 {
     this.parameters = parameters;
 }
Esempio n. 4
0
 public static PlotterTwoSphere GetPlotter(Func <Point3D, double> solution, SemiSpaceParameters parameters)
 {
     return(new PlotterTwoSphere(solution, parameters));
 }