IBAMR  IBAMR version 0.19.
Public Member Functions | Private Attributes | List of all members
IBAMR::LevelSetUtilities::LevelSetContainer Class Reference

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

#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. More...
 
 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
 

Private Attributes

SAMRAI::tbox::Pointer< AdvDiffHierarchyIntegratord_adv_diff_integrator
 
std::vector< SAMRAI::tbox::Pointer< SAMRAI::pdat::CellVariable< NDIM, double > > > d_ls_vars
 
double d_ncells = 1.0
 

Constructor & Destructor Documentation

◆ LevelSetContainer() [1/2]

IBAMR::LevelSetUtilities::LevelSetContainer::LevelSetContainer ( SAMRAI::tbox::Pointer< AdvDiffHierarchyIntegrator adv_diff_integrator,
SAMRAI::tbox::Pointer< SAMRAI::pdat::CellVariable< NDIM, double > >  ls_var,
double  ncells = 1.0 
)
inline

◆ LevelSetContainer() [2/2]

IBAMR::LevelSetUtilities::LevelSetContainer::LevelSetContainer ( SAMRAI::tbox::Pointer< AdvDiffHierarchyIntegrator adv_diff_integrator,
std::vector< SAMRAI::tbox::Pointer< SAMRAI::pdat::CellVariable< NDIM, double > > >  ls_vars,
double  ncells = 1.0 
)
inline

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.

◆ getInterfaceHalfWidth()

double IBAMR::LevelSetUtilities::LevelSetContainer::getInterfaceHalfWidth ( ) const
inline

◆ getAdvDiffHierarchyIntegrator()

SAMRAI::tbox::Pointer<AdvDiffHierarchyIntegrator> IBAMR::LevelSetUtilities::LevelSetContainer::getAdvDiffHierarchyIntegrator ( ) const
inline

◆ getLevelSetVariable()

SAMRAI::tbox::Pointer<SAMRAI::pdat::CellVariable<NDIM, double> > IBAMR::LevelSetUtilities::LevelSetContainer::getLevelSetVariable ( int  idx = 0) const
inline

Member Data Documentation

◆ d_adv_diff_integrator

SAMRAI::tbox::Pointer<AdvDiffHierarchyIntegrator> IBAMR::LevelSetUtilities::LevelSetContainer::d_adv_diff_integrator
private

◆ d_ls_vars

std::vector<SAMRAI::tbox::Pointer<SAMRAI::pdat::CellVariable<NDIM, double> > > IBAMR::LevelSetUtilities::LevelSetContainer::d_ls_vars
private

◆ d_ncells

double IBAMR::LevelSetUtilities::LevelSetContainer::d_ncells = 1.0
private

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