Example #1
0
        protected override bool Generate(BoundaryMeshSettings boundaryMeshSettings)
        {
            bool res = true;

            GenerateMeshNodes(_countWidthElements, _countHeightElements);
            GenerateFiniteElements(_countWidthElements, _countHeightElements);
            GenerateBoundarySegments(_countWidthElements, _countHeightElements);
            return(res);
        }
        protected override bool Generate(BoundaryMeshSettings boundaryMeshSettings)
        {
            bool res = true;
            GenerateMeshNodes(_countWidthElements, _countHeightElements);
            GenerateFiniteElements(_countWidthElements, _countHeightElements);
            GenerateBoundarySegments(_countWidthElements, _countHeightElements);
            return res;

        }
Example #3
0
        protected override BoundaryMeshSettings getDefaultBoundaryMeshSettings(Shape shape)
        {
            BoundaryMeshSettings settings = new BoundaryMeshSettings(shape);

            for (int i = 0; i < shape.Edges.Count; i++)
            {
                if (i % 2 == 0)
                {
                    settings.Settings.Add(new BoundaryMesh(shape.Edges[i], _countHeightElements));
                }
                else
                {
                    settings.Settings.Add(new BoundaryMesh(shape.Edges[i], _countWidthElements));
                }
            }
            return(settings);
        }
 protected abstract bool Generate(BoundaryMeshSettings boundaryMeshSettings);
 protected Mesh2D(Shape shape)
 {
     initMeshElements();
     BoundaryMeshSettings = new BoundaryMeshSettings(shape);
     isSettingsSetted = false;
 }
 protected Mesh2D(BoundaryMeshSettings boundaryMeshSettings)
 {
     initMeshElements();
     BoundaryMeshSettings = boundaryMeshSettings;
     isSettingsSetted = true;
 }
 protected abstract bool Generate(BoundaryMeshSettings boundaryMeshSettings);
 protected Mesh2D(Shape shape)
 {
     initMeshElements();
     BoundaryMeshSettings = new BoundaryMeshSettings(shape);
     isSettingsSetted     = false;
 }
 protected Mesh2D(BoundaryMeshSettings boundaryMeshSettings)
 {
     initMeshElements();
     BoundaryMeshSettings = boundaryMeshSettings;
     isSettingsSetted     = true;
 }
 protected override BoundaryMeshSettings getDefaultBoundaryMeshSettings(Shape shape)
 {
     BoundaryMeshSettings settings = new BoundaryMeshSettings(shape);
     for(int i = 0; i < shape.Edges.Count;i++)
     {
         if (i % 2 == 0)
         {
             settings.Settings.Add(new BoundaryMesh(shape.Edges[i], _countHeightElements));
         }
         else {
             settings.Settings.Add(new BoundaryMesh(shape.Edges[i], _countWidthElements));
         }
     }
     return settings;
 }