Examples of BorisRelativistic


Examples of org.openpixi.pixi.physics.solver.relativistic.BorisRelativistic

    stt.setParticleList(
        createRandomParticles(stt.getSimulationWidth(), stt.getSimulationHeight(),
        stt.getSpeedOfLight() / 3, count, radius));
    stt.setBoundary(GeneralBoundaryType.Hardwall);
    //stt.setParticleSolver(new EulerRichardson());
    stt.setParticleSolver(new BorisRelativistic(stt.getSpeedOfLight()));
   

    Simulation simulation = new Simulation(stt);
    return simulation;
  }
View Full Code Here

Examples of org.openpixi.pixi.physics.solver.relativistic.BorisRelativistic

      }
      switch(i) {
      case 1:
        s.getParticleMover().setSolver(new LeapFrogRelativistic(s.getSpeedOfLight()));
      case 4:
        s.getParticleMover().setSolver(new BorisRelativistic(s.getSpeedOfLight()));
        break;
      case 6:
        s.getParticleMover().setSolver(new SemiImplicitEulerRelativistic(s.getSpeedOfLight()));
        break;
      }
View Full Code Here

Examples of org.openpixi.pixi.physics.solver.relativistic.BorisRelativistic

    settings.setSimulationWidth(10 * settings.getGridCellsX());
    settings.setSimulationHeight(10 * settings.getGridCellsY());
    settings.setNumOfParticles(100);
    settings.setIterations(100);
    // Ensures that the particles do not get too fast.
    settings.setParticleSolver(new BorisRelativistic(
        settings.getSimulationWidth() / settings.getTimeStep()));
    return settings;
  }
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.