?? main.java
字號:
/*
* 給二維D2Q9界面模擬產生初始條件
* Modify by CXJ
* version bubble
*/
package testconditon;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import testconditon.imageload.imageMain;
/**
*
* @author 張偉
*/
public class Main {
/**
* 計算域相關變量聲??
*/
public static int XX ;
public static int YY ;
/*
* flag 聲明
* CONST_INTERFACE = 8 CONST_FLUID = 9, CONST_EMPTY = 0, CONST_WALL = 1, CONST_NONE = 2,
*/
public static final int CONST_INTERFACE = 8;
public static final int CONST_FLUID = 9;
public static final int CONST_EMPTY = 0;
public static final int CONST_WALL = 1;
public static final int CONST_NONE = 2;
/*
* 其他常量聲明
*/
public static final int SquareLow = 31;
public static final int SquareUp = 69;//正方形在40X40的區??
public static final double r0=1;//密度
public static final double MassFluid=1;//質量
public static final double MassInterface=0.5; //界面質量
public static final double MassAero=0;//空氣質量
/*
*變量聲明
*/
public static int[][] flag = new int[XX+1][YY+1];
public static int[][][] normal_dirction = new int [XX+1][YY+1][2];
public static double[][] u = new double[XX+1][YY+1];
public static double[][] v = new double[XX+1][YY+1];
public static double[][] rho = new double[XX+1][YY+1];
public static double[][] mass = new double[XX+1][YY+1];
// @SuppressWarnings("static-access")
public static void main(String[] args) {
// TODO code application logic here
imageMain Myimageimport=new imageMain();
Myimageimport.imageimport();
System.out.println("dat has been out put to the file");
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -