Class DiskSector

    • Field Detail

      • r

        public final double r
      • theta1

        public final double theta1
      • theta2

        public final double theta2
      • n

        public final int n
      • k

        public final int k
    • Constructor Detail

      • DiskSector

        public DiskSector()
        Create half a disk in the xy-plane with radius 1, with 8 spokes coming out of the center, and with 6 concentric circles around the disk.
      • DiskSector

        public DiskSector​(double r,
                          double theta1,
                          double theta2,
                          int n,
                          int k)
        Create a sector of a disk in the xy-plane with radius r, starting angle theta1, ending angle theta2, with k spokes coming out of the center, and with n concentric circles around the disk.

        If there are k spokes, then each (partial) circle around the center will have k-1 line segments. If there are n concentric circles around the center, then each spoke will have n line segments.

        There must be at least four spokes and at least one concentric circle.

        Parameters:
        r - radius of the disk
        theta1 - beginning angle of the sector (in radians)
        theta2 - ending angle of the sector (in radians)
        n - number of concentric circles
        k - number of spokes in the disk
        Throws:
        IllegalArgumentException - if n is less than 1
        IllegalArgumentException - if k is less than 4
    • Method Detail

      • remake

        public DiskSector remake​(int n,
                                 int k)
        Description copied from interface: MeshMaker
        Build an instance of the Model with new values for the number of lines of latitude and longitude while keeping all the other model parameters the same.
        Specified by:
        remake in interface MeshMaker
        Parameters:
        n - number of lines of latitude for the returned Model
        k - number of lines of longitude for the returned Model
        Returns:
        a new instance of the Model with the updated parameters