---
# build_attributes.py input for Pillbox.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/omega3p_results

- action: edit
  type: FieldScales
  items:
    - name: Type
      value: FieldGradient
      children:
        - 'StartPoint': [0.0, 0.0, -0.057]
        - 'EndPoint': [0.0, 0.0, 0.057]

    - name: ScanToken
      value: 1
      children:
        - 'Minimum': 23.0e+6
        - 'Maximum': 25.0e+6
        - 'Interval': 1.0e+6

- action: edit
  type: Domain
  items:
    - name: OutputImpacts
      enable: true
    - 'FrequencyScanID': 0

# Emitters
- type: Emitter
  name: emitter-surface6
  associate:
    - face: 6
  items:
    - 'BoundsMin': [0.030, 0.04, -0.045]
    - 'BoundsMax': [0.035, 0.10,  0.000]

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

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

# Postprocess
- action: edit
  name: Postprocess
  items:
    - name: Toggle
      enable: true
      items:
        - name: ResonantParticles
          enable: true
        - name: EnhancementCounter
          enable: true
          items:
            - 'MinimumEC': 1
            - name: SEYSurface1
              enabled: true
              items:
                - 'BoundarySurface': ['face', 6]
                # CMakeLists.txt sets copper.dat file and working directory
                - 'SEYFilename': Temporary/cw16/files/copper.dat
