---
# build_attributes.py input for Window-Solid+VacuumEmission.track3p

# Configure analysis attribute
- action: edit
  type: analysis
  items:
    - name: Analysis
      value: Track3P
      children:
        - name: Track3P
          value: Multipacting

# NERSC Directory
- action: edit
  type: InputData
  items:
    - name: Source
      enable: true
      items:
        - 'NERSCDirectory': /global/cscratch1/sd/johnt/test1/JOBID/s3p_results

- action: edit
  type: FieldScales
  items:
    - name: Type
      value: InputPortPower

    - name: ScanToken
      value: 0
      children:
        - 'Scale': 8.0e+6

- action: edit
  type: Domain
  items:
    - 'TotalTime': 10
    - 'Bins': 128
    - name: SolidRegion
      enable: true
      value: [volume, 2]
    - name: VacuumRegion
      enable: true
      value: [volume, 1]

# Emitters
- type: Emitter
  name: emitter-type5
  associate:
    - face: 6
  items:
    - 'Type': 5
    - 'BoundsMin': [0.0,   0.0,   -0.002]
    - 'BoundsMax': [0.045, 0.045,  0.0]

- type: Emitter
  name: emitter-type2
  associate:
    - face: 6
  items:
    - 'Type': 2
    - 'BoundsMin': [0.001, 0.001, -0.002]
    - 'BoundsMax': [0.045, 0.045,  0.06]

# Materials
- type: Track3PAbsorber
  associate:
    - face: [1, 2, 7, 8]

- type: Track3PMaterialMultipactingPrimary
  associate:
    - face: 6
  items:
    - name: Secondary
      enabled: true

- type: Track3PMaterialMultipactingPrimary
  associate:
    - volume: 2
