HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Compute the dissipative term for the FPPowerSystem3Bus system. More...
#include <stdlib.h>
#include <basic.h>
#include <arrayfunctions.h>
#include <physicalmodels/fppowersystem3bus.h>
#include <hypar.h>
Go to the source code of this file.
Functions | |
int | FPPowerSystem3BusDissipationFunction (int, int, void *, double, double *) |
int | FPPowerSystem3BusDiffusion (double *f, double *u, int dir1, int dir2, void *s, double t) |
Compute the dissipative term for the FPPowerSystem3Bus system.
Definition in file FPPowerSystem3BusDiffusion.c.
int FPPowerSystem3BusDissipationFunction | ( | int | dir1, |
int | dir2, | ||
void * | p, | ||
double | t, | ||
double * | dissp | ||
) |
Compute the dissipation coefficient for the 3-bus power system
dir1 | First spatial dimension for the dissipation coefficient |
dir2 | Second spatial dimension for the dissipation coefficient |
p | Object of type FPPowerSystem3Bus |
t | Current simulation time |
dissp | Matrix of size ndims*ndims to hold the dissipation coefficients (row-major format) |
Definition at line 117 of file FPPowerSystem3BusFunctions.c.
int FPPowerSystem3BusDiffusion | ( | double * | f, |
double * | u, | ||
int | dir1, | ||
int | dir2, | ||
void * | s, | ||
double | t | ||
) |
Compute the dissipation term for the FPPowerSystem3Bus system
f | Array to hold the computed dissipation term vector (same layout as u) |
u | Array with the solution vector |
dir1 | First spatial dimension for the dissipation term being computed |
dir2 | Second spatial dimension for the dissipation term being computed |
s | Solver object of type HyPar |
t | Current simulation time |
Definition at line 15 of file FPPowerSystem3BusDiffusion.c.