📄 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 + -