13#ifndef CD_IRREGULARDEPOSITIONIMPLEM_H
14#define CD_IRREGULARDEPOSITIONIMPLEM_H
18#include <CD_NamespaceHeader.H>
23 if (a_str ==
"native") {
26 else if (a_str ==
"ngp") {
29 else if (a_str ==
"mirror") {
32 else if (a_str ==
"redistribute") {
35 else if (a_str ==
"redistribute_blended") {
39 MayDay::Abort((
"irregularDepositionFromString - unknown cut-cell deposition '" + a_str +
"'").c_str());
45#include <CD_NamespaceFooter.H>
IrregularDeposition irregularDepositionFromString(const std::string &a_str) noexcept
Map a cut-cell deposition selector string to an IrregularDeposition.
Definition CD_IrregularDepositionImplem.H:21
Declaration of cut-cell deposition strategies.
IrregularDeposition
How a deposition scheme treats the cut cells.
Definition CD_IrregularDeposition.H:36
@ Mirror
Even extension of the density about the embedded boundary: deposit each particle's cloud and the clou...
@ Redistribute
Hybrid divergence: the cut-cell mass excess deltaM = (1-kappa)*dc is redistributed to the neighbours.
@ RedistributeBlended
As Redistribute, but the conservative divergence is first blended with the non-conservative one.
@ Native
Deposit as-is, with no cut-cell treatment at all.
@ NGP
Put the particle's entire cloud in its own cell when that cell is a cut cell.