You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* - ρⁿ⁺¹ = updated concentration after secretion/uptake
110
-
*
111
-
* This assumes secretion is toward a saturation level, and uptake is proportional to ρ.
112
-
*
113
-
* In a future version, consider using a Behavior associated to each agent but controlling the time in which it is applied so that it is executed always after the diffusion module
114
-
*
115
-
*/
78
+
79
+
/// Compute cellular consumption and secretion effects
80
+
///
81
+
/// Handles secretion or consumption of substances following the differential equation:
/// - ρⁿ⁺¹ = updated concentration after secretion/uptake
105
+
///
106
+
/// This assumes secretion is toward a saturation level, and uptake is proportional to ρ.
107
+
///
108
+
/// In a future version, consider using a Behavior associated to each agent but controlling the time in which it is applied so that it is executed always after the diffusion module
116
109
voidComputeConsumptionsSecretions();
117
110
118
-
/** @name Private Member Variables
119
-
* @brief Internal data structures and parameters
120
-
* @{
121
-
*/
122
111
private:
123
-
/** @brief Number of voxels in each spatial direction*/
112
+
/// Number of voxels in each spatial direction
124
113
size_t resolution_;
125
114
126
-
/** @brief Voxel side length in micrometers*/
115
+
/// Voxel side length in micrometers
127
116
real_t d_space_;
128
117
129
-
/** @name Thomas Algorithm Coefficients
130
-
* @brief Precomputed coefficients for Thomas algorithm in each direction
131
-
* @{
132
-
*/
133
-
134
-
/** @brief Denominators for x-direction Thomas algorithm */
118
+
/// Denominators for x-direction Thomas algorithm
135
119
std::vector<real_t> thomas_denom_x_;
136
120
137
-
/** @brief Coefficients for x-direction Thomas algorithm*/
121
+
/// Coefficients for x-direction Thomas algorithm
138
122
std::vector<real_t> thomas_c_x_;
139
123
140
-
/** @brief Denominators for y-direction Thomas algorithm*/
124
+
/// Denominators for y-direction Thomas algorithm
141
125
std::vector<real_t> thomas_denom_y_;
142
126
143
-
/** @brief Coefficients for y-direction Thomas algorithm*/
127
+
/// Coefficients for y-direction Thomas algorithm
144
128
std::vector<real_t> thomas_c_y_;
145
129
146
-
/** @brief Denominators for z-direction Thomas algorithm*/
130
+
/// Denominators for z-direction Thomas algorithm
147
131
std::vector<real_t> thomas_denom_z_;
148
132
149
-
/** @brief Coefficients for z-direction Thomas algorithm*/
133
+
/// Coefficients for z-direction Thomas algorithm
150
134
std::vector<real_t> thomas_c_z_;
151
135
152
-
/** @} */// end of Thomas Algorithm Coefficients group
153
-
154
-
/** @name Index Jump Values
155
-
* @brief Precomputed index jumps for 3D array traversal
156
-
* @{
157
-
*/
158
-
159
-
/** @brief Index jump for i-direction (x-axis) */
136
+
/// Index jump for i-direction (x-axis)
160
137
int jump_i_;
161
138
162
-
/** @brief Index jump for j-direction (y-axis)*/
139
+
/// Index jump for j-direction (y-axis)
163
140
int jump_j_;
164
141
165
-
/** @brief Index jump for k-direction (z-axis)*/
142
+
/// Index jump for k-direction (z-axis)
166
143
int jump_k_;
167
144
168
-
/** @} */// end of Index Jump Values group
169
-
170
-
/** @name Precomputed Constants
171
-
* @brief Constants used in diffusion calculations
172
-
* @{
173
-
*/
174
-
175
-
/** @brief First diffusion constant */
145
+
/// First diffusion constant
176
146
real_t constant1_;
177
147
178
-
/** @brief Alternative first diffusion constant*/
148
+
/// Alternative first diffusion constant
179
149
real_t constant1a_;
180
150
181
-
/** @brief Second diffusion constant*/
151
+
/// Second diffusion constant
182
152
real_t constant2_;
183
153
184
-
/** @brief Third diffusion constant*/
154
+
/// Third diffusion constant
185
155
real_t constant3_;
186
156
187
-
/** @brief Alternative third diffusion constant*/
157
+
/// Alternative third diffusion constant
188
158
real_t constant3a_;
189
159
190
-
/** @} */// end of Precomputed Constants group
191
-
192
-
/** @brief Flag indicating Dirichlet boundary conditions */
160
+
/// Flag indicating Dirichlet boundary conditions
193
161
bool dirichlet_border_;
194
162
195
-
/** @} */// end of Private Member Variables group
196
-
197
-
/** @brief Initialize Thomas algorithm coefficient vectors
198
-
*
199
-
* Sets up the precomputed coefficients for efficient Thomas algorithm
200
-
* execution in the specified direction.
201
-
*
202
-
* @param thomas_denom Reference to denominator vector to initialize
203
-
* @param thomas_c Reference to coefficient vector to initialize
204
-
*/
163
+
/// Initialize Thomas algorithm coefficient vectors
164
+
///
165
+
/// Sets up the precomputed coefficients for efficient Thomas algorithm
166
+
/// execution in the specified direction.
167
+
///
168
+
/// @param thomas_denom Reference to denominator vector to initialize
169
+
/// @param thomas_c Reference to coefficient vector to initialize
Copy file name to clipboardExpand all lines: src/hyperparams.h
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -26,10 +26,11 @@
26
26
27
27
namespacebdm {
28
28
29
+
///This file contains hyperparameters used in the simulation. Change: In a future version it needs to be changed into a params file with no need to be recompiled
29
30
30
-
31
-
31
+
///
32
32
/// TumorCell Hyperparameters
33
+
///
33
34
34
35
/// Rate of secretion of immunostimulatory factor of tumor cells per minute
0 commit comments