Package org.openpixi.pixi.physics.util

Examples of org.openpixi.pixi.physics.util.DoubleBox


    localSettings.setSimulationHeight(cellHeight * mypart.ysize());
  }


  private Interpolation createInterpolationIterator(SharedDataManager sharedDataManager) {
    DoubleBox zoneOfLocalInfluence = new DoubleBox(
        (Grid.INTERPOLATION_RADIUS - 1) * localSettings.getCellWidth(),
        localSettings.getSimulationWidth() -
            Grid.INTERPOLATION_RADIUS * localSettings.getCellWidth(),
        (Grid.INTERPOLATION_RADIUS - 1) * localSettings.getCellHeight(),
        localSettings.getSimulationHeight() -
View Full Code Here


    return gridFactory.create();
  }


  private ParticleBoundaries createParticleBoundaries(SharedDataManager sharedDataManager) {
    DoubleBox simulationAreaInParticleDimensions = new DoubleBox(
        0, localSettings.getSimulationWidth(), 0, localSettings.getSimulationHeight());
    DoubleBox innerSimulationArea = new DoubleBox(
        0, localSettings.getSimulationWidth() - localSettings.getCellWidth(),
        0, localSettings.getSimulationHeight() - localSettings.getCellHeight());
    return new DistributedParticleBoundaries(
        simulationAreaInParticleDimensions, innerSimulationArea,
        localSettings.getParticleBoundary(), sharedDataManager);
View Full Code Here

    // TODO make particles a generic list
    particles = (ArrayList<Particle>) settings.getParticles();
    f = settings.getForce();

    ParticleBoundaries particleBoundaries = new SimpleParticleBoundaries(
        new DoubleBox(tstep, width, tstep, height),
        settings.getParticleBoundary());
    mover = new ParticleMover(
        settings.getParticleSolver(),
        particleBoundaries,
        settings.getParticleIterator());
View Full Code Here

    // TODO make particles a generic list
    particles = (ArrayList<Particle>) settings.getParticles();
    f = settings.getForce();

    ParticleBoundaries particleBoundaries = new SimpleParticleBoundaries(
        new DoubleBox(0, width, 0, height),
        settings.getParticleBoundary());
    mover = new ParticleMover(
        settings.getParticleSolver(),
        particleBoundaries,
        settings.getParticleIterator());
View Full Code Here

   * Determines the border cells and the indices of the corresponding ghost cells at remote nodes.
   * Since the corresponding border and ghost cells must have the same order,
   * the ghost cells are registered once the ghost cell indices (border cells map) is exchanged.
   */
  private void setUpBorderCells(Cell[][] myCells) {
    DoubleBox simAreaDouble = new DoubleBox(
        0,
        settings.getSimulationWidth(),
        0,
        settings.getSimulationHeight());
    DoubleBox innerSimAreaDouble = new DoubleBox(
        settings.getCellWidth(),
        settings.getSimulationWidth() - settings.getCellWidth(),
        settings.getCellHeight(),
        settings.getSimulationHeight() - settings.getCellHeight());

View Full Code Here

TOP

Related Classes of org.openpixi.pixi.physics.util.DoubleBox

Copyright © 2018 www.massapicom. 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.