Next: Scattering Directions
Up: User Guide for
Previous: Nonrandomly-Oriented Targets
DDSCAT contains routines to generate dipole
arrays representing targets of various
geometries, including spheres, ellipsoids, rectangular solids, cylinders,
hexagonal prisms, tetrahedra, two touching ellipsoids, and three touching
ellipsoids. The target type is specified by variable CSHAPE
on line 7 of
ddscat.par, and up to 6 parameters (SHPAR1, SHPAR2,
SHPAR3, ...) on line 8.
The target geometry is most conveniently described in a coordinate
system attached to the target which we refer to as the ``Target Frame''
(TF), so in this section only we will let x,y,z be coordinates in
the Target Frame.
Once the target is generated, the orientation of the target in the
Lab Frame is accomplished as described in §16.
Target geometries currently supported include:
- ELLIPS - Homogeneous ellipsoid with ``lengths''
SHPAR1, SHPAR2,
SHPAR3 in the x, y, z directions in the TF.
,
where d is the interdipole spacing.
A sphere is obtained by setting
SHPAR1 = SHPAR2 = SHPAR3 = diameter/d.
The target axes are set to
and
in
the TF.
The user must set NCOMP=1 on line 9 of ddscat.par.
- CYLNDR - Homogeneous cylinder with length/d=SHPAR1,
diameter/d=SHPAR2, with cylinder axis=
and
in the TF.
User must set NCOMP=1.
- RCTNGL - Homogeneous rectangular solid with
x, y, z lengths/d = SHPAR1, SHPAR2, SHPAR3.
Target axes
and
in the TF.
User must set NCOMP=1.
- HEXGON - Homogeneous hexagonal prism with length/d =
SHPAR1,
hexagon side/d = SHPAR2, with
prism axis
in the TF, and prism
axis
in the TF
normal to one of the rectangular sides
of the hexagonal prism.
User must set NCOMP=1.
- TETRAH - Homogeneous tetrahedron with SHPAR1=length/d
of one edge,
one face parallel to y,z plane (in the TF),
opposite ``vertex" in +x
direction, and one edge parallel to z axis (in the TF).
Target axes
[emerging from one vertex] and
[emerging from an edge] in the TF.
User must set NCOMP=1.
- TWOELL - Two touching ellipsoids with same orientation.
SHPAR1, SHPAR2, SHPAR3=x-length/d, y-length/d,
z-length/d of one ellipsoid.
The two ellipsoids have identical shape and orientation,
but distinct dielectric functions.
The line connecting ellipsoid centers is along the x-axis in the TF.
Target axes
[along line connecting ellipsoids]
and
.
User must set NCOMP=2 and provide dielectric function file names
for both ellipsoids.
Ellipsoids are in order of increasing x.
- TWOAEL - Two touching ellipsoids as for TWOELL,
but with anisotropic dielectric functions.
SHPAR1, SHPAR2, SHPAR3 have same meanings as for
TWOELL. Target axes
and
in the TF.
User must set NCOMP=6 and provide x, y, z dielectric functions for
first ellipsoid, and x, y, z dielectric functions for second
ellipsoid (ellipsoids are in order of increasing x).
- ANIELL - Anisotropic ellipsoid. SHPAR1, SHPAR2,
SHPAR3 have same meaning as for ELLIPS, but with
dielectric functions 1,2,3 for xx, yy, zz elements of
the (diagonal) dielectric tensor.
Target axes
and
in the TF.
User must set NCOMP=3 and provide xx, yy, zz elements of
the (diagonal)dielectric tensor.
- UNICYL - Uniaxial cylinder.
SHPAR1, SHPAR2 have same meaning as for
CYLNDR, but now diel. func. 1 is for
parallel to
cylinder axis, diel.func. 2 for
perp. to axis.
Cylinder axis =
,
.
User must set
NCOMP=2 and provide parallel, perpendicular dielectric functions.
- THRELL - Three touching ellipsoids of equal size and orientation
SHPAR1, SHPAR2, SHPAR3 have same meaning as for
TWOELL.
Line connecting ellipsoid centers is parallel to x axis.
Target axis
along line of ellipsoid centers,
.
User must set NCOMP=3 and provide (isotropic) dielectric
functions for first, second, and third ellipsoid.
- THRAEL - Three touching ellipsoids with same size and
orientation but different and anisotropic dielectric properties.
SHPAR1, SHPAR2, SHPAR3 have same meanings as for
THRELL.
Target axis
along line of ellipsoid centers,
.
User must set NCOMP=9 and provide x, y, z dielectric function
for first ellipsoid, x, y, z diel. func. for second ellipsoid,
and x, y, z diel. func. for third ellipsoid
(ellipsoids are in order of increasing x).
- CONELL - Two concentric ellipsoids, SHPAR1, SHPAR2,
SHPAR3 specify the lengths along x, y, z axes (in the TF)
of the outer ellipsoid; SHPAR4, SHPAR5, SHPAR6
are the lengths, along the x, y, z axes (in the TF) of the
inner ellipsoid.
The ``core" within the inner ellipsoid is composed of material 1;
the ``mantle" between inner and outer
ellipsoids is composed of material 2.
Target axes
,
in TF.
User must set NCOMP=2 and provide delectric functions for
``core" and ``mantle".
- TWOSPH - Two touching spheroids.
First spheroid has length SHPAR1 along symmetry axis, diameter
SHPAR2 perpendicular to symmetry axis.
Second spheroid has length SHPAR3 along symmetry axis,
diameter SHPAR4 perpendicular to symmetry axis.
Contact point is on line connecting centroids.
Line connecting centroids is in x direction.
Symmetry axis of first spheroid is in y direction.
Symmetry axis of second spheroid is in direction
,
where
and
are basis vectors in TF, and SHPAR5
is in degrees.
If SHPAR6=0., then target axes
,
.
If SHPAR6=1., then axes
and
are set to
principal axes with largest and 2nd largest moments of inertia assuming
spheroids to be of uniform density.
User must set NCOMP=2 and provide dielectric function files for
each spheroid.
- BLOCKS - Homogeneous target constructed from cubic ``blocks".
Number and location of blocks are specified in separate file
blocks.par with following structure:
-0.5cmone line of comments
-0.5cmPRIN = 0 or 1 (see below)
-0.5cmN = number of blocks
-0.5cmB = width/d of one block,
-0.5cmx y z = position of 1st block
(in units of Bd)
-0.5cmx y z = position of 2nd block ...
-0.5cm...
-0.5cmx y z = position of Nth block
...
If PRIN=0, then
,
.
If PRIN=1, then
and
are set
to principal
axes with largest and second largest moments of inertia,
assuming target to be of uniform density.
User must set NCOMP=1.
- DW1996 - Target constructed from 13 blocks used by
Draine & Weingartner (1996) in study of radiative torques on
irregular grains.
and
are principal axes with largest and
second-largest moments of inertia.
User must set NCOMP=1.
Target size is controlled by shape parameter PAR1 =
width of one block in lattice units.
- NSPHER - Multisphere target consisting of the union of N
spheres.
Spheres may overlap if desired.
The relative locations and sizes of these spheres are
defined in an external file, whose name (enclosed in quotes)
is passed through ddscat.par. The length of the file name
should not exceed 13 characters.
The pertinent line in ddscat.par should read
SHPAR(1) SHPAR(2) `filename' (quotes must be used)
where SHPAR(1) = target diameter in x direction
(in Target Frame) in units of d
SHPAR(2)= 0 to have
,
in Target Frame.
SHPAR(2)= 1 to use principal axes of moment of inertia
tensor for
(largest I) and
(intermediate I).
filename is the name of the file specifying the locations and
relative sizes of the spheres.
The overall size of the multisphere target (in terms of numbers of
dipoles) is determined by parameter SHPAR(1), which is
the extent of the multisphere target in the x-direction, in
units of the lattice spacing d.
The file `filename' should have the
following structure:
-N = number of spheres
-
(arb. units)
-
(arb. units)
-
-
(arb. units)
where
,
,
are the coordinates of the center,
and
is the radius of sphere j.
Note that
,
,
,
(j=1,...,N) establish only
the shape of the N-sphere target.
The actual size (in units of
) is set by the value
of
specified in ddscat.par, where as
always
, where V is the
volume of material in the target.
User must set NCOMP=1.
- FRMFIL - This option causes DDSCAT to read the target geometry
information from a file shape.dat instead of automatically
generating one of the geometries listed above. The shape.dat
file is read by routine REASHP (file reashp.f).
The user can customize REASHP as needed to conform to the
manner in which the target geometry is stored in file shape.dat.
The user should be able to easily modify these routines, or write new
routines, to generate targets with other geometries.
The user should first
examine the routine target.f and modify it to call any new target
generation routines desired.
Alternatively, targets may be generated separately, and
the target description (locations of dipoles and ``composition" corresponding
to x,y,z dielectric properties at each dipole site) read in from a file by
invoking the option FRMFIL in ddscat.f.
It is often desirable to be able to run the target generation routines
without running the entire DDSCAT code.
We have therefore provided a program CALLTARGET
which allows the user to generate targets interactively; to create this
executable just type
make calltarget .
The program calltarget is to be run interactively; the prompts are
self-explanatory.
You may need to edit the code to change the device number
IDVOUT as for DDSCAT (see §5.1 above).
After running, calltarget will leave behind an ASCII file
target.out
which is a list of the occupied lattice sites in the last target generated.
Next: Scattering Directions
Up: User Guide for
Previous: Nonrandomly-Oriented Targets
Bruce Draine
Thu Aug 10 09:34:16 EDT 2000