bitRevDensSrcVW

bitRevDensSrcVW (deprecated in 8.0)

Note

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

This particle source loads particles in a random distribution based on a bit-reversed algorithm. The number of particles specified may not be what is obtained,as the random number generation process will only get close to the right number on each processor.

This particle source works with all VSim licenses.

bitRevDensSrcVW Parameters

density (double)

Positive value describing the density of the 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 = :samp:`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.

macroDensFunc (STFunc block)

STFunc block with the explicit name “macroDensFunc” of kind = expression is used to describe the probability of loading a macroparticle as a function of space and time.

weightFunc (STFunc block)

STFunc block with the explicit name “weightFunc” of kind = expression is used to describe the particle weighting as a function of space and time.

Example weightFunc Block

<STFunc weightFunc>
  kind = expression
  expression = 10.
</STFunc>

Example bitRevDensSrcVW Block

 <ParticleSource channelSrc>
  kind = bitRevDensSrcVW
  density = DENSITY2  # Because we have only one loader
  lowerBounds = [0.0 YBEG_LOAD ZBEG_LOAD]
  upperBounds = [1.  YEND_LOAD ZEND_LOAD]
  doShiftLoad = 1
  vbar = [0. 0. 0.]
  vsig = [0. 0. 0.]

  # Product of ramp up and down plus channel
  <STFunc macroDensFunc>
    kind = multFunc

    <STFunc cosRamp>
      kind = cosineRamp
      direction = [1. 0. 0.]
      startPosition = STARTRAMP
      endPosition = STARTFLAT
      startAmplitude = 0.
      endAmplitude = 1.
    </STFunc>

    <STFunc channel>
      kind = radialCosChannel
      direction = [1. 0. 0.]
      channelPosition = [0. 0. 0.]
      startRadius = 0.
      endRadius = 4.e-5
      startAmplitude = 0.5
      endAmplitude = 1.
    </STFunc>

  </STFunc>

</ParticleSource>