[ Identification | Description | Input parameters | Output parameters | Links ]

# The `Set_pol` Component

(Unphysical) way of setting the polarization.

## Identification

- Author: Peter Christiansen
- Origin: Risoe
- Date: August 2006
- Version: 1.1

## Description

    This component has no physical size (like Arm - also drawn that
    way), but is used to set the polarisation in one of two ways:
    1) (randomOn=0) Hardcode the polarisation to the vector (px, py, pz)
    2) (randomOn!=0) Set the polarisation to a random vector on the unit sphere

    Example: Set_pol(px=0, py=-1, pz=0)

## Input parameters

Parameters in boldface are required; the others are optional.

Name | Unit | Description | Default
--- | --- | --- | ---
px | 1 | X-component of polarisation vector (can be negative) | 0
py | 1 | Y-component of polarisation vector (can be negative) | 0
pz | 1 | Z-component of polarisation vector (can be negative) | 0
randomOn | 1 | Generate random values if randomOn!=0. | 0

## Links

- Source code for `Set_pol.comp`.

[ Identification | Description | Input parameters | Output parameters | Links ]