HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Function to compute the advection 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 | FPPowerSystem3BusAdvection (double *f, double *u, int dir, void *s, double t) |
Function to compute the advection term for the FPPowerSystem3Bus system.
Definition in file FPPowerSystem3BusAdvection.c.
int FPPowerSystem3BusAdvection | ( | double * | f, |
double * | u, | ||
int | dir, | ||
void * | s, | ||
double | t | ||
) |
Compute the advection term for the FPPowerSystem3Bus system: Since the advection coefficient is a function of x and not the solution, here the flux is set to the solution. The advection velocity is multiplied during upwinding FPPowerSystem3BusUpwind().
f | Array to hold the computed flux vector (same layout as u) |
u | Array with the solution vector |
dir | Spatial dimension for which to compute the flux |
s | Solver object of type HyPar |
t | Current simulation time |
Definition at line 16 of file FPPowerSystem3BusAdvection.c.