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

Class INSCollocatedHierarchyIntegrator provides a collocated projection method-based solver for the incompressible Navier-Stokes equations on an AMR grid hierarchy. More...

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

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

Public Member Functions

 INSCollocatedHierarchyIntegrator (std::string object_name, SAMRAI::tbox::Pointer< SAMRAI::tbox::Database > input_db, bool register_for_restart=true)
 
 ~INSCollocatedHierarchyIntegrator ()
 
SAMRAI::tbox::Pointer< ConvectiveOperatorgetConvectiveOperator () override
 
SAMRAI::tbox::Pointer< IBTK::PoissonSolvergetVelocitySubdomainSolver () override
 
SAMRAI::tbox::Pointer< IBTK::PoissonSolvergetPressureSubdomainSolver () override
 
void initializeHierarchyIntegrator (SAMRAI::tbox::Pointer< SAMRAI::hier::PatchHierarchy< NDIM > > hierarchy, SAMRAI::tbox::Pointer< SAMRAI::mesh::GriddingAlgorithm< NDIM > > gridding_alg) override
 
void initializePatchHierarchy (SAMRAI::tbox::Pointer< SAMRAI::hier::PatchHierarchy< NDIM > > hierarchy, SAMRAI::tbox::Pointer< SAMRAI::mesh::GriddingAlgorithm< NDIM > > gridding_alg) override
 
void preprocessIntegrateHierarchy (double current_time, double new_time, int num_cycles=1) override
 
void postprocessIntegrateHierarchy (double current_time, double new_time, bool skip_synchronize_new_state_data, int num_cycles=1) override
 
- Public Member Functions inherited from IBAMR::INSHierarchyIntegrator
 ~INSHierarchyIntegrator ()
 
void setViscousTimeSteppingType (TimeSteppingType viscous_time_stepping_type)
 
TimeSteppingType getViscousTimeSteppingType () const
 
void setConvectiveTimeSteppingType (TimeSteppingType convective_time_stepping_type)
 
TimeSteppingType getConvectiveTimeSteppingType () const
 
void setInitialConvectiveTimeSteppingType (TimeSteppingType init_convective_time_stepping_type) const
 
TimeSteppingType getInitialConvectiveTimeSteppingType () const
 
void registerAdvDiffHierarchyIntegrator (SAMRAI::tbox::Pointer< AdvDiffHierarchyIntegrator > adv_diff_hier_integrator)
 
void setStokesSpecifications (StokesSpecifications problem_coefs)
 
const StokesSpecificationsgetStokesSpecifications () const
 
void registerPhysicalBoundaryConditions (const std::vector< SAMRAI::solv::RobinBcCoefStrategy< NDIM > * > &bc_coefs)
 
virtual const std::vector< SAMRAI::solv::RobinBcCoefStrategy< NDIM > * > & getVelocityBoundaryConditions () const
 
virtual SAMRAI::solv::RobinBcCoefStrategy< NDIM > * getPressureBoundaryConditions () const
 
void registerVelocityInitialConditions (SAMRAI::tbox::Pointer< IBTK::CartGridFunction > U_init)
 
void registerPressureInitialConditions (SAMRAI::tbox::Pointer< IBTK::CartGridFunction > P_init)
 
void registerBodyForceFunction (SAMRAI::tbox::Pointer< IBTK::CartGridFunction > F_fcn)
 
void registerFluidSourceFunction (SAMRAI::tbox::Pointer< IBTK::CartGridFunction > Q_fcn)
 
void registerVelocityDivergenceFunction (SAMRAI::tbox::Pointer< IBTK::CartGridFunction > Q_fcn)
 
SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > getVelocityVariable () const
 
SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > getPressureVariable () const
 
SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > getBodyForceVariable () const
 
SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > getFluidSourceVariable () const
 
SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > getVelocityDivergenceVariable () const
 
SAMRAI::tbox::Pointer< SAMRAI::pdat::FaceVariable< NDIM, double > > getAdvectionVelocityVariable () const
 
std::vector< SAMRAI::solv::RobinBcCoefStrategy< NDIM > * > getIntermediateVelocityBoundaryConditions () const
 
SAMRAI::solv::RobinBcCoefStrategy< NDIM > * getProjectionBoundaryConditions () const
 
void setConvectiveOperatorType (const std::string &op_type)
 Set the convective operator type to be used by the solver.
 
const std::stringgetConvectiveOperatorType () const
 Get the convective operator type used by the solver.
 
void setConvectiveDifferencingType (ConvectiveDifferencingType difference_form)
 Set the convective differencing form to be used by the solver.
 
ConvectiveDifferencingType getConvectiveDifferencingType () const
 Get the convective differencing form used by the solver.
 
void setCreepingFlow (bool creeping_flow)
 Set whether the integrator solves the time-dependent (creeping) Stokes equations. Otherwise, the integrator solves the time-dependent Navier-Stokes equations.
 
bool getCreepingFlow () const
 Get whether the integrator solves the time-dependent (creeping) Stokes equations. Otherwise, the integrator solves the time-dependent Navier-Stokes equations.
 
void setConvectiveOperator (SAMRAI::tbox::Pointer< ConvectiveOperator > convective_op)
 
void setConvectiveOperatorNeedsInit ()
 
void setVelocitySubdomainSolver (SAMRAI::tbox::Pointer< IBTK::PoissonSolver > velocity_solver)
 
void setVelocitySubdomainSolverNeedsInit ()
 
void setPressureSubdomainSolver (SAMRAI::tbox::Pointer< IBTK::PoissonSolver > pressure_solver)
 
void setPressureSubdomainSolverNeedsInit ()
 
int getNumberOfCycles () const override
 
virtual double getCurrentCFLNumber () const
 
- Public Member Functions inherited from IBTK::HierarchyIntegrator
 HierarchyIntegrator (std::string object_name, SAMRAI::tbox::Pointer< SAMRAI::tbox::Database > input_db, bool register_for_restart)
 
 ~HierarchyIntegrator ()
 
const std::stringgetName () const
 
virtual void advanceHierarchy (double dt)
 
double getMinimumTimeStepSize ()
 
double getMaximumTimeStepSize ()
 
void synchronizeHierarchyData (VariableContextType ctx_type)
 
void resetTimeDependentHierarchyData (double new_time)
 
void resetIntegratorToPreadvanceState ()
 
virtual void regridHierarchy ()
 
bool atRegridPoint () const
 
double getIntegratorTime () const
 
double getStartTime () const
 
double getEndTime () const
 
int getIntegratorStep () const
 
int getMaxIntegratorSteps () const
 
bool stepsRemaining () const
 
void updateWorkloadEstimates ()
 
SAMRAI::tbox::Pointer< SAMRAI::hier::PatchHierarchy< NDIM > > getPatchHierarchy () const
 
SAMRAI::tbox::Pointer< SAMRAI::mesh::GriddingAlgorithm< NDIM > > getGriddingAlgorithm () const
 
virtual void registerLoadBalancer (SAMRAI::tbox::Pointer< SAMRAI::mesh::LoadBalancer< NDIM > > load_balancer)
 
int getWorkloadDataIndex () const
 
void registerVisItDataWriter (SAMRAI::tbox::Pointer< SAMRAI::appu::VisItDataWriter< NDIM > > visit_writer)
 
SAMRAI::tbox::Pointer< SAMRAI::appu::VisItDataWriter< NDIM > > getVisItDataWriter () const
 
void setupPlotData ()
 
virtual int getCurrentCycleNumber () const
 
virtual double getCurrentTimeStepSize () const
 
void integrateHierarchy (double current_time, double new_time, int cycle_num=0)
 
void skipCycle (double current_time, double new_time, int cycle_num=0)
 
void registerPreprocessIntegrateHierarchyCallback (PreprocessIntegrateHierarchyCallbackFcnPtr callback, void *ctx=nullptr)
 
void registerIntegrateHierarchyCallback (IntegrateHierarchyCallbackFcnPtr callback, void *ctx=nullptr)
 
void registerPostprocessIntegrateHierarchyCallback (PostprocessIntegrateHierarchyCallbackFcnPtr callback, void *ctx=nullptr)
 
void registerApplyGradientDetectorCallback (ApplyGradientDetectorCallbackFcnPtr callback, void *ctx=nullptr)
 
void registerRegridHierarchyCallback (RegridHierarchyCallbackFcnPtr, void *ctx=nullptr)
 
void initializeCompositeHierarchyData (double init_data_time, bool initial_time)
 
void initializeLevelData (SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchHierarchy< NDIM > > hierarchy, int level_number, double init_data_time, bool can_be_refined, bool initial_time, SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchLevel< NDIM > > old_level=SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchLevel< NDIM > >(NULL), bool allocate_data=true) override
 
void resetHierarchyConfiguration (SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchHierarchy< NDIM > > hierarchy, int coarsest_level, int finest_level) override
 
void applyGradientDetector (SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchHierarchy< NDIM > > hierarchy, int level_number, double error_data_time, int tag_index, bool initial_time, bool uses_richardson_extrapolation_too) override
 
SAMRAI::tbox::Pointer< SAMRAI::hier::VariableContextgetContext (VariableContextType ctx_type) const
 
SAMRAI::tbox::Pointer< SAMRAI::hier::VariableContextgetCurrentContext () const
 
SAMRAI::tbox::Pointer< SAMRAI::hier::VariableContextgetNewContext () const
 
SAMRAI::tbox::Pointer< SAMRAI::hier::VariableContextgetScratchContext () const
 
SAMRAI::tbox::Pointer< SAMRAI::hier::VariableContextgetPlotContext () const
 
bool isAllocatedPatchData (int data_idx, int coarsest_ln=invalid_level_number, int finest_ln=invalid_level_number) const
 
void allocatePatchData (int data_idx, double data_time, int coarsest_ln=invalid_level_number, int finest_ln=invalid_level_number) const
 
void deallocatePatchData (int data_idx, int coarsest_ln=invalid_level_number, int finest_ln=invalid_level_number) const
 
SAMRAI::tbox::Pointer< HierarchyMathOpsgetHierarchyMathOps () const
 
void registerVariable (int &current_idx, int &new_idx, int &scratch_idx, SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > variable, const SAMRAI::hier::IntVector< NDIM > &scratch_ghosts=SAMRAI::hier::IntVector< NDIM >(0), const std::string &coarsen_name="NO_COARSEN", const std::string &refine_name="NO_REFINE", SAMRAI::tbox::Pointer< CartGridFunction > init_fcn=SAMRAI::tbox::Pointer< CartGridFunction >(NULL), const bool register_for_restart=true)
 
void registerVariable (int &idx, SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > variable, const SAMRAI::hier::IntVector< NDIM > &ghosts=SAMRAI::hier::IntVector< NDIM >(0), SAMRAI::tbox::Pointer< SAMRAI::hier::VariableContext > ctx=SAMRAI::tbox::Pointer< SAMRAI::hier::VariableContext >(NULL), const bool register_for_restart=true)
 
void putToDatabase (SAMRAI::tbox::Pointer< SAMRAI::tbox::Database > db) override
 
- Public Member Functions inherited from SAMRAI::mesh::StandardTagAndInitStrategy< NDIM >
virtual double getLevelDt (const tbox::Pointer< hier::BasePatchLevel< NDIM > > level, const double dt_time, const bool initial_time)
 
virtual double advanceLevel (const tbox::Pointer< hier::BasePatchLevel< NDIM > > level, const tbox::Pointer< hier::BasePatchHierarchy< NDIM > > hierarchy, const double current_time, const double new_time, const bool first_step, const bool last_step, const bool regrid_advance=false)
 
virtual void resetTimeDependentData (const tbox::Pointer< hier::BasePatchLevel< NDIM > > level, const double new_time, const bool can_be_refined)
 
virtual void resetDataToPreadvanceState (const tbox::Pointer< hier::BasePatchLevel< NDIM > > level)
 
virtual void applyRichardsonExtrapolation (const tbox::Pointer< hier::PatchLevel< NDIM > > level, const double error_data_time, const int tag_index, const double deltat, const int error_coarsen_ratio, const bool initial_time, const bool uses_gradient_detector_too)
 
virtual void coarsenDataForRichardsonExtrapolation (const tbox::Pointer< hier::PatchHierarchy< NDIM > > hierarchy, const int level_number, const tbox::Pointer< hier::PatchLevel< NDIM > > coarser_level, const double coarsen_data_time, const bool before_advance)
 

Protected Member Functions

void integrateHierarchySpecialized (double current_time, double new_time, int cycle_num=0) override
 
double getStableTimestep (SAMRAI::tbox::Pointer< SAMRAI::hier::Patch< NDIM > > patch) const override
 
void initializeCompositeHierarchyDataSpecialized (double init_data_time, bool initial_time) override
 
void initializeLevelDataSpecialized (SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchHierarchy< NDIM > > hierarchy, int level_number, double init_data_time, bool can_be_refined, bool initial_time, SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchLevel< NDIM > > old_level, bool allocate_data) override
 
void resetHierarchyConfigurationSpecialized (SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchHierarchy< NDIM > > hierarchy, int coarsest_level, int finest_level) override
 
void applyGradientDetectorSpecialized (SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchHierarchy< NDIM > > hierarchy, int level_number, double error_data_time, int tag_index, bool initial_time, bool uses_richardson_extrapolation_too) override
 
void setupPlotDataSpecialized () override
 
void regridProjection () override
 
- Protected Member Functions inherited from IBAMR::INSHierarchyIntegrator
 INSHierarchyIntegrator (std::string object_name, SAMRAI::tbox::Pointer< SAMRAI::tbox::Database > input_db, SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > U_var, SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > P_var, SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > F_var, SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > Q_var, bool register_for_restart)
 
 INSHierarchyIntegrator (std::string object_name, SAMRAI::tbox::Pointer< SAMRAI::tbox::Database > input_db, SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > U_var, std::string U_default_coarsen_type, std::string U_default_refine_type, SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > P_var, std::string P_default_coarsen_type, std::string P_default_refine_type, SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > F_var, std::string F_default_coarsen_type, std::string F_default_refine_type, SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > Q_var, std::string Q_default_coarsen_type, std::string Q_default_refine_type, bool register_for_restart)
 
virtual void updateCurrentCFLNumber (const int data_idx, const double dt)
 
double getMaximumTimeStepSizeSpecialized () override
 
double getStableTimestep (SAMRAI::tbox::Pointer< SAMRAI::hier::PatchLevel< NDIM > > level) const
 
void putToDatabaseSpecialized (SAMRAI::tbox::Pointer< SAMRAI::tbox::Database > db) override
 
- Protected Member Functions inherited from IBTK::HierarchyIntegrator
virtual void regridHierarchyBeginSpecialized ()
 
virtual void regridHierarchyEndSpecialized ()
 
virtual double getMinimumTimeStepSizeSpecialized ()
 
virtual void synchronizeHierarchyDataSpecialized (VariableContextType ctx_type)
 
virtual void resetTimeDependentHierarchyDataSpecialized (double new_time)
 
virtual void resetIntegratorToPreadvanceStateSpecialized ()
 
virtual bool atRegridPointSpecialized () const
 
virtual void addWorkloadEstimate (SAMRAI::tbox::Pointer< SAMRAI::hier::PatchHierarchy< NDIM > > hierarchy, const int workload_data_idx)
 
virtual void executePreprocessIntegrateHierarchyCallbackFcns (double current_time, double new_time, int num_cycles)
 
virtual void executeIntegrateHierarchyCallbackFcns (double current_time, double new_time, int cycle_num)
 
virtual void executePostprocessIntegrateHierarchyCallbackFcns (double current_time, double new_time, bool skip_synchronize_new_state_data, int num_cycles)
 
virtual void executeApplyGradientDetectorCallbackFcns (SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchHierarchy< NDIM > > hierarchy, int level_number, double error_data_time, int tag_index, bool initial_time, bool uses_richardson_extrapolation_too)
 
virtual void executeRegridHierarchyCallbackFcns (SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchHierarchy< NDIM > > hierarchy, double data_time, bool initial_time)
 
void registerGhostfillRefineAlgorithm (const std::string &name, SAMRAI::tbox::Pointer< SAMRAI::xfer::RefineAlgorithm< NDIM > > ghostfill_alg, std::unique_ptr< SAMRAI::xfer::RefinePatchStrategy< NDIM > > ghostfill_patch_strategy=nullptr)
 
void registerProlongRefineAlgorithm (const std::string &name, SAMRAI::tbox::Pointer< SAMRAI::xfer::RefineAlgorithm< NDIM > > prolong_alg, std::unique_ptr< SAMRAI::xfer::RefinePatchStrategy< NDIM > > prolong_patch_strategy=nullptr)
 
void registerCoarsenAlgorithm (const std::string &name, SAMRAI::tbox::Pointer< SAMRAI::xfer::CoarsenAlgorithm< NDIM > > coarsen_alg, std::unique_ptr< SAMRAI::xfer::CoarsenPatchStrategy< NDIM > > coarsen_patch_strategy=nullptr)
 
SAMRAI::tbox::Pointer< SAMRAI::xfer::RefineAlgorithm< NDIM > > getGhostfillRefineAlgorithm (const std::string &name) const
 
SAMRAI::tbox::Pointer< SAMRAI::xfer::RefineAlgorithm< NDIM > > getProlongRefineAlgorithm (const std::string &name) const
 
SAMRAI::tbox::Pointer< SAMRAI::xfer::CoarsenAlgorithm< NDIM > > getCoarsenAlgorithm (const std::string &name) const
 
const std::vector< SAMRAI::tbox::Pointer< SAMRAI::xfer::RefineSchedule< NDIM > > > & getGhostfillRefineSchedules (const std::string &name) const
 
const std::vector< SAMRAI::tbox::Pointer< SAMRAI::xfer::RefineSchedule< NDIM > > > & getProlongRefineSchedules (const std::string &name) const
 
const std::vector< SAMRAI::tbox::Pointer< SAMRAI::xfer::CoarsenSchedule< NDIM > > > & getCoarsenSchedules (const std::string &name) const
 
void registerChildHierarchyIntegrator (HierarchyIntegrator *child_integrator)
 
void registerParentHierarchyIntegrator (HierarchyIntegrator *parent_integrator)
 
SAMRAI::tbox::Pointer< HierarchyMathOpsbuildHierarchyMathOps (SAMRAI::tbox::Pointer< SAMRAI::hier::PatchHierarchy< NDIM > > hierarchy)
 
void setupTagBuffer (SAMRAI::tbox::Pointer< SAMRAI::mesh::GriddingAlgorithm< NDIM > > gridding_alg)
 
bool regriddingHierarchy () const
 
bool atRegridTimeStep () const
 

Additional Inherited Members

- Public Types inherited from IBTK::HierarchyIntegrator
using PreprocessIntegrateHierarchyCallbackFcnPtr = void(*)(double current_time, double new_time, int num_cycles, void *ctx)
 
using IntegrateHierarchyCallbackFcnPtr = void(*)(double current_time, double new_time, int cycle_num, void *ctx)
 
using PostprocessIntegrateHierarchyCallbackFcnPtr = void(*)(double current_time, double new_time, bool skip_synchronize_new_state_data, int num_cycles, void *ctx)
 
using ApplyGradientDetectorCallbackFcnPtr = void(*)(SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchHierarchy< NDIM > > hierarchy, int level_number, double error_data_time, int tag_index, bool initial_time, bool uses_richardson_extrapolation_too, void *ctx)
 
using RegridHierarchyCallbackFcnPtr = void(*)(SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchHierarchy< NDIM > > hierarchy, double data_time, bool initial_time, void *ctx)
 
- Protected Attributes inherited from IBAMR::INSHierarchyIntegrator
bool d_integrator_is_initialized = false
 
TimeSteppingType d_viscous_time_stepping_type = TRAPEZOIDAL_RULE
 
TimeSteppingType d_convective_time_stepping_type = ADAMS_BASHFORTH
 
TimeSteppingType d_init_convective_time_stepping_type = MIDPOINT_RULE
 
StokesSpecifications d_problem_coefs
 
std::vector< SAMRAI::tbox::Pointer< AdvDiffHierarchyIntegrator > > d_adv_diff_hier_integrators
 
SAMRAI::tbox::Pointer< SAMRAI::pdat::FaceVariable< NDIM, double > > d_U_adv_diff_var
 
double d_cfl_current = std::numeric_limits<double>::quiet_NaN()
 
double d_cfl_max = 1.0
 
bool d_using_vorticity_tagging = false
 
SAMRAI::tbox::Array< double > d_Omega_rel_thresh
 
SAMRAI::tbox::Array< double > d_Omega_abs_thresh
 
double d_Omega_max = 0.0
 
bool d_normalize_pressure = false
 
bool d_normalize_velocity = false
 
bool d_creeping_flow = false
 
double d_regrid_max_div_growth_factor = 1.1
 
double d_U_scale = 1.0
 
double d_P_scale = 1.0
 
double d_F_scale = 1.0
 
double d_Q_scale = 1.0
 
double d_Omega_scale = 1.0
 
double d_Div_U_scale = 1.0
 
double d_EE_scale = 1.0
 
bool d_output_U = true
 
bool d_output_P = true
 
bool d_output_F = false
 
bool d_output_Q = false
 
bool d_output_Omega = true
 
bool d_output_Div_U = true
 
bool d_output_EE = false
 
SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > d_U_var
 
std::string d_U_coarsen_type = "CONSERVATIVE_COARSEN"
 
std::string d_U_refine_type = "CONSERVATIVE_LINEAR_REFINE"
 
SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > d_P_var
 
std::string d_P_coarsen_type = "CONSERVATIVE_COARSEN"
 
std::string d_P_refine_type = "LINEAR_REFINE"
 
SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > d_F_var
 
std::string d_F_coarsen_type = "CONSERVATIVE_COARSEN"
 
std::string d_F_refine_type = "CONSERVATIVE_LINEAR_REFINE"
 
SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > d_Q_var
 
std::string d_Q_coarsen_type = "CONSERVATIVE_COARSEN"
 
std::string d_Q_refine_type = "CONSTANT_REFINE"
 
SAMRAI::tbox::Pointer< IBTK::CartGridFunctiond_U_init
 
SAMRAI::tbox::Pointer< IBTK::CartGridFunctiond_P_init
 
SAMRAI::solv::LocationIndexRobinBcCoefs< NDIM > d_default_bc_coefs
 
std::vector< SAMRAI::solv::RobinBcCoefStrategy< NDIM > * > d_bc_coefs
 
std::vector< SAMRAI::solv::RobinBcCoefStrategy< NDIM > * > d_U_bc_coefs
 
std::vector< SAMRAI::solv::RobinBcCoefStrategy< NDIM > * > d_U_star_bc_coefs
 
TractionBcType d_traction_bc_type = TRACTION
 
SAMRAI::solv::RobinBcCoefStrategy< NDIM > * d_P_bc_coef
 
std::unique_ptr< SAMRAI::solv::RobinBcCoefStrategy< NDIM > > d_Phi_bc_coef
 
SAMRAI::tbox::Pointer< IBTK::CartGridFunctiond_F_fcn
 
SAMRAI::tbox::Pointer< IBTK::CartGridFunctiond_Q_fcn
 
SAMRAI::tbox::Pointer< IBTK::HierarchyGhostCellInterpolationd_U_bdry_bc_fill_op
 
SAMRAI::tbox::Pointer< IBTK::HierarchyGhostCellInterpolationd_P_bdry_bc_fill_op
 
SAMRAI::tbox::Pointer< IBTK::HierarchyGhostCellInterpolationd_Q_bdry_bc_fill_op
 
SAMRAI::tbox::Pointer< IBTK::HierarchyGhostCellInterpolationd_no_fill_op
 
bool d_use_div_sink_drag_term = false
 
int d_coarsest_reset_ln
 
int d_finest_reset_ln
 
std::string d_convective_op_type = "DEFAULT"
 
ConvectiveDifferencingType d_convective_difference_form = ADVECTIVE
 
SAMRAI::tbox::Pointer< SAMRAI::tbox::Databased_convective_op_input_db
 
SAMRAI::tbox::Pointer< ConvectiveOperatord_convective_op
 
bool d_convective_op_needs_init
 
std::string d_velocity_solver_type
 
std::string d_velocity_precond_type
 
std::string d_velocity_sub_precond_type
 
SAMRAI::tbox::Pointer< SAMRAI::tbox::Databased_velocity_solver_db
 
SAMRAI::tbox::Pointer< SAMRAI::tbox::Databased_velocity_precond_db
 
SAMRAI::tbox::Pointer< SAMRAI::tbox::Databased_velocity_sub_precond_db
 
SAMRAI::tbox::Pointer< IBTK::PoissonSolverd_velocity_solver
 
bool d_velocity_solver_needs_init
 
std::string d_pressure_solver_type
 
std::string d_pressure_precond_type
 
std::string d_pressure_sub_precond_type
 
SAMRAI::tbox::Pointer< SAMRAI::tbox::Databased_pressure_solver_db
 
SAMRAI::tbox::Pointer< SAMRAI::tbox::Databased_pressure_precond_db
 
SAMRAI::tbox::Pointer< SAMRAI::tbox::Databased_pressure_sub_precond_db
 
SAMRAI::tbox::Pointer< IBTK::PoissonSolverd_pressure_solver
 
bool d_pressure_solver_needs_init
 
std::string d_regrid_projection_solver_type
 
std::string d_regrid_projection_precond_type
 
std::string d_regrid_projection_sub_precond_type
 
SAMRAI::tbox::Pointer< SAMRAI::tbox::Databased_regrid_projection_solver_db
 
SAMRAI::tbox::Pointer< SAMRAI::tbox::Databased_regrid_projection_precond_db
 
SAMRAI::tbox::Pointer< SAMRAI::tbox::Databased_regrid_projection_sub_precond_db
 
- Protected Attributes inherited from IBTK::HierarchyIntegrator
std::string d_object_name
 
bool d_registered_for_restart = false
 
SAMRAI::tbox::Pointer< SAMRAI::hier::PatchHierarchy< NDIM > > d_hierarchy
 
SAMRAI::tbox::Pointer< SAMRAI::mesh::GriddingAlgorithm< NDIM > > d_gridding_alg
 
SAMRAI::tbox::Pointer< SAMRAI::mesh::LoadBalancer< NDIM > > d_load_balancer
 
SAMRAI::tbox::Pointer< SAMRAI::pdat::CellVariable< NDIM, double > > d_workload_var
 
int d_workload_idx = IBTK::invalid_index
 
bool d_hierarchy_is_initialized = false
 
bool d_may_need_to_reset_hierarchy_configuration = false
 
HierarchyIntegratord_parent_integrator = nullptr
 
std::set< HierarchyIntegrator * > d_child_integrators
 
SAMRAI::tbox::Pointer< SAMRAI::appu::VisItDataWriter< NDIM > > d_visit_writer
 
double d_integrator_time = std::numeric_limits<double>::quiet_NaN()
 
double d_start_time = 0.0
 
double d_end_time = std::numeric_limits<double>::max()
 
double d_dt_init = std::numeric_limits<double>::max()
 
double d_dt_min = 0.0
 
double d_dt_max = std::numeric_limits<double>::max()
 
double d_dt_growth_factor = 2.0
 
int d_integrator_step = 0
 
int d_max_integrator_steps = std::numeric_limits<int>::max()
 
std::deque< double > d_dt_previous
 
int d_num_cycles = 1
 
int d_current_num_cycles = -1
 
int d_current_cycle_num = -1
 
double d_current_dt = std::numeric_limits<double>::quiet_NaN()
 
int d_regrid_interval = 1
 
RegridMode d_regrid_mode = STANDARD
 
bool d_enable_logging = false
 
bool d_enable_logging_solver_iterations = false
 
std::string d_bdry_extrap_type = "LINEAR"
 
SAMRAI::tbox::Array< int > d_tag_buffer = { 0 }
 
SAMRAI::tbox::Pointer< HierarchyMathOpsd_hier_math_ops
 
bool d_manage_hier_math_ops = true
 
std::list< SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > > d_state_variables
 
std::list< SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > > d_scratch_variables
 
std::list< SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > > d_copy_scratch_to_current_fast
 
std::list< SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > > d_copy_scratch_to_current_slow
 
SAMRAI::hier::ComponentSelector d_current_data
 
SAMRAI::hier::ComponentSelector d_new_data
 
SAMRAI::hier::ComponentSelector d_scratch_data
 
SAMRAI::hier::ComponentSelector d_plot_data
 
std::map< SAMRAI::hier::Variable< NDIM > *, SAMRAI::tbox::Pointer< CartGridFunction > > d_state_var_init_fcns
 
SAMRAI::tbox::Pointer< SAMRAI::hier::VariableContextd_current_context
 
SAMRAI::tbox::Pointer< SAMRAI::hier::VariableContextd_new_context
 
SAMRAI::tbox::Pointer< SAMRAI::hier::VariableContextd_scratch_context
 
SAMRAI::tbox::Pointer< SAMRAI::hier::VariableContextd_plot_context
 
SAMRAI::hier::ComponentSelector d_fill_after_regrid_bc_idxs
 
SAMRAI::xfer::RefineAlgorithm< NDIM > d_fill_after_regrid_prolong_alg
 
std::unique_ptr< SAMRAI::xfer::RefinePatchStrategy< NDIM > > d_fill_after_regrid_phys_bdry_bc_op
 
std::vector< PreprocessIntegrateHierarchyCallbackFcnPtrd_preprocess_integrate_hierarchy_callbacks
 
std::vector< void * > d_preprocess_integrate_hierarchy_callback_ctxs
 
std::vector< IntegrateHierarchyCallbackFcnPtrd_integrate_hierarchy_callbacks
 
std::vector< void * > d_integrate_hierarchy_callback_ctxs
 
std::vector< PostprocessIntegrateHierarchyCallbackFcnPtrd_postprocess_integrate_hierarchy_callbacks
 
std::vector< void * > d_postprocess_integrate_hierarchy_callback_ctxs
 
std::vector< ApplyGradientDetectorCallbackFcnPtrd_apply_gradient_detector_callbacks
 
std::vector< void * > d_apply_gradient_detector_callback_ctxs
 
std::vector< RegridHierarchyCallbackFcnPtrd_regrid_hierarchy_callbacks
 
std::vector< void * > d_regrid_hierarchy_callback_ctxs
 
- Static Protected Attributes inherited from IBTK::HierarchyIntegrator
static const std::string SYNCH_CURRENT_DATA_ALG = "SYNCH_CURRENT_DATA"
 
static const std::string SYNCH_NEW_DATA_ALG = "SYNCH_NEW_DATA"
 

Detailed Description

Class INSCollocatedHierarchyIntegrator provides a collocated projection method-based solver for the incompressible Navier-Stokes equations on an AMR grid hierarchy.

Constructor & Destructor Documentation

◆ INSCollocatedHierarchyIntegrator()

IBAMR::INSCollocatedHierarchyIntegrator::INSCollocatedHierarchyIntegrator ( std::string  object_name,
SAMRAI::tbox::Pointer< SAMRAI::tbox::Database input_db,
bool  register_for_restart = true 
)

The constructor for class INSCollocatedHierarchyIntegrator sets some default values, reads in configuration information from input and restart databases, and registers the integrator object with the restart manager when requested.

◆ ~INSCollocatedHierarchyIntegrator()

IBAMR::INSCollocatedHierarchyIntegrator::~INSCollocatedHierarchyIntegrator ( )

The destructor for class INSCollocatedHierarchyIntegrator unregisters the integrator object with the restart manager when the object is so registered.

Member Function Documentation

◆ applyGradientDetectorSpecialized()

void IBAMR::INSCollocatedHierarchyIntegrator::applyGradientDetectorSpecialized ( SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchHierarchy< NDIM > >  hierarchy,
int  level_number,
double  error_data_time,
int  tag_index,
bool  initial_time,
bool  uses_richardson_extrapolation_too 
)
overrideprotectedvirtual

Set integer tags to "one" in cells where refinement of the given level should occur according to the magnitude of the fluid vorticity.

Reimplemented from IBTK::HierarchyIntegrator.

◆ getConvectiveOperator()

Pointer< ConvectiveOperator > IBAMR::INSCollocatedHierarchyIntegrator::getConvectiveOperator ( )
overridevirtual

Get the convective operator being used by this solver class.

If the time integrator is configured to solve the time-dependent (creeping) Stokes equations, then the returned pointer will be NULL.

If the convective operator has not already been constructed, and if the time integrator is not configured to solve the time-dependent (creeping) Stokes equations, then this function will initialize the default type of convective operator, which may be set in the class input database.

Implements IBAMR::INSHierarchyIntegrator.

◆ getPressureSubdomainSolver()

Pointer< PoissonSolver > IBAMR::INSCollocatedHierarchyIntegrator::getPressureSubdomainSolver ( )
overridevirtual

Get the subdomain solver for the pressure subsystem. Such solvers can be useful in constructing block preconditioners.

Implements IBAMR::INSHierarchyIntegrator.

◆ getStableTimestep()

double IBAMR::INSCollocatedHierarchyIntegrator::getStableTimestep ( SAMRAI::tbox::Pointer< SAMRAI::hier::Patch< NDIM > >  patch) const
overrideprotectedvirtual

Determine the largest stable timestep on an individual patch.

Implements IBAMR::INSHierarchyIntegrator.

◆ getVelocitySubdomainSolver()

Pointer< PoissonSolver > IBAMR::INSCollocatedHierarchyIntegrator::getVelocitySubdomainSolver ( )
overridevirtual

Get the subdomain solver for the velocity subsystem. Such solvers can be useful in constructing block preconditioners.

Implements IBAMR::INSHierarchyIntegrator.

◆ initializeCompositeHierarchyDataSpecialized()

void IBAMR::INSCollocatedHierarchyIntegrator::initializeCompositeHierarchyDataSpecialized ( double  init_data_time,
bool  initial_time 
)
overrideprotectedvirtual

Perform data initialization after the entire hierarchy has been constructed.

Reimplemented from IBTK::HierarchyIntegrator.

◆ initializeHierarchyIntegrator()

void IBAMR::INSCollocatedHierarchyIntegrator::initializeHierarchyIntegrator ( SAMRAI::tbox::Pointer< SAMRAI::hier::PatchHierarchy< NDIM > >  hierarchy,
SAMRAI::tbox::Pointer< SAMRAI::mesh::GriddingAlgorithm< NDIM > >  gridding_alg 
)
overridevirtual

Initialize the variables, basic communications algorithms, solvers, and other data structures used by this time integrator object.

This method is called automatically by initializePatchHierarchy() prior to the construction of the patch hierarchy. It is also possible for users to make an explicit call to initializeHierarchyIntegrator() prior to calling initializePatchHierarchy().

Implements IBTK::HierarchyIntegrator.

◆ initializeLevelDataSpecialized()

void IBAMR::INSCollocatedHierarchyIntegrator::initializeLevelDataSpecialized ( SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchHierarchy< NDIM > >  hierarchy,
int  level_number,
double  init_data_time,
bool  can_be_refined,
bool  initial_time,
SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchLevel< NDIM > >  old_level,
bool  allocate_data 
)
overrideprotectedvirtual

Initialize data on a new level after it is inserted into an AMR patch hierarchy by the gridding algorithm.

Reimplemented from IBTK::HierarchyIntegrator.

◆ initializePatchHierarchy()

void IBAMR::INSCollocatedHierarchyIntegrator::initializePatchHierarchy ( SAMRAI::tbox::Pointer< SAMRAI::hier::PatchHierarchy< NDIM > >  hierarchy,
SAMRAI::tbox::Pointer< SAMRAI::mesh::GriddingAlgorithm< NDIM > >  gridding_alg 
)
overridevirtual

Initialize the AMR patch hierarchy and data defined on the hierarchy at the start of a computation. If the computation is begun from a restart file, the patch hierarchy and patch data are read from the hierarchy database. Otherwise, the patch hierarchy and patch data are initialized by the gridding algorithm associated with the integrator object.

The implementation of this function assumes that the hierarchy exists upon entry to the function, but that it contains no patch levels. On return from this function, the state of the integrator object will be such that it is possible to step through time via the advanceHierarchy() function.

Reimplemented from IBTK::HierarchyIntegrator.

◆ integrateHierarchySpecialized()

void IBAMR::INSCollocatedHierarchyIntegrator::integrateHierarchySpecialized ( double  current_time,
double  new_time,
int  cycle_num = 0 
)
overrideprotectedvirtual

Synchronously advance each level in the hierarchy over the given time increment.

Implements IBTK::HierarchyIntegrator.

◆ postprocessIntegrateHierarchy()

void IBAMR::INSCollocatedHierarchyIntegrator::postprocessIntegrateHierarchy ( double  current_time,
double  new_time,
bool  skip_synchronize_new_state_data,
int  num_cycles = 1 
)
overridevirtual

Clean up data following call(s) to integrateHierarchy().

Reimplemented from IBAMR::INSHierarchyIntegrator.

◆ preprocessIntegrateHierarchy()

void IBAMR::INSCollocatedHierarchyIntegrator::preprocessIntegrateHierarchy ( double  current_time,
double  new_time,
int  num_cycles = 1 
)
overridevirtual

Prepare to advance the data from current_time to new_time.

Reimplemented from IBTK::HierarchyIntegrator.

◆ regridProjection()

void IBAMR::INSCollocatedHierarchyIntegrator::regridProjection ( )
overrideprotectedvirtual

Project the velocity field following a regridding operation.

Implements IBAMR::INSHierarchyIntegrator.

◆ resetHierarchyConfigurationSpecialized()

void IBAMR::INSCollocatedHierarchyIntegrator::resetHierarchyConfigurationSpecialized ( SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchHierarchy< NDIM > >  hierarchy,
int  coarsest_level,
int  finest_level 
)
overrideprotectedvirtual

Reset cached hierarchy dependent data.

Reimplemented from IBTK::HierarchyIntegrator.

◆ setupPlotDataSpecialized()

void IBAMR::INSCollocatedHierarchyIntegrator::setupPlotDataSpecialized ( )
overrideprotectedvirtual

Prepare variables for plotting.

Reimplemented from IBTK::HierarchyIntegrator.


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