IBAMR
An adaptive and distributed-memory parallel implementation of the immersed boundary (IB) method
Public Member Functions | List of all members
IBAMR::LevelSetUtilities::LevelSetContainer Class Reference

A lightweight class to hold the level set variable and the associated hierarchy integrator (AdvDiffHierarchyIntegrator). More...

#include </home/runner/work/IBAMR/IBAMR/include/ibamr/LevelSetUtilities.h>

Inheritance diagram for IBAMR::LevelSetUtilities::LevelSetContainer:
Inheritance graph
[legend]

Public Member Functions

 LevelSetContainer (SAMRAI::tbox::Pointer< AdvDiffHierarchyIntegrator > adv_diff_integrator, SAMRAI::tbox::Pointer< SAMRAI::pdat::CellVariable< NDIM, double > > ls_var, double ncells=1.0)
 Constructor of the class.
 
 LevelSetContainer (SAMRAI::tbox::Pointer< AdvDiffHierarchyIntegrator > adv_diff_integrator, std::vector< SAMRAI::tbox::Pointer< SAMRAI::pdat::CellVariable< NDIM, double > > > ls_vars, double ncells=1.0)
 
void setInterfaceHalfWidth (double ncells)
 
double getInterfaceHalfWidth () const
 
SAMRAI::tbox::Pointer< AdvDiffHierarchyIntegratorgetAdvDiffHierarchyIntegrator () const
 
SAMRAI::tbox::Pointer< SAMRAI::pdat::CellVariable< NDIM, double > > getLevelSetVariable (int idx=0) const
 

Detailed Description

A lightweight class to hold the level set variable and the associated hierarchy integrator (AdvDiffHierarchyIntegrator).

Member Function Documentation

◆ setInterfaceHalfWidth()

void IBAMR::LevelSetUtilities::LevelSetContainer::setInterfaceHalfWidth ( double  ncells)
inline
Parameters
ncellsare the number of cells representing the half-width of the interface. Depending upon the application, ncells is used to specify material properties like density or viscosity (via some mixture model) or to compute volume of the phase enclosed by the level set variable.

The documentation for this class was generated from the following file: