IBAMR
An adaptive and distributed-memory parallel implementation of the immersed boundary (IB) method
Public Types | Public Member Functions | Protected Attributes | 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. More...

#include </home/runner/work/IBAMR/IBAMR/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.
 

Public Member Functions

 LSInitStrategy (std::string object_name, bool register_for_restart=true)
 Constructor.
 
virtual ~LSInitStrategy ()
 Virtual destructor.
 
virtual void registerPhysicalBoundaryCondition (SAMRAI::solv::RobinBcCoefStrategy< NDIM > *robin_bc_coef)
 Register physical boundary condition for the level set.
 
virtual void registerInterfaceNeighborhoodLocatingFcn (LocateInterfaceNeighborhoodFcnPtr callback, void *ctx)
 Register interface neighborhood locating functions.
 
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.
 
virtual void setReinitializeLSData (bool reinit_ls_data)
 Indicate that the class should reinitialize level set.
 
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
 

Detailed Description

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

Member Function Documentation

◆ 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.


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