---
# build_attributes.py input for cavity-quarter.t3p

# T3P Analysis
- action: edit
  type: analysis
  items:
    - name: Analysis
      value: T3P

# Boundary conditions
- type: Exterior
  associate:
    - face: [5, 6]

- type: Absorbing
  associate:
    - face: [3, 4]
- type: Magnetic
  associate:
    - face: [1, 2]

# Solver
- action: edit
  type: FEInfo
  items:
    - 'Order': 1
    - 'LinearSolver': MUMPS
    - 'MaxTime': 5.0e-9
    - 'DT': 2.0e-12

# LoadingInfo
- type: BeamLoading
  items:
    - name: Bunch Type
      value: Gaussian
      children:
        - 'Sigma': 0.01
        - 'numSigmas': 5
    - 'Charge': 1.0e-12
    - 'SymmetryFactor': 4
    - 'StartPoint': [0.0, 0.0, -0.075]
    - 'Direction': [0.0, 0.0, 1.0]
    - 'SourceBoundary': [face, 3]

# Monitors
- type: VolumeMonitor
  items:
    - 'Name': mymon
    - 'TimeStart': 0.0e-9
    - 'TimeEnd': 5.0e-9
    - 'TimeStep': 1.0e-10
#
- type: WakeFieldMonitor
  items:
    - 'Name': wakefield
    - name: StartContour
      enable: true
      value: -0.075
    - name: EndContour
      enable: true
      value: 0.075
    - 'Smax': 1.4
#
# Next items are not in the CW16 example.
# Included to verify reference items
- type: PowerMonitor
  items:
    - 'Name': power-monitor
    - 'MonitorBoundary': [face, 5]

- type: ModeVoltageMonitor
  items:
    - 'Name': mode-voltage
    - 'MonitorPort': [face, 6]
