23 const auto* rm = sim->GetResourceManager();
39 size_t depleting_boxes =
44 "EulerDepletionGrid::ApplyDepletion()",
45 "The number of voxels of the depleting diffusion grid ",
48 "). Check the resolution.");
50 auto* depleting_concentration =
52 #pragma omp parallel for simd
const std::string & GetContinuumName() const
Returns the name of the continuum.
size_t GetNumBoxes() const
ParallelResizeVector< real_t > c2_
An extra concentration data buffer for faster value updating.
ParallelResizeVector< real_t > c1_
The array of concentration values.
size_t total_num_boxes_
The total number of boxes in the diffusion grid.
void DiffuseWithNeumann(real_t dt) override
void DiffuseWithOpenEdge(real_t dt) override
void DiffuseWithDirichlet(real_t dt) override
void DiffuseWithPeriodic(real_t dt) override
std::vector< int > binding_substances_
Vector of binding substances.
void ApplyDepletion(real_t dt)
Depletes the substance according to binding_substances_ and binding_coefficients_....
std::vector< real_t > binding_coefficients_
void DiffuseWithClosedEdge(real_t dt) override
void DiffuseWithOpenEdge(real_t dt) override
void DiffuseWithPeriodic(real_t dt) override
void DiffuseWithDirichlet(real_t dt) override
void DiffuseWithNeumann(real_t dt) override
void DiffuseWithClosedEdge(real_t dt) override
static void Fatal(const std::string &location, const Args &... parts)
Prints fatal error message.
static Simulation * GetActive()
This function returns the currently active Simulation simulation.