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

Class INSIntermediateVelocityBcCoef is a concrete SAMRAI::solv::RobinBcCoefStrategy that is used to specify boundary conditions for the intermediate velocity solve embedded in a projection method or in a block preconditioner for the incompressible Navier-Stokes equations. More...

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

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

Public Member Functions

 INSIntermediateVelocityBcCoef (int comp_idx, const std::vector< SAMRAI::solv::RobinBcCoefStrategy< NDIM > * > &bc_coefs, bool homogeneous_bc=false)
 Constructor. More...
 
 ~INSIntermediateVelocityBcCoef ()=default
 Destructor.
 
void setPhysicalBcCoefs (const std::vector< SAMRAI::solv::RobinBcCoefStrategy< NDIM > * > &bc_coefs)
 Set the SAMRAI::solv::RobinBcCoefStrategy objects used to specify physical boundary conditions. More...
 
void setSolutionTime (double solution_time)
 Set the time at which the solution is to be evaluated.
 
void setTimeInterval (double current_time, double new_time)
 Set the current time interval.
 
Extended SAMRAI::solv::RobinBcCoefStrategy interface.
void setTargetPatchDataIndex (int target_idx) override
 Set the target data index.
 
void clearTargetPatchDataIndex () override
 Clear the target data index.
 
void setHomogeneousBc (bool homogeneous_bc) override
 Set whether the class is filling homogeneous or inhomogeneous boundary conditions.
 
- Public Member Functions inherited from IBTK::ExtendedRobinBcCoefStrategy
 ExtendedRobinBcCoefStrategy ()=default
 Empty default constructor.
 
virtual ~ExtendedRobinBcCoefStrategy ()=default
 Empty virtual destructor.
 

Implementation of SAMRAI::solv::RobinBcCoefStrategy interface.

void setBcCoefs (SAMRAI::tbox::Pointer< SAMRAI::pdat::ArrayData< NDIM, double > > &acoef_data, SAMRAI::tbox::Pointer< SAMRAI::pdat::ArrayData< NDIM, double > > &bcoef_data, SAMRAI::tbox::Pointer< SAMRAI::pdat::ArrayData< NDIM, double > > &gcoef_data, const SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > &variable, const SAMRAI::hier::Patch< NDIM > &patch, const SAMRAI::hier::BoundaryBox< NDIM > &bdry_box, double fill_time=0.0) const override
 Function to fill arrays of Robin boundary condition coefficients at a patch boundary. More...
 
SAMRAI::hier::IntVector< NDIM > numberOfExtensionsFillable () const override
 

Additional Inherited Members

- Protected Attributes inherited from IBTK::ExtendedRobinBcCoefStrategy
int d_target_data_idx = IBTK::invalid_index
 
bool d_homogeneous_bc = false
 

Detailed Description

Class INSIntermediateVelocityBcCoef is a concrete SAMRAI::solv::RobinBcCoefStrategy that is used to specify boundary conditions for the intermediate velocity solve embedded in a projection method or in a block preconditioner for the incompressible Navier-Stokes equations.

This class interprets pure Dirichlet boundary conditions as prescribed velocity boundary conditions, whereas pure Neumann boundary conditions are interpreted as prescribed traction (stress) boundary conditions. These are translated into Dirichlet and Neumann boundary conditions, respectively, for the intermediate velocity.

Constructor & Destructor Documentation

◆ INSIntermediateVelocityBcCoef()

IBAMR::INSIntermediateVelocityBcCoef::INSIntermediateVelocityBcCoef ( int  comp_idx,
const std::vector< SAMRAI::solv::RobinBcCoefStrategy< NDIM > * > &  bc_coefs,
bool  homogeneous_bc = false 
)

Constructor.

Parameters
comp_idxComponent of the velocity which this boundary condition specification is to operate on
bc_coefsIBTK::Vector of boundary condition specification objects
homogeneous_bcWhether to employ homogeneous (as opposed to inhomogeneous) boundary conditions
Note
Precisely NDIM boundary condition objects must be provided to the class constructor.

Member Function Documentation

◆ setBcCoefs()

void IBAMR::INSIntermediateVelocityBcCoef::setBcCoefs ( SAMRAI::tbox::Pointer< SAMRAI::pdat::ArrayData< NDIM, double > > &  acoef_data,
SAMRAI::tbox::Pointer< SAMRAI::pdat::ArrayData< NDIM, double > > &  bcoef_data,
SAMRAI::tbox::Pointer< SAMRAI::pdat::ArrayData< NDIM, double > > &  gcoef_data,
const SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > &  variable,
const SAMRAI::hier::Patch< NDIM > &  patch,
const SAMRAI::hier::BoundaryBox< NDIM > &  bdry_box,
double  fill_time = 0.0 
) const
overridevirtual

Function to fill arrays of Robin boundary condition coefficients at a patch boundary.

Note
In the original SAMRAI::solv::RobinBcCoefStrategy interface, it was assumed that $ b = (1-a) $. In the new interface, $a$ and $b$ are independent.
See also
SAMRAI::solv::RobinBcCoefStrategy::setBcCoefs()
Parameters
acoef_dataBoundary coefficient data. The array will have been defined to include index range for corresponding to the boundary box bdry_box and appropriate for the alignment of the given variable. If this is a null pointer, then the calling function is not interested in a, and you can disregard it.
bcoef_dataBoundary coefficient data. This array is exactly like acoef_data, except that it is to be filled with the b coefficient.
gcoef_dataBoundary coefficient data. This array is exactly like acoef_data, except that it is to be filled with the g coefficient.
variableVariable to set the coefficients for. If implemented for multiple variables, this parameter can be used to determine which variable's coefficients are being sought.
patchPatch requiring bc coefficients.
bdry_boxBoundary box showing where on the boundary the coefficient data is needed.
fill_timeSolution time corresponding to filling, for use when coefficients are time-dependent.

Implements SAMRAI::solv::RobinBcCoefStrategy< NDIM >.

◆ setPhysicalBcCoefs()

void IBAMR::INSIntermediateVelocityBcCoef::setPhysicalBcCoefs ( const std::vector< SAMRAI::solv::RobinBcCoefStrategy< NDIM > * > &  bc_coefs)

Set the SAMRAI::solv::RobinBcCoefStrategy objects used to specify physical boundary conditions.

Parameters
bc_coefsIBTK::Vector of boundary condition specification objects

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