HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
fpdoublewell.h
Go to the documentation of this file.
1 /*
2  Fokker-Planck Model for Double Well
3 
4 Reference:
5 + Miller, R.N., Carter E.F., Blue S.T., "Data assimilation into
6  nonlinear stochastic models", Tellus (1999), 51 A, 167-194
7 
8  dP d[f(x)P] 1 d^2 P
9  -- = -------- + - q -----
10  dt dx 2 dx^2
11 
12  f(x) = 4x(x^2-1) (drift)
13  q = constant (input)
14 
15 
16 */
17 
18 #define _FP_DOUBLE_WELL_ "fp-double-well"
19 
20 /* define ndims and nvars for this model */
21 #undef _MODEL_NDIMS_
22 #undef _MODEL_NVARS_
23 #define _MODEL_NDIMS_ 1
24 #define _MODEL_NVARS_ 1
25 
26 typedef struct fp_double_well_parameters {
27  double q; /* diffusion coefficient */
28  double pdf_integral; /* not an input */
29 } FPDoubleWell;
30 
31 #define drift(x) (4.0*(x)*(1.0-(x)*(x)))
32 
33 int FPDoubleWellInitialize (void*,void*);
34 int FPDoubleWellCleanup (void*);
double pdf_integral
Definition: fpdoublewell.h:28
int FPDoubleWellInitialize(void *, void *)
int FPDoubleWellCleanup(void *)