# distributePV

Allocates PV based off of the load transformer size (kva)

## Contents

- Syntax
- Description
- Inputs
- Outputs
- Example

## Syntax

    distributePV(totalPVSize,area)

## Description

Allocates distributed PV spread out around a designated area. PV is placed at each transformer in the area based off of the load transformer size (kva). The user is asked to select the OpenDSS circuit through the GUI.

## Inputs

- `totalPVSize` - total size of the distributed PV system in kW
- `area` - matrix of vertices defining the area to distribute the PV inside, 1 row per vertex with [X,Y]

## Outputs

- text file allocatedPV.txt with the OpenDSS text for PV systems as generators

## Example

Distributes the total PV size around the given area.

    area = [1.1732e7 3.708e6; 1.1732e6 3.728e6; 1.1748e7 3.708e6; 1.1748e7 3.728e6];
    totalPVSize = 2e3;
    distributePV(totalPVSize,area);
    %