-
Notifications
You must be signed in to change notification settings - Fork 11
/
EDMF_Updrafts.pxd
74 lines (68 loc) · 2.39 KB
/
EDMF_Updrafts.pxd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
cimport Grid
cimport ReferenceState
from Variables cimport GridMeanVariables
from NetCDFIO cimport NetCDFIO_Stats
from EDMF_Environment cimport EnvironmentVariables
cdef class UpdraftVariable:
cdef:
double [:,:] values
double [:,:] new
double [:,:] old
double [:,:] tendencies
double [:,:] flux
double [:] bulkvalues
str loc
str kind
str name
str units
cpdef set_bcs(self, Grid.Grid Gr)
cdef class UpdraftVariables:
cdef:
Grid.Grid Gr
UpdraftVariable W
UpdraftVariable Area
UpdraftVariable QT
UpdraftVariable QL
UpdraftVariable QR
UpdraftVariable H
UpdraftVariable THL
UpdraftVariable T
UpdraftVariable B
Py_ssize_t n_updrafts
bint prognostic
double updraft_fraction
double [:] cloud_base
double [:] cloud_top
double [:] cloud_cover
cpdef initialize(self, GridMeanVariables GMV)
cpdef initialize_io(self, NetCDFIO_Stats Stats)
cpdef io(self, NetCDFIO_Stats Stats)
cpdef set_means(self, GridMeanVariables GMV)
cpdef set_new_with_values(self)
cpdef set_old_with_values(self)
cpdef set_values_with_new(self)
cpdef get_cloud_base_top_cover(self)
cdef class UpdraftThermodynamics:
cdef:
double (*t_to_prog_fp)(double p0, double T, double qt, double ql, double qi) nogil
double (*prog_to_t_fp)(double H, double pd, double pv, double qt ) nogil
Grid.Grid Gr
ReferenceState.ReferenceState Ref
Py_ssize_t n_updraft
cpdef satadjust(self, UpdraftVariables UpdVar)
cpdef buoyancy(self, UpdraftVariables UpdVar, EnvironmentVariables EnvVar,
GridMeanVariables GMV, bint extrap)
cdef class UpdraftMicrophysics:
cdef:
Grid.Grid Gr
ReferenceState.ReferenceState Ref
Py_ssize_t n_updraft
double [:,:] prec_source_h
double [:,:] prec_source_qt
double [:] prec_source_h_tot
double [:] prec_source_qt_tot
double max_supersaturation
cdef void compute_update_combined_local_thetal(self, double p0, double t, double *qt, double *ql, double *qr, double *h,
Py_ssize_t i, Py_ssize_t k) nogil
cpdef compute_sources(self, UpdraftVariables UpdVar)
cpdef update_updraftvars(self, UpdraftVariables UpdVar)