|
HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Function to compute the maximum diffusion number. More...
#include <stdlib.h>#include <basic.h>#include <mathfunctions.h>#include <arrayfunctions.h>#include <physicalmodels/fppowersystem3bus.h>#include <mpivars.h>#include <hypar.h>Go to the source code of this file.
Functions | |
| int | FPPowerSystem3BusDissipationFunction (int, int, void *, double, double *) |
| double | FPPowerSystem3BusComputeDiffNumber (void *s, void *m, double dt, double t) |
Function to compute the maximum diffusion number.
Definition in file FPPowerSystem3BusComputeDiffNumber.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.
| double FPPowerSystem3BusComputeDiffNumber | ( | void * | s, |
| void * | m, | ||
| double | dt, | ||
| double | t | ||
| ) |
Computes the maximum diffusion number over the domain. Note that the diffusion is computed over the local domain on this processor only.
| s | Solver object of type HyPar |
| m | MPI object of type MPIVariables |
| dt | Time step size for which to compute the CFL |
| t | Time |
Definition at line 19 of file FPPowerSystem3BusComputeDiffNumber.c.