IBAMR  IBAMR version 0.19.
Public Types | Public Member Functions | Protected Attributes | Private Member Functions | List of all members
IBAMR::LSInitStrategy Class Referenceabstract

Class LSInitStrategy provides a generic interface for initializing the implementation details of a particular version of the level set method.

#include <ibamr/LSInitStrategy.h>

Inheritance diagram for IBAMR::LSInitStrategy:
Inheritance graph
[legend]

Public Types

using LocateInterfaceNeighborhoodFcnPtr = void(*)(int D_idx, SAMRAI::tbox::Pointer< IBTK::HierarchyMathOps > hier_math_ops, double time, bool initial_time, void *ctx)
 Function specifying distance function near an interface. More...
 

Public Member Functions

 LSInitStrategy (std::string object_name, bool register_for_restart=true)
 Constructor. More...
 
virtual ~LSInitStrategy ()
 Virtual destructor. More...
 
virtual void registerPhysicalBoundaryCondition (SAMRAI::solv::RobinBcCoefStrategy< NDIM > *robin_bc_coef)
 Register physical boundary condition for the level set. More...
 
virtual void registerInterfaceNeighborhoodLocatingFcn (LocateInterfaceNeighborhoodFcnPtr callback, void *ctx)
 Register interface neighborhood locating functions. More...
 
virtual void initializeLSData (int dst_idx, SAMRAI::tbox::Pointer< IBTK::HierarchyMathOps > hierarchy_math_ops, int integrator_step, double time, bool initial_time)=0
 Initialize level set data. More...
 
virtual void setReinitializeLSData (bool reinit_ls_data)
 Indicate that the class should reinitialize level set. More...
 
void putToDatabase (SAMRAI::tbox::Pointer< SAMRAI::tbox::Database > db) override
 

Protected Attributes

std::string d_object_name
 
bool d_registered_for_restart
 
LevelSetOrder d_ls_order = FIRST_ORDER_LS
 
LevelSetTimeStepping d_ls_ts = GAUSS_SEIDEL_PSEUDO_TS
 
double d_abs_tol = 1.0e-5
 
int d_max_its = 100
 
bool d_enable_logging = false
 
bool d_reinitialize_ls = false
 
int d_reinit_interval = 0
 
SAMRAI::solv::RobinBcCoefStrategy< NDIM > * d_bc_coef
 
std::vector< LocateInterfaceNeighborhoodFcnPtrd_locate_interface_fcns
 
std::vector< void * > d_locate_interface_fcns_ctx
 

Private Member Functions

 LSInitStrategy (const LSInitStrategy &from)=delete
 Copy constructor. More...
 
LSInitStrategyoperator= (const LSInitStrategy &that)=delete
 Assignment operator. More...
 

Member Typedef Documentation

◆ LocateInterfaceNeighborhoodFcnPtr

using IBAMR::LSInitStrategy::LocateInterfaceNeighborhoodFcnPtr = void (*)(int D_idx, SAMRAI::tbox::Pointer<IBTK::HierarchyMathOps> hier_math_ops, double time, bool initial_time, void* ctx)

Constructor & Destructor Documentation

◆ LSInitStrategy() [1/2]

IBAMR::LSInitStrategy::LSInitStrategy ( std::string  object_name,
bool  register_for_restart = true 
)

◆ ~LSInitStrategy()

virtual IBAMR::LSInitStrategy::~LSInitStrategy ( )
virtual

◆ LSInitStrategy() [2/2]

IBAMR::LSInitStrategy::LSInitStrategy ( const LSInitStrategy from)
privatedelete
Note
This constructor is not implemented and should not be used.
Parameters
fromThe value to copy to this object.

Member Function Documentation

◆ registerPhysicalBoundaryCondition()

virtual void IBAMR::LSInitStrategy::registerPhysicalBoundaryCondition ( SAMRAI::solv::RobinBcCoefStrategy< NDIM > *  robin_bc_coef)
virtual

◆ registerInterfaceNeighborhoodLocatingFcn()

virtual void IBAMR::LSInitStrategy::registerInterfaceNeighborhoodLocatingFcn ( LocateInterfaceNeighborhoodFcnPtr  callback,
void *  ctx 
)
virtual

◆ initializeLSData()

virtual void IBAMR::LSInitStrategy::initializeLSData ( int  dst_idx,
SAMRAI::tbox::Pointer< IBTK::HierarchyMathOps hierarchy_math_ops,
int  integrator_step,
double  time,
bool  initial_time 
)
pure virtual

◆ setReinitializeLSData()

virtual void IBAMR::LSInitStrategy::setReinitializeLSData ( bool  reinit_ls_data)
virtual

◆ putToDatabase()

void IBAMR::LSInitStrategy::putToDatabase ( SAMRAI::tbox::Pointer< SAMRAI::tbox::Database db)
overridevirtual

Write out object state to the given database.

An empty default implementation is provided.

Implements SAMRAI::tbox::Serializable.

◆ operator=()

LSInitStrategy& IBAMR::LSInitStrategy::operator= ( const LSInitStrategy that)
privatedelete
Note
This operator is not implemented and should not be used.
Parameters
thatThe value to assign to this object.
Returns
A reference to this object.

Member Data Documentation

◆ d_object_name

std::string IBAMR::LSInitStrategy::d_object_name
protected

◆ d_registered_for_restart

bool IBAMR::LSInitStrategy::d_registered_for_restart
protected

◆ d_ls_order

LevelSetOrder IBAMR::LSInitStrategy::d_ls_order = FIRST_ORDER_LS
protected

◆ d_ls_ts

LevelSetTimeStepping IBAMR::LSInitStrategy::d_ls_ts = GAUSS_SEIDEL_PSEUDO_TS
protected

◆ d_abs_tol

double IBAMR::LSInitStrategy::d_abs_tol = 1.0e-5
protected

◆ d_max_its

int IBAMR::LSInitStrategy::d_max_its = 100
protected

◆ d_enable_logging

bool IBAMR::LSInitStrategy::d_enable_logging = false
protected

◆ d_reinitialize_ls

bool IBAMR::LSInitStrategy::d_reinitialize_ls = false
protected

◆ d_reinit_interval

int IBAMR::LSInitStrategy::d_reinit_interval = 0
protected

◆ d_bc_coef

SAMRAI::solv::RobinBcCoefStrategy<NDIM>* IBAMR::LSInitStrategy::d_bc_coef
protected

◆ d_locate_interface_fcns

std::vector<LocateInterfaceNeighborhoodFcnPtr> IBAMR::LSInitStrategy::d_locate_interface_fcns
protected

◆ d_locate_interface_fcns_ctx

std::vector<void*> IBAMR::LSInitStrategy::d_locate_interface_fcns_ctx
protected

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