|
HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Function to compute the maximum CFL for the FPPowerSystem3Bus system. 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 | FPPowerSystem3BusDriftFunction (int, void *, double *, double, double *) |
| double | FPPowerSystem3BusComputeCFL (void *s, void *m, double dt, double t) |
Function to compute the maximum CFL for the FPPowerSystem3Bus system.
Definition in file FPPowerSystem3BusComputeCFL.c.
| int FPPowerSystem3BusDriftFunction | ( | int | dir, |
| void * | p, | ||
| double * | x, | ||
| double | t, | ||
| double * | drift | ||
| ) |
Compute the drift (advection) coefficients for the 3-bus power system
| dir | Spatial dimension (not used) |
| p | Object of type FPPowerSystem3Bus |
| x | Spatial coordinates |
| t | Current simulation time |
| drift | Array to hold the drift velocities |
Definition at line 76 of file FPPowerSystem3BusFunctions.c.
| double FPPowerSystem3BusComputeCFL | ( | void * | s, |
| void * | m, | ||
| double | dt, | ||
| double | t | ||
| ) |
Computes the maximum CFL number over the domain. Note that the CFL 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 FPPowerSystem3BusComputeCFL.c.