# The Mathematical Model of a DC Bus Voltage on a Microgrid

• Engineering

## Homework Statement:

I want to compute the dc bus voltage using a programming language, but
I doubt the initial value that I should enter.

## Relevant Equations:

##v =\frac{1}{C} \int \frac{P_{in}(t)+P_{gen}(t)-P_{con}(t)}{v} dt##
I want to compute the dc bus voltage using a programming language, but
I doubt the initial value that I should enter. I use the model from this document. This is the explanation about this model

Based on my understanding, ##v## is the grid voltage. This value can change. What is the initial value of v that must I enter ? Is ##v = 0 V## or ##v = 12 V## (or anything value> 0 V)?