HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
FPPowerSystem3BusCleanup.c File Reference

Function to clean up allocations for the FPPowerSystem3Bus system. More...

#include <stdlib.h>
#include <physicalmodels/fppowersystem3bus.h>

Go to the source code of this file.

Functions

int FPPowerSystem3BusCleanup (void *s)
 

Detailed Description

Function to clean up allocations for the FPPowerSystem3Bus system.

Author
Debojyoti Ghosh

Definition in file FPPowerSystem3BusCleanup.c.

Function Documentation

int FPPowerSystem3BusCleanup ( void *  s)

Clean up allocations in the FPPowerSystem3Bus system

Parameters
sObject of type FPPowerSystem3Bus

Definition at line 10 of file FPPowerSystem3BusCleanup.c.

13 {
14  FPPowerSystem3Bus *physics = (FPPowerSystem3Bus*) s;
15  free(physics->G);
16  free(physics->B);
17  return(0);
18 }
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.