#include <stdlib.h>
#include <basic.h>
#include <arrayfunctions.h>
#include <physicalmodels/fppowersystem1bus.h>
#include <hypar.h>
Go to the source code of this file.
|
double | FPPowerSystem1BusDissipationFunction (int, int, void *, double) |
|
int | FPPowerSystem1BusDiffusionLaplacian (double *f, double *u, int dir, void *s, double t) |
|
int | FPPowerSystem1BusDiffusionGeneral (double *f, double *u, int dir1, int dir2, void *s, double t) |
|
◆ FPPowerSystem1BusDissipationFunction()
double FPPowerSystem1BusDissipationFunction |
( |
int |
, |
|
|
int |
, |
|
|
void * |
, |
|
|
double |
|
|
) |
| |
Definition at line 19 of file FPPowerSystem1BusFunctions.c.
23 double sigma = params->
sigma;
24 double omegaS = params->
omegaS;
25 double omegaB = params->
omegaB;
26 double lambda = params->
lambda;
33 double term = (sigma*sigma*omegaS*omegaS) / (4.0*H*H);
34 double expterm = exp(-t/lambda);
37 dissp = term * (lambda*omegaB) * (lambda*(1-expterm) - t*expterm);
39 }
else if (dir2 ==
_YDIR_) {
40 double gamma = D*omegaS / (2.0*H);
41 dissp = term * (lambda*(1-expterm) + (gamma*lambda*(t*expterm-lambda*(1-expterm))) );
◆ FPPowerSystem1BusDiffusionLaplacian()
int FPPowerSystem1BusDiffusionLaplacian |
( |
double * |
f, |
|
|
double * |
u, |
|
|
int |
dir, |
|
|
void * |
s, |
|
|
double |
t |
|
) |
| |
Definition at line 9 of file FPPowerSystem1BusDiffusion.c.
15 int ghosts = solver->
ghosts;
16 int ndims = solver->
ndims;
17 int nvars = solver->
nvars;
#define _ArrayScaleCopy1D_(x, a, y, size)
#define _ArrayAddCopy1D_(x, a, y, size)
Structure containing all solver-specific variables and functions.
double FPPowerSystem1BusDissipationFunction(int, int, void *, double)
#define _ArrayProduct1D_(x, size, p)
◆ FPPowerSystem1BusDiffusionGeneral()
int FPPowerSystem1BusDiffusionGeneral |
( |
double * |
f, |
|
|
double * |
u, |
|
|
int |
dir1, |
|
|
int |
dir2, |
|
|
void * |
s, |
|
|
double |
t |
|
) |
| |
Definition at line 32 of file FPPowerSystem1BusDiffusion.c.
38 int ghosts = solver->
ghosts;
39 int ndims = solver->
ndims;
40 int nvars = solver->
nvars;
#define _ArrayScaleCopy1D_(x, a, y, size)
#define _ArrayAddCopy1D_(x, a, y, size)
Structure containing all solver-specific variables and functions.
double FPPowerSystem1BusDissipationFunction(int, int, void *, double)
#define _ArrayProduct1D_(x, size, p)