Package org.openpixi.pixi.ui.util

Examples of org.openpixi.pixi.ui.util.WriteFile.writeLine()


    //creates new file "efield.dat" in working directory and writes
    //field data to it
    WriteFile fieldFile = new WriteFile("efeld", "");
    for (int i = 0; i < g.getNumCellsX(); i++) {
      for(int j = 0; j < g.getNumCellsY(); j++) {
        fieldFile.writeLine(i*g.getCellWidth() + "\t" + j*g.getCellHeight() +
            "\t" + g.getEx(i, j) + "\t" + g.getEy(i, j));
      }
    }
    fieldFile.closeFstream();
   
View Full Code Here


    fieldFile.closeFstream();
   
    WriteFile potentialFile = new WriteFile("potential", "");
    for (int i = 0; i < g.getNumCellsX(); i++) {
      for(int j = 0; j < g.getNumCellsY(); j++) {
        potentialFile.writeLine(i*g.getCellWidth() + "\t" + j*g.getCellHeight()  + "\t" + g.getPhi(i, j));
      }
    }
    potentialFile.closeFstream();
   
    //YOU NEED GNUPLOT FOR THIS http://www.gnuplot.info/
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.