IBAMR  IBAMR version 0.20.
Classes | Functions
IBAMR::VCINSUtilities Namespace Reference

The vc_ins_utilities class can be utilized to set fluid properties such as density and viscosity for both two-phase and three-phase flows throughout the entire domain. Additionally, this class provides implementations for gravity force calculations in two-phase and three-phase flows. More...

Classes

class  SetFluidProperties
 Class SetFluidProperties is a utility class which sets the fluid and solid Eulerian density based on the current level set information. More...
 
class  GravityForcing
 The GravityForcing class provides an implementation of gravity force. This class can be utilized to apply the gravitational force \( \rho g \) using the density field, which includes all three phases: liquid, gas, and solid; or using the flow density field, which includes only liquid and gas phases and excludes the solid phase. More...
 

Functions

void callSetDensityCallbackFunction (int rho_idx, SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM >> rho_var, SAMRAI::tbox::Pointer< IBTK::HierarchyMathOps > hier_math_ops, const int cycle_num, const double time, const double current_time, const double new_time, void *ctx)
 
void callSetViscosityCallbackFunction (int mu_idx, SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM >> mu_var, SAMRAI::tbox::Pointer< IBTK::HierarchyMathOps > hier_math_ops, const int cycle_num, const double time, const double current_time, const double new_time, void *ctx)
 

Detailed Description

Note
Various options are available for computing the side-centered density within this class.

Function Documentation

◆ callSetDensityCallbackFunction()

void IBAMR::VCINSUtilities::callSetDensityCallbackFunction ( int  rho_idx,
SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM >>  rho_var,
SAMRAI::tbox::Pointer< IBTK::HierarchyMathOps hier_math_ops,
const int  cycle_num,
const double  time,
const double  current_time,
const double  new_time,
void *  ctx 
)

Pre processing call back function to be hooked into IBAMR::AdvDiffHierarchyIntegrator class.

Parameters
rho_idxa patch data index for the current density variable maintained by the integrator.
ctxis the pointer to SetFluidProperties class object.

◆ callSetViscosityCallbackFunction()

void IBAMR::VCINSUtilities::callSetViscosityCallbackFunction ( int  mu_idx,
SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM >>  mu_var,
SAMRAI::tbox::Pointer< IBTK::HierarchyMathOps hier_math_ops,
const int  cycle_num,
const double  time,
const double  current_time,
const double  new_time,
void *  ctx 
)

Pre processing call back function to be hooked into IBAMR::AdvDiffHierarchyIntegrator class.

Parameters
rho_idxa patch data index for the current density variable maintained by the integrator.
ctxis the pointer to SetFluidProperties class object.