Loading [MathJax]/extensions/tex2jax.js
HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
All
Functions
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
c
d
e
f
g
i
l
m
o
p
r
s
t
u
w
~
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
Variables
Typedefs
Enumerations
Enumerator
+
Macros
_
a
c
d
g
i
m
n
r
s
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
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
*);
FPDoubleWell::pdf_integral
double pdf_integral
Definition:
fpdoublewell.h:28
FPDoubleWell::q
double q
Definition:
fpdoublewell.h:27
FPDoubleWell
Definition:
fpdoublewell.h:26
FPDoubleWellInitialize
int FPDoubleWellInitialize(void *, void *)
Definition:
FPDoubleWellInitialize.c:19
FPDoubleWellCleanup
int FPDoubleWellCleanup(void *)
Definition:
FPDoubleWellCleanup.c:4