forked from open-atmos/PyPartMC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscenario.cpp
43 lines (40 loc) · 1.16 KB
/
scenario.cpp
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
/*##################################################################################################
# This file is a part of PyPartMC licensed under the GNU General Public License v3 (LICENSE file) #
# Copyright (C) 2022 University of Illinois Urbana-Champaign #
# Authors: https://github.com/open-atmos/PyPartMC/graphs/contributors #
##################################################################################################*/
#include "scenario.hpp"
double loss_rate(
const Scenario &scenario,
const double vol,
const double density,
const AeroData &aero_data,
const EnvState &env_state
) {
double rate;
f_scenario_loss_rate(
&scenario.ptr,
&vol,
&density,
&aero_data.ptr,
&env_state.ptr,
&rate
);
return rate;
}
double loss_rate_dry_dep(
const double vol,
const double density,
const AeroData &aero_data,
const EnvState &env_state
) {
double rate;
f_scenario_loss_rate_dry_dep(
&vol,
&density,
&aero_data.ptr,
&env_state.ptr,
&rate
);
return rate;
}