Package org.openpixi.pixi.physics.util

Examples of org.openpixi.pixi.physics.util.IntBox.xmin()


    int region = BoundaryRegions.X_MIN + BoundaryRegions.Y_MIN;
    int neighbor = neighborMap.getBoundaryNeighbor(region);
    String identification = identificationString(
        GeneralBoundaryType.Hardwall, myPartID, region, "boundary-corner");

    if (myPart.xmin() != globalSimulation.xmin() || myPart.ymin() != globalSimulation.ymin()) {

      // If the region is not a simulation corner it must have one neighbor
      testForAnyNeighbor(neighbor, partitions.length, identification);
    } else {
View Full Code Here


    identification = identificationString(
        GeneralBoundaryType.Hardwall, myPartID, region, "border-edge");

    testPotentialNeighborsCount(1, neighbors.length,  identification);

    if (myPart.xmin() != globalSimulation.xmin()) {
      testForAnyNeighbor(neighbors[0], partitions.length, identification);
    }
    else {
      testForNoNeighbor(neighbors[0], identification);
    }
View Full Code Here

    int xstart = 0;
    int ystart = 0;
    int xend = mypart.xsize() - 1;
    int yend = mypart.ysize() - 1;
    if (mypart.xmin() == 0) {
      xstart -= Grid.EXTRA_CELLS_BEFORE_GRID;
    }
    if (mypart.xmax() == globalSettings.getGridCellsX() - 1) {
      xend += Grid.EXTRA_CELLS_AFTER_GRID;
    }
View Full Code Here

    IntBox neighborPart = partitions[neighbor];

    int xdirec = 0;
    int ydirec = 0;

    if (myPart.xmax() < neighborPart.xmin()) {
      xdirec = +1;
    }
    else if (neighborPart.xmax() < myPart.xmin()) {
      xdirec = -1;
    }
View Full Code Here

        largestXmax = b.xmax();
      }
      if (b.ymax() > largestYmax) {
        largestYmax = b.ymax();
      }
      if (b.xmin() < smallestXmin) {
        smallestXmin = b.xmin();
      }
      if (b.ymin() < smallestYmin) {
        smallestYmin = b.ymin();
      }
View Full Code Here

      }
      if (b.ymax() > largestYmax) {
        largestYmax = b.ymax();
      }
      if (b.xmin() < smallestXmin) {
        smallestXmin = b.xmin();
      }
      if (b.ymin() < smallestYmin) {
        smallestYmin = b.ymin();
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.