Description Usage Arguments Details Value Author(s) See Also Examples
Helps convert binary snapshot output from infraFDTD into images. This function collects information from the snapshots to facilitate the conversion. It does NOT perform the conversion itself (see MakeSnapshots for that).
1 2 | MakeSnapshotInfo(inputdir = "./snapshots", dframe = 20, N = 400, xs, ys,
zs, makesec1 = TRUE, makesec2 = TRUE, makesurf = TRUE)
|
inputdir |
Directory containing snapshot files. |
dframe |
Snapshot interval in samples (difference between snapshot file numbers). |
N |
Number of snapshots. |
xs |
X source coordinates (m); can be a vector if multiple sources. |
ys |
Y source coordinates (m); can be a vector if multiple sources. |
zs |
Z source coordinates (m); can be a vector if multiple sources. |
makesec1 |
Logical: should section 1 snapshots be processed? |
makesec2 |
Logical: should section 2 snapshots be processed? |
makesurf |
Logical: should surface snapshots be processed? |
inputdir must include all snapshot files as well as coord_sec1.txt, coord_sec2.txt, and coord_sur.txt.
MakeSnapshotInfo is fairly time-consuming, so it's separated from MakeSnapshots so that MakeSnapshots can be run repeatedly to test different graphical settings without having to re-calculate this information every time.
A list of data to be passed to MakeSnapshots.
Jake Anderson; code is heavily modified from Keehoon Kim's original snapshot code.
MakeSnapshots
1 2 3 4 | ## Don't Run: (requires snapshot files)
## info = MakeSnapshotInfo('./snapshots', dframe = 20, N = 400,
## xs = 100, ys = 100, zs = 500)
## MakeSnapshots(info, outputdir = './anim', prefix = 'snapshot', dt = 0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.