chombo-discharge
Loading...
Searching...
No Matches
CD_IrregularDepositionImplem.H
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021-2026 SINTEF Energy Research
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
13#ifndef CD_IRREGULARDEPOSITIONIMPLEM_H
14#define CD_IRREGULARDEPOSITIONIMPLEM_H
15
16// Our includes
18#include <CD_NamespaceHeader.H>
19
21irregularDepositionFromString(const std::string& a_str) noexcept
22{
23 if (a_str == "native") {
25 }
26 else if (a_str == "ngp") {
28 }
29 else if (a_str == "mirror") {
31 }
32 else if (a_str == "redistribute") {
34 }
35 else if (a_str == "redistribute_blended") {
37 }
38 else {
39 MayDay::Abort(("irregularDepositionFromString - unknown cut-cell deposition '" + a_str + "'").c_str());
40
42 }
43}
44
45#include <CD_NamespaceFooter.H>
46
47#endif
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.