Exemplo n.º 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;

        }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
 protected abstract bool Generate(BoundaryMeshSettings boundaryMeshSettings);
Exemplo n.º 5
0
 protected Mesh2D(Shape shape)
 {
     initMeshElements();
     BoundaryMeshSettings = new BoundaryMeshSettings(shape);
     isSettingsSetted = false;
 }
Exemplo n.º 6
0
 protected Mesh2D(BoundaryMeshSettings boundaryMeshSettings)
 {
     initMeshElements();
     BoundaryMeshSettings = boundaryMeshSettings;
     isSettingsSetted = true;
 }
Exemplo n.º 7
0
 protected abstract bool Generate(BoundaryMeshSettings boundaryMeshSettings);
Exemplo n.º 8
0
 protected Mesh2D(Shape shape)
 {
     initMeshElements();
     BoundaryMeshSettings = new BoundaryMeshSettings(shape);
     isSettingsSetted     = false;
 }
Exemplo n.º 9
0
 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;
 }