NEKCEM
In the software package
NEKCEM (Nekton for Computational ElectroMagnetics)
the spectral element discontinuous Galerkin (SEDG)
method is employed on a conformal spectral-element mesh.
NEKCEM features geometric flexibility,
spectrally accurate numerical convergence,
and an efficient parallel implementation.
This package consists of the components of meshing, Maxwell time domain solver,
electrostatic poisson solver, and visualization tools. It supports the computational
domain boundary with perfectly matched layer, perfect conductor, and periodic material.
Download and Installation Instructions (Quick Start)
-
Download and Update Version:
software package published on
http://mercurial.mcs.anl.gov/nekcem/
-
Unix command for the First Time Users:
hg clone http://mercurial.mcs.anl.gov/nekcem
-
Unix command for the Old Users:
hg pull http://mercurial.mcs.anl.gov/nekcem
hg update http://mercurial.mcs.anl.gov/nekcem
-
Contents of the NEKCEM package:
It consists of the following main directories: bin, examples, libs, src, doc,...etc.
-
bin: script files
home/bin/genmap, n2to3, prex: place them under home directory and use for meshing.
nekcem/bin/makenek, nek, arch-settings: running scripts
nekcem/bin/run_paraview, post2vtk: visualization
home/bin/postx: for visualization.
-
examples: test problems
examples/2dnanocyl/ : 2d nano cylinder
examples/3dbowtie/ : 3d bowtie mesh
examples/include/nano-source.inc : included in 2dnanocyl.usr
examples/2dnanocyl/2dnanocyl.usr : subroutine user_drude defines the nano objects.
-
libs: libraries (blas, lapack)
-
Installation and instructions:
-
Mesh generation:
type
preh
in example/2dnanocyl/ to bring up the GUI for meshing.
specify a name such as
2dnanocyl.rea
in the preh interface;
build meshes;define boundary conditions.
using preh, you generate 2dnanocyl.rea, and running
genmap 2dnanocyl.rea will generate 2dnanocyl.map.
-
Define
2dnanocyl.usr
in examples/2dnanocyl/
Define the degree of polynomial "lxi=5" in
SIZEu.
-
Compile:
makenek 2dnanocyl
2dnanocyl.usr will be moved as subuser.F into src.
check out makenek -h for compile option for different platforms
SIZEu will be moved as SIZE into src
-
Execute:
nek 2dnanocyl
check out nek -h for compile option for different platforms
generates field files such as 2dnanocyl.fld01, 2dnanocyl.fld02,... for postx
generates field files such as 2dnanocyl001.dat, 2dnanocyl002.dat,... for vtk
-
GUI for results: use either postx or paraview.
type
postx
in examples/2dnanocyl/
type "2dnanocyl" in the postx interface to read field files
postx enables to produce *.gif for making movie, *.plt, and etc.
type "../../bin/run_paraview -T1000" under "example/2dnanocyl/" to visualize with paraview: for Nsteps = 1000.
-
General description: doc/
-
rea-file.txt: explains the data for each line in 2dnanocyl.rea.
Examples
* The animated GIFs appear on explorer, firefox, netscape.