Examples#

Chapman#

Top Level Config#

camp-files:
  - "species.yaml"
  - "reactions.yaml"
{
  "camp-files": [
    "species.json",
    "reactions.json"
  ]
}

Reactions#

camp-data:
  - type: MECHANISM
    name: Chapman
    reactions:
      - type: PHOTOLYSIS
        scaling_factor: 1
        reactants:
          O2: {}
        products:
          O:
            yield: 2
      - type: PHOTOLYSIS
        scaling_factor: 1
        reactants:
          O3: {}
        products:
          O1D:
            yield: 1
          O2:
            yield: 1
      - type: PHOTOLYSIS
        scaling_factor: 1
        reactants:
          O3: {}
        products:
          O:
            yield: 1
          O2:
            yield: 1
      - type: ARRHENIUS
        A: 2.15e-11
        Ea: -1.518e-21
        B: 0
        D: 300
        E: 0
        reactants:
          O1D:
            qty: 1
          N2:
            qty: 1
        products:
          O:
            yield: 1
          N2:
            yield: 1
      - type: ARRHENIUS
        A: 3.3e-11
        Ea: -7.59e-22
        B: 0
        D: 300
        E: 0
        reactants:
          O1D:
            qty: 1
          O2:
            qty: 1
        products:
          O:
            yield: 1
          O2:
            yield: 1
      - type: ARRHENIUS
        A: 8e-12
        Ea: 2.8428e-20
        B: 0
        D: 300
        E: 0
        reactants:
          O:
            qty: 1
          O3:
            qty: 1
        products:
          O2:
            yield: 2
      - type: ARRHENIUS
        A: 6e-34
        Ea: 0
        B: -2.4
        D: 300
        E: 0
        reactants:
          O:
            qty: 1
          O2:
            qty: 1
          M:
            qty: 1
        products:
          O3:
            yield: 1
          M:
            yield: 1
{
  "camp-data": [
    {
      "type": "MECHANISM",
      "name": "Chapman",
      "reactions": [
        {
          "type": "PHOTOLYSIS",
          "scaling_factor": 1,
          "reactants": {
            "O2": {}
          },
          "products": {
            "O": {
              "yield": 2
            }
          }
        },
        {
          "type": "PHOTOLYSIS",
          "scaling_factor": 1,
          "reactants": {
            "O3": {}
          },
          "products": {
            "O1D": {
              "yield": 1
            },
            "O2": {
              "yield": 1
            }
          }
        },
        {
          "type": "PHOTOLYSIS",
          "scaling_factor": 1,
          "reactants": {
            "O3": {}
          },
          "products": {
            "O": {
              "yield": 1
            },
            "O2": {
              "yield": 1
            }
          }
        },
        {
          "type": "ARRHENIUS",
          "A": 2.15e-11,
          "Ea": -1.518e-21,
          "B": 0,
          "D": 300,
          "E": 0,
          "reactants": {
            "O1D": {
              "qty": 1
            },
            "N2": {
              "qty": 1
            }
          },
          "products": {
            "O": {
              "yield": 1
            },
            "N2": {
              "yield": 1
            }
          }
        },
        {
          "type": "ARRHENIUS",
          "A": 3.3e-11,
          "Ea": -7.59e-22,
          "B": 0,
          "D": 300,
          "E": 0,
          "reactants": {
            "O1D": {
              "qty": 1
            },
            "O2": {
              "qty": 1
            }
          },
          "products": {
            "O": {
              "yield": 1
            },
            "O2": {
              "yield": 1
            }
          }
        },
        {
          "type": "ARRHENIUS",
          "A": 8e-12,
          "Ea": 2.8428e-20,
          "B": 0,
          "D": 300,
          "E": 0,
          "reactants": {
            "O": {
              "qty": 1
            },
            "O3": {
              "qty": 1
            }
          },
          "products": {
            "O2": {
              "yield": 2
            }
          }
        },
        {
          "type": "ARRHENIUS",
          "A": 6e-34,
          "Ea": 0,
          "B": -2.4,
          "D": 300,
          "E": 0,
          "reactants": {
            "O": {
              "qty": 1
            },
            "O2": {
              "qty": 1
            },
            "M": {
              "qty": 1
            }
          },
          "products": {
            "O3": {
              "yield": 1
            },
            "M": {
              "yield": 1
            }
          }
        }
      ]
    }
  ]
}

Species#

camp-data:
  - name: M
    type: CHEM_SPEC
    tracer type: CONSTANT
  - name: Ar
    type: CHEM_SPEC
    absolute tolerance: 1e-12
  - name: CO2
    type: CHEM_SPEC
    absolute tolerance: 1e-12
  - name: H2O
    type: CHEM_SPEC
    absolute tolerance: 1e-12
  - name: O1D
    type: CHEM_SPEC
    absolute tolerance: 1e-12
  - name: O
    type: CHEM_SPEC
    absolute tolerance: 1e-12
  - name: O2
    type: CHEM_SPEC
    absolute tolerance: 1e-12
  - name: O3
    type: CHEM_SPEC
    absolute tolerance: 1e-12
  - name: N2
    type: CHEM_SPEC
    absolute tolerance: 1e-12
{
  "camp-data": [
    {
      "name": "M",
      "type": "CHEM_SPEC",
      "tracer type": "CONSTANT"
    },
    {
      "name": "Ar",
      "type": "CHEM_SPEC",
      "absolute tolerance": 1e-12
    },
    {
      "name": "CO2",
      "type": "CHEM_SPEC",
      "absolute tolerance": 1e-12
    },
    {
      "name": "H2O",
      "type": "CHEM_SPEC",
      "absolute tolerance": 1e-12
    },
    {
      "name": "O1D",
      "type": "CHEM_SPEC",
      "absolute tolerance": 1e-12
    },
    {
      "name": "O",
      "type": "CHEM_SPEC",
      "absolute tolerance": 1e-12
    },
    {
      "name": "O2",
      "type": "CHEM_SPEC",
      "absolute tolerance": 1e-12
    },
    {
      "name": "O3",
      "type": "CHEM_SPEC",
      "absolute tolerance": 1e-12
    },
    {
      "name": "N2",
      "type": "CHEM_SPEC",
      "absolute tolerance": 1e-12
    }
  ]
}