LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
ld_soil.h
1
9
10#ifndef LDNDC_SCIENTIFIC_SOIL_H_
11#define LDNDC_SCIENTIFIC_SOIL_H_
12
13#include "crabmeat-common.h"
14#include "ecosystemtypes.h"
15#include "string/cbm_string.h"
16#include "soillayers/soillayerstypes.h"
17
18namespace ldndc
19{
20 enum henry_coefficient_e
21 {
22 henry_o2,
23 henry_n2,
24 henry_nh3,
25 henry_n2o,
26 henry_no,
27 henry_ch4,
28 henry_co2,
29 henry_radon,
30
31 num_henry_coeff
32 };
33
37 CBM_API
38 double
39 get_henry_coefficient(
40 double /* temperature */,
41 henry_coefficient_e /* henry coefficient*/);
42
47 CBM_API
48 double
49 porosity(
50 double /* org. C fraction */,
51 double /* soil density */,
52 double /* _mineral_density */);
53
58 CBM_API
59 double
60 cn_ratio(
61 cn_ratiolevel_e /* cn ratio level */,
62 double /* depth of current spoil layer*/,
63 double /* depth upper soil layer */,
64 double /* cn ratio of upper soil layer */);
65
70 CBM_API
71 lerr_t
72 organic_carbon_fraction(
73 double * /* org. C fraction */,
74 double /* org. C fraction in 0.05 m */,
75 double /* org. C fraction in 0.30 m */,
76 double /* cumulated depth */);
77
82 CBM_API
83 lerr_t
84 estimate_organic_carbon_content(
85 double * /* fitting parameter */,
86 double * /* fitting parameter */,
87 double /* org. C fraction in 0.05 m */,
88 double /* org. C fraction in 0.30 m */);
89
90 class soil_texture
91 {
92 public:
93 soil_texture( cbm::string_t /* soil name */,
94 double [14] /* soil texture rtiangle coordinates */);
95
96 cbm::string_t name;
97 double x_cord[7];
98 double y_cord[7];
99 };
100
105 CBM_API
106 bool
107 use_usda_soil_texture_triangle( ldndc::soillayers::soil_type_e /* soil type */);
108
113 CBM_API
114 bool
115 in_soil_texture_triangle_polynom(
116 soil_texture /* soil texture type */,
117 size_t /* number of polynom vertices */,
118 double /* sand content (%) */,
119 double /* clay content (%) */);
120
125 CBM_API
126 cbm::string_t
127 get_soil_texture(
128 double /* sand content (%) */,
129 double /* clay content (%) */);
130
135 CBM_API
136 soillayers::soil_type_e
137 get_soil_texture_type(
138 cbm::string_t /* soil texture */);
139} /* namespace ldndc */
140
141
142#endif /* !LDNDC_SCIENTIFIC_SOIL_H_ */
Spatially explicit groundwater model.
Definition airchemistryput.h:15