Encyclopaedia Index

Some details of the SPARSOL and PARSOL methods

Contents

  1. Introduction
  2. Advantages and Disadvantages
  3. How cut-cell edges are detected

  1. Introduction

    SPARSOL and PARSOL are techniques used in PHOENICS to detect geometrical features which are not aligned with the cartesian or cylindrical-polar grid. The geometry of such features is created in PHOENICS-VR by either:

    The task of SPARSOL and PARSOL is to determine how the facets defining the geometry intersect the grid. The facets of all the non-grid-aligned objects comprising the model are sent to EARTH by means of a FACETDAT file, which is produced by the Virtual- Reality interface of PHOENICS when preparing to run Earth.

  2. Advantages and Disadvantages

    SParsol

    This is the default method for dealing with faceted objects of any shape, whether imported from CAD or using one of the supplied common shapes.

    It is activated by the setting

    ISG62=1; PARSOL=F

    in Group 19 of Q1, or by selecting 'SPARSOL' from the 'Cut-cell method' box of the Grid Mesh Settings dialog.

    Sparsol concentrates on the links between neighbour cells. It calculates the intersections of the cell-centre grid lines with the geometry and arranges that the distance from the node to the wall on either side is correct. The cell areas are also adjusted

    Advantages

    Disadvantages

    Parsol

    This method of dealing with faceted objects is an alternative to Sparsol, and is to be preferred when the details of the flow adjacent to the blockages are very important. It is activated by the settings

    ISG62=0; PARSOL=T

    in Group 19 of Q1, or by selecting 'PARSOL' from the 'Cut-cell method' box of the Grid Mesh Settings dialog.

    Parsol calculates the intersections of the cell-edge grid lines with the geometry, and divides the cell into two parts, one fluid and one solid. The definition of the surface is better than in Sparsol, but it does not handle thin objects well, as it only considers two parts to a cut cell.

    Advantages

    Disadvantages

    OldParsol

    This is the previous (pre PHOENICS 2019) version of Parsol. It is retained temporarily for customers wishing to preserve backward compatibility. It will be withdrawn at some stage. It is activated by:

    ISG62=0; ISG60 = 1; PARSOL=T

    in Group 19 of Q1, or by selecting 'Old-PARSOL' from the 'Cut-cell method' box of the Grid Mesh Settings dialog.

    Advantages

    Disadvantages

  3. How cut-cell edges are detected

    The 2D-Section Method (2DSM) is a reliable method of detecting the intersections of the facets defining the object with the grid lines. For this reason it is used in three all three versions - SParsol, Parsol and OldParsol.

    The calculation of the intersection coordinates in the first two differs only in where the grid lines are. In the first, they pass through the centers of the cells. In the second, they pass through the cell edges. The OldParsol feature, unlike the previous ones, uses a specially adapted version of 2DSM.

    The 2DSM proceeds as follows:

    1. The object intersection is detected plane by plane. Preliminary selection is used to make sure the detection is applied only to those facets which could possibly intersect with the plane by checking the dimensions of the bounding box of the object in question.

    2. The intersection between a plane and a facet edge is a segment with start and end points. The segment complies with the 'in-on-the-right' convention, which means the right side of the segment is in the object. The facet is slightly extended to avoid missing an intersection when the plane just touches the facet.

    3. Once all the segments within the plane are obtained together with the indications of whether the left side is fluid and the right side is solid, or vice versa, the intersections between grid lines and segments are calculated. A slight extension is also used to avoid missing an intersection, e.g. the line just touches the end of the segment, which could lead to objects missing in a column of cells.

      The further use of the calculated intersection coordinates is different for these features.

    OldParsol (pre PHOENICS 2019)

    After reading all facets of the current object OldParsol detects the cut-cells by means of consideration the fluid edge fractions of twelve edges of each cell inside the current object and calculates the cut-cell geometry. This is done for each object in such a way that the settings of the last object have the highest priority.

    Parsol (PHOENICS 2019 and newer)

    In contrast, Parsol considers objects more closely.

    It sorts all calculated intersections in a special way and sets for each object its own rank, which determines the priority in the processing of overlapping objects.

    1. Each grid line coincides with the edges of four columns of cells. The edge may be classified in three ways:
      • if the edge is wholly within a pair of intersection points, it means the edge is inside the object;
      • if it is outside the pair of intersection points, the edge is in fluid;
      • if one of the paired points falls on the edge, then the edge is cut.

      The edge fraction is then used to indicate which case is in question for each edge.

    2. Consequently, the cells are divided into three groups:
      • a cell with all twelve edges inside fluid is an open cell;
      • a cell with all twelve edges inside the object is a blocked cell; and
      • a cell with edges partly in object and partly in fluid is a cut cell, which is split into a fluid sub-cell and a blocked (solid) sub-cell.

    3. Then the necessary number of cut-cell geometry quantities, including centre coordinates, areas and volumes of sub-cells, etc, are calculated and stored in the PHOENICS F-array, and used by the PARSOL solver.

    SParsol

    The processing of the calculated intersections differs significantly for SParsol since it does not take into account the intersections of the cell edges, but it considers the intersections of the 'links' between the cell centers.

    1. It also sorts all calculated intersections of the links in a special way and sets the number of the rank for each object.

    2. Then it considers intersections of all links in each direction and sets the material numbers in the cells inside objects.

    3. After that, the geometric parameters of cells near blockage objects along cut-links are modified such as the cell face areas, the cut plane area, the normal vector, etc. No additional cut-cell storage locations are created.