releasedExamples/AMRINS/BCutil/PhysBCUtil.cpp
PhysIBC*
PhysBCUtil::advectionVelIBC() const
{
  VelIBC* newIBCPtr = new VelIBC;
  // default to solid wall BC's everywhere
  // (i.e. set normal velocities to 0)
  // if something different (like inflow) is desired, do this in the
  // derived BC server class.
  for (int idir=0; idir<SpaceDim; idir++)
    {
      SideIterator sit;
      for (sit.reset(); sit.ok(); ++sit)
        {
          Side::LoHiSide side = sit();
          newIBCPtr->setNormalWallVel(0.0, idir, side);
        }
    }

  return newIBCPtr;
}
// ---------------------------------------------------------------
/// this is a BC object used in the PatchGodunov stuff
this is a BC object used in the PatchGodunov stuff
this is a BC object used in the PatchGodunov stuff
PhysIBC*
PhysBCUtil::advectionVelIBC() const
{
  VelIBC* newIBCPtr = new VelIBC;
  for (int idir=0; idir<SpaceDim; idir++)
    {
      SideIterator sit;
      for (sit.reset(); sit.ok(); ++sit)
        {
          Side::LoHiSide side = sit();
          newIBCPtr->setNormalWallVel(0.0, idir, side);
        }
    }
  return newIBCPtr;
}
PhysIBC * PhysBCUtil :: advectionVelIBC ( ) const { VelIBC * newIBCPtr = new VelIBC ; for ( int idir = 0 ; idir < SpaceDim ; idir ++ ) { SideIterator sit ; for ( sit . reset ( ) ; sit . ok ( ) ; ++ sit ) { Side :: LoHiSide side = sit ( ) ; newIBCPtr -> setNormalWallVel ( 0.0 , idir , side ) ; } } return newIBCPtr ; }
this is a BC object used in the PatchGodunov stuff
this is a BC object used in the PatchGodunov stuff
// default to solid wall BC's everywhere // (i.e. set normal velocities to 0) // if something different (like inflow) is desired, do this in the // derived BC server class.