|
IBAMR
IBAMR version 0.20.
|
Class LevelSetUtilities provides implementation of some helper functions to enforce mass/volume conservation of phases.
Classes | |
| class | LevelSetContainer |
| A lightweight class to hold the level set variable and the associated hierarchy integrator (AdvDiffHierarchyIntegrator). More... | |
| class | TagLSRefinementCells |
| A lightweight class to tag grid cells containing the level set variable for grid refinement. More... | |
| class | LevelSetMassLossFixer |
| Class LevelSetMassLossFixer corrects a regularized phase volume by a uniform shift q of the level set \(\phi\). More... | |
| class | SetLSProperties |
| Class SetLSProperties is a utility class which sets (or resets after reinitialization) level set values on the patch hierarchy. More... | |
Functions | |
| void | tagLSCells (SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchHierarchy< NDIM >> hierarchy, const int level_number, const double error_data_time, const int tag_index, const bool initial_time, const bool uses_richardson_extrapolation_too, void *ctx) |
| Preprocessing call back function to be hooked into IBAMR::HierarchyIntegrator class to tag the cells for grid refinement based on the given tagging criteria. More... | |
| void | fixMassLoss2PhaseFlows (double current_time, double new_time, bool skip_synchronize_new_state_data, int num_cycles, void *ctx) |
| Correct the gas volume in the NEW context after integration. More... | |
| void | fixMassLoss3PhaseFlows (double current_time, double new_time, bool skip_synchronize_new_state_data, int num_cycles, void *ctx) |
| Correct the liquid volume of a three-phase flow in the NEW context after integration, preserving the second (solid) level set. More... | |
| std::vector< double > | computeHeavisideIntegrals2PhaseFlows (const LevelSetContainer &lsc) |
| std::vector< double > | computeHeavisideIntegrals3PhaseFlows (const LevelSetContainer &lsc) |
| void | setLSDataPatchHierarchy (int ls_idx, SAMRAI::tbox::Pointer< IBTK::HierarchyMathOps > hier_math_ops, const int integrator_step, const double current_time, const bool initial_time, const bool regrid_time, void *ctx) |
| A function that sets or resets the level set data on the patch hierarchy. More... | |
| void IBAMR::LevelSetUtilities::tagLSCells | ( | SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchHierarchy< NDIM >> | hierarchy, |
| const int | level_number, | ||
| const double | error_data_time, | ||
| const int | tag_index, | ||
| const bool | initial_time, | ||
| const bool | uses_richardson_extrapolation_too, | ||
| void * | ctx | ||
| ) |
This static member should be registered with an appropriate hierarchy integrator via registerApplyGradientDetectorCallback().
| ctx | is the pointer to the TagLSRefinementCells class object. |
| void IBAMR::LevelSetUtilities::fixMassLoss2PhaseFlows | ( | double | current_time, |
| double | new_time, | ||
| bool | skip_synchronize_new_state_data, | ||
| int | num_cycles, | ||
| void * | ctx | ||
| ) |
Register with registerPostprocessIntegrateHierarchyCallback(). ctx points to a LevelSetMassLossFixer whose target volume must be set before the callback.
| void IBAMR::LevelSetUtilities::fixMassLoss3PhaseFlows | ( | double | current_time, |
| double | new_time, | ||
| bool | skip_synchronize_new_state_data, | ||
| int | num_cycles, | ||
| void * | ctx | ||
| ) |
Register with registerPostprocessIntegrateHierarchyCallback(). ctx points to a LevelSetMassLossFixer whose target volume must be set before the callback.
| std::vector<double> IBAMR::LevelSetUtilities::computeHeavisideIntegrals2PhaseFlows | ( | const LevelSetContainer & | lsc | ) |
Here, \( H(\phi) \) is the Heaviside function demarcating liquid and gas domains.
\( \phi \) is taken to be positive in the liquid domain and negative in the gas domain.
Physically, these three integrals represent the volume of the gas region, the volume of the liquid region, and a regularized interface-area estimate, respectively. The delta integral represents area if \(\phi\) is a resolved signed-distance field.
| std::vector<double> IBAMR::LevelSetUtilities::computeHeavisideIntegrals3PhaseFlows | ( | const LevelSetContainer & | lsc | ) |
Here, \( H(\phi) \) is the Heaviside function demarcating liquid and gas domains, and \( H(\Psi) \) is the Heaviside function demarcating solid and fluid (fluid = liquid and gas) domains.
Physically, these four integrals represent the volume of the gas region, the volume of the liquid region, the volume of the solid region, and a regularized fluid-interface-area estimate, respectively. The delta integral represents area if \(\phi\) is a resolved signed-distance field.
\( \phi \) is taken to be positive in the liquid domain and negative in the gas domain.
\( \Psi \) is taken to be positive outside the solid and negative inside the solid.
| void IBAMR::LevelSetUtilities::setLSDataPatchHierarchy | ( | int | ls_idx, |
| SAMRAI::tbox::Pointer< IBTK::HierarchyMathOps > | hier_math_ops, | ||
| const int | integrator_step, | ||
| const double | current_time, | ||
| const bool | initial_time, | ||
| const bool | regrid_time, | ||
| void * | ctx | ||
| ) |