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

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)
 

Detailed Description

Function to compute the advection term for the FPPowerSystem3Bus system.

Author
Debojyoti Ghosh

Definition in file FPPowerSystem3BusAdvection.c.

Function Documentation

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().

Parameters
fArray to hold the computed flux vector (same layout as u)
uArray with the solution vector
dirSpatial dimension for which to compute the flux
sSolver object of type HyPar
tCurrent simulation time

Definition at line 16 of file FPPowerSystem3BusAdvection.c.

23 {
24  HyPar *solver = (HyPar*) s;
26  return(0);
27 }
int npoints_local_wghosts
Definition: hypar.h:42
#define _ArrayCopy1D_(x, y, size)
Structure containing all solver-specific variables and functions.
Definition: hypar.h:23