Package org.openpixi.pixi.physics.fields

Examples of org.openpixi.pixi.physics.fields.SimpleSolver


    stt.setSimulationWidth(100);
    stt.setSimulationHeight(100);

    stt.setGridCellsX(100);
    stt.setGridCellsY(100);
    stt.setGridSolver(new SimpleSolver());
    stt.setInterpolator(new ChargeConservingCIC());

    this.s = new Simulation(stt);
    this.g = s.grid;
    g.resetCurrent();
View Full Code Here


    stt.setParticleRadius(1);
    stt.setParticleMaxSpeed(stt.getSpeedOfLight());

    stt.setGridCellsX(100);
    stt.setGridCellsY(100);
    stt.setGridSolver(new SimpleSolver());
    stt.setInterpolator(new ChargeConservingCIC());

    Simulation s = new Simulation(stt);
    PoissonSolverCalculations.output(s.grid);
  }
View Full Code Here

  /**
   * THIS TEST IS CURRENTLY DISABLED! (it does not test the right thing)
   */
  private void testMove(double x1, double y1, double x2, double y2, double charge, String text) {
    Settings stt = GridTestCommon.getCommonSettings();
    stt.setGridSolver(new SimpleSolver());
    stt.setInterpolator(new ChargeConservingCIC());

    // Add single particle
    Particle p = new ParticleFull();
    p.setX(x1);
View Full Code Here

  /**
   * THIS TEST IS CURRENTLY DISABLED! (it does not test the right thing)
   */
  private void testMoveForce(double x1, double y1, double vx, double vy, double ex, double bz, double charge, String text) {
    Settings stt = GridTestCommon.getCommonSettings();
    stt.setGridSolver(new SimpleSolver());
    stt.setInterpolator(new ChargeConservingCIC());

    // Add single particle
    Particle p = new ParticleFull();
    p.setX(x1);
View Full Code Here

  stt.setSimulationWidth(100);
  stt.setSimulationHeight(100);
            stt.setNumOfParticles(2);

  stt.setBoundary(GeneralBoundaryType.Periodic);
            stt.setGridSolver(new SimpleSolver());

  for (int k = 0; k < 2; k++) {
    Particle par = new ParticleFull();
    par.setX(stt.getSimulationWidth() * 1/9.0*(k+4));
    par.setY(stt.getSimulationHeight() * 1/2);
 
View Full Code Here

  }
 
  private void testMove(double x1, double y1, double x2, double y2, double charge, String text) {
    Settings stt = GridTestCommon.getCommonSettings();
    stt.setInterpolator(new CloudInCell());
    stt.setGridSolver(new SimpleSolver());

    // Add single particle
    Particle p = new ParticleFull();
    p.setX(x1);
    p.setY(y1);
View Full Code Here

  }

  private void testMoveForce(double x1, double y1, double vx, double vy, double ex, double bz, double charge, String text) {
    Settings stt = GridTestCommon.getCommonSettings();
    stt.setInterpolator(new CloudInCell());
    stt.setGridSolver(new SimpleSolver());

    // Add single particle
    Particle p = new ParticleFull();
    p.setX(x1);
    p.setY(y1);
View Full Code Here

    settings = ClassCopier.copy(defaultSettings);
    settings.setInterpolator(new CloudInCell());
    variousTestSettings.put("CloudInCell", settings);

    settings = ClassCopier.copy(defaultSettings);
    settings.setGridSolver(new SimpleSolver());
    variousTestSettings.put("SimpleSolver", settings);

    // Fails because SpringForce uses particle's absolute y position to calculate the force.
    // Since the y position in local and distributed simulation differs,
    // it also has a different effect.
View Full Code Here

TOP

Related Classes of org.openpixi.pixi.physics.fields.SimpleSolver

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.