gridDenSrcVW

gridDenSrcVW (deprecated in 8.0)

Note

This source has been deprecated. Please use the xvLoaderEmitter kind with the gridPosGen PositionGenerator instead.

This particle source loads particles along the nodes of the grid. Unlike gridDenSrc this also includes a function to set the particle weight for variable weight particles.

This particle source is available with all VSim licenses.

gridDenSrcVW Parameters

density (double)

Positive value describing the density of the particles.

applyPeriod (integer)

Positive value n, directing the simulation to apply the source at every nth time step. This option works only with emitter algorithms.

applyTimes (double vector)

Bracketed times for when the source/emitter will generate particles.

lowerBounds (double vector)

Lower bound (expressed in physical units, not grid units) of the physical extent of the source.

upperBounds (double vector)

Upper bound (expressed in physical units, not grid units) of the physical extent of the source.

doShiftLoad (integer, default = 0 (off))

For moving windows, move the particles with the windows.

vbar (double vector)

Average velocity of the particles in the x, y, and z directions.

vsig (double vector)

Positive value denoting the thermal velocity in the x, y, and z directions.

numPerDir (integer vector)

Number of macro particles to load in each direction.

weightFunc (STFunc block)

A STFunc describing the particle weighting.

Example Particle Source of kind gridDenSrcVW

<ParticleSource constSrc>
  kind = gridDenSrcVW
  density = NOMDENS
  doShiftLoad = 1

  lowerBounds = [$.2*LX$    Y0 Z0]
  upperBounds = [$10*LX$   YEND ZEND]

  numPerDir=[2 2 2]

  vbar = [0. 0. 0.]
  vsig = [0. 0. 0.]

# weight function
<STFunc weightFunc>
  kind = multFunc

  <STFunc cosFT>
    kind = cosineFlattop
    direction = [1. 0. 0.]
    startPosition = $0.2*LX$
    startFlattop  = $0.2*LX + 0.2*LX$
    endFlattop    = $10.*LX - 0.2*LX$
    endPosition   = $10.*LX $
    startAmplitude = 0.0
    flattopAmplitude = 1.
    endAmplitude   = 0.0
  </STFunc>
  <STFunc channel>
      kind = leakyChannel
      direction = [1. 0. 0.]
      channelPosition = [0. 0. 0.]
      maxParabRadius = MAXPARABRADIUS
      maxRadius = MAXRADIUS
      centerAmplitude = DENSRAT
      quadCoef = QUADCOEF
  </STFunc>

</STFunc>

</ParticleSource>