# examplePeakTimeAnalysis

Runs simulation during peak penetration time and generates plots

## Contents

- Syntax
- Description
- Inputs
- Outputs
- Example

## Syntax

    examplePeakTimeAnalysis(basecaseFile,solarScenarioFiles);
    examplePeakTimeAnalysis();

## Description

Function to calculate when the max penetration (PV output / load) time occurs. A snapshot analysis is performed at this peak time, with both a voltage contour plot and voltage profile plot being generated.

## Inputs

- `basecaseFile` - optional input with the link to the OpenDSS file with the circuit.
- `solarScenarioFiles` - optional input with a cell array of links to the OpenDSS files with the solar scenarios to run

## Outputs

- none - generates 2 figures for each analysis scenario and saves them

## Example

Runs the basecase circuit and the distributed solar case

    examplePeakTimeAnalysis('ExampleCircuit\master_ckt24.dss',{'ExampleCircuit\Ckt24_PV_Distributed_7_5.dss'})
    %