?? material.java
字號:
/* 3D FDTD PACKAGE in Java by Stephen Kirkup
==========================================
MARK 1. Released January 2005
This file: Material.java (part of the pre-processor) FDTDpre.java
This is a shareware java source code that carries out the FDTD (finite difference time domain)
algorithm. The code is available for general use. The copyright remains with the author; the
program should not be passed on to others, even in revised form, without the permission of the
author. The author would be pleased to hear of any interesting applications of the code, ideas
for future development, links to the website, or bugs in the code.
The author can be contacted on smk@electromagnetics.info
The webpages maintaining this code is www.fdtd.electromagnetics.info please refer to
it for downloads or any news or updates.
The java compiler/interpreter can be downloaded free from wwww.java.sun.com
The FDTD algorithm is the most popular method for transient electromagnetic simulation.
FDTD is also very computationally-intensive hence the program has been divided into two parts: a
pre-processor (FDTDpre.java) that carries out the computation and stores relevant results and
a post-processor (FDTDpost.java) that carries out a simple visualisation of the results.
The test problem is input using the .DAT file and output to .OUT files. The .MON (monitor)
file monitors the program (to be viewed soon after the start of the program to
check that everything is as you expected and that the program will run in a reasonable time.
*/
public class Material
{
public String name;
public double conductivity, rel_perm, susceptibility;
public Material(String name, double conductivity, double rel_perm, double susceptibility)
{
this.name=name;
this.conductivity=conductivity;
this.rel_perm=rel_perm;
this.susceptibility=susceptibility;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -