LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
ld_tillage.h
1/*
2 * SPDX-FileCopyrightText: Karlsruhe Institute of Technology (KIT)
3 * SPDX-License-Identifier: LicenseRef-LandscapeDNDC
4 * This file is part of LandscapeDNDC. See LICENSE.
5 */
13
14#ifndef LD_TILLAGE_H_
15#define LD_TILLAGE_H_
16
17#include "ld_modelsconfig.h"
18#include <containers/lvector.h>
19#include <string/cbm_string.h>
20
21namespace ldndc {
22
29{
32 bool legacy;
33
35 double mixing;
36
40
43
47};
48
49
68lerr_t LDNDC_API
69tillage_properties(
70 cbm::string_t const & /* tillage type (empty or invalid: legacy) */,
71 double /* mixing (invalid: default of type) */,
72 double /* incorporation (invalid: default of type) */,
73 double /* inversion (invalid: default of type) */,
75
76
84void LDNDC_API
86 lvector_t< double > & /* pool */,
87 size_t /* number of tilled layers */,
88 double /* mixing [0-1] */,
89 lvector_t< double > const & /* layer thickness [m] */,
90 double /* depth of the lowest tilled layer [m] */);
91
92
103void LDNDC_API
105 lvector_t< double > & /* liquid water content [m3 m-3] */,
106 lvector_t< double > const & /* ice content [m3 m-3] */,
107 lvector_t< double > const & /* porosity [m3 m-3] */,
108 size_t /* number of tilled layers */,
109 double /* mixing [0-1] */,
110 lvector_t< double > const & /* layer thickness [m] */);
111
112
113double LDNDC_API
114tillage_placement(
115 size_t /* layer */,
116 size_t /* number of tilled layers */,
117 tillage_properties_t const &,
118 lvector_t< double > const & /* layer thickness [m] */,
119 lvector_t< double > const & /* depth of the lower layer boundaries [m] */);
120
121} /* namespace ldndc */
122
123#endif /* !LD_TILLAGE_H_ */
Spatially explicit groundwater model.
Definition airchemistryput.h:21
void tillage_mix_water(lvector_t< double > &_wc, lvector_t< double > const &_ice, lvector_t< double > const &_poro, size_t _cnt, double _mixing, lvector_t< double > const &_h)
Fraction of an amount added to the tilled layers that ends up in layer _l: without inversion,...
Definition ld_tillage.cpp:123
void tillage_mix(lvector_t< double > &_pool, size_t _cnt, double _mixing, lvector_t< double > const &_h, double _depth)
Partial homogenization of a pool over the first _cnt layers: pool_l = (1 - m) pool_l + m h_l / z * su...
Definition ld_tillage.cpp:103
Properties of a tillage operation. All values except legacy can be overwritten by the corresponding a...
Definition ld_tillage.h:29
double mixing
Definition ld_tillage.h:35
double stimulation
Definition ld_tillage.h:46
double incorporation
Definition ld_tillage.h:39
bool legacy
Definition ld_tillage.h:32
bool inversion
Definition ld_tillage.h:42