HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
3-Bus Power System model More...
Go to the source code of this file.
Data Structures | |
struct | FPPowerSystem3Bus |
Structure containing variable and parameters specific to the 3-bus power system model. This structure contains the physical parameters and variables for the Fokker-Planck model for a 3-bus power system. More... | |
Macros | |
#define | _FP_POWER_SYSTEM_3BUS_ "fp-power-system-3bus" |
#define | _MODEL_NDIMS_ 4 |
#define | _MODEL_NVARS_ 1 |
Functions | |
int | FPPowerSystem3BusInitialize (void *, void *) |
int | FPPowerSystem3BusCleanup (void *) |
3-Bus Power System model
Fokker-Planck model for a 3-Bus power system: This model governs the dynamics of an electrical system with three generators. The third generator is the reference generator and the state of the other two generators are defined with respect to the state of the third generator. \(p\left({\bf x}\right)\) is the probability density function (PDF), governed by the following advection-diffusion equation:
\begin{equation} \frac{\partial p}{\partial t} + \nabla_{\bf x} \cdot \left(\left<{\bf v}\right> p\right) = \nabla_{\bf x} \cdot \left( {\bf D} \nabla_{\bf x} p \right), \end{equation}
where
\begin{align} {\bf x} &= \left[ \theta_1, \theta_2, \omega_1, \omega_2 \right]^T, \\ \left<{\bf v}\right> &= \left[ \omega_B\omega_1, \omega_B\omega_2, F_1-\gamma\omega_1-S_1, F_2-\gamma\omega_2-S_2 \right]^T \\ {\bf D} &= \left[ \begin{array}{cc} {\bf 0}_N & {\bf 0}_N \\ {\bf D}^\theta_N & {\bf D}^\omega_N \end{array} \right] \end{align}
The parameters for the system are:
\begin{align} N&=2,\\ D_{ij}^\omega &= \sigma_{ij}^2\lambda_{ij}\left(1-\gamma\lambda_{ij}\right), \\ D_{ij}^\theta &= \sigma_{ij}^2\lambda_{ij}^2\omega_B, \\ F_i &= \frac{1}{2H_i} \left<P^m_i\right> - \frac{1}{2H_{ref}}\left<P_{ref}^m\right>, \\ S_i &= \frac{1}{2H_i} P^e_i - \frac{1}{2H_{ref}} P_{ref}^e, \\ P_i^e &= \mathcal{R}\left\{ E_i \sum_{k=1}^{N+1} E_k^* \left( Y^* \right)_{ik} \right\}, Y = G+iB \end{align}
where \(*\) denotes the complex conjugate.
Reference: To be added soon.
Definition in file fppowersystem3bus.h.
struct FPPowerSystem3Bus |
Structure containing variable and parameters specific to the 3-bus power system model. This structure contains the physical parameters and variables for the Fokker-Planck model for a 3-bus power system.
Definition at line 49 of file fppowersystem3bus.h.
#define _FP_POWER_SYSTEM_3BUS_ "fp-power-system-3bus" |
Fokker-Planck model for 3-Bus power system
Definition at line 30 of file fppowersystem3bus.h.
#define _MODEL_NDIMS_ 4 |
Number of spatial dimensions
Definition at line 36 of file fppowersystem3bus.h.
#define _MODEL_NVARS_ 1 |
Number of variables per grid point
Definition at line 38 of file fppowersystem3bus.h.
int FPPowerSystem3BusInitialize | ( | void * | s, |
void * | m | ||
) |
Initialize the 3-bus power system model: Sets the default parameters, read in and set physics-related parameters, and set the physics-related function pointers in HyPar.
s | Solver object of type HyPar |
m | MPI object of type MPIVariables |
Definition at line 27 of file FPPowerSystem3BusInitialize.c.
int FPPowerSystem3BusCleanup | ( | void * | s | ) |
Clean up allocations in the FPPowerSystem3Bus system
s | Object of type FPPowerSystem3Bus |
Definition at line 10 of file FPPowerSystem3BusCleanup.c.