chombo-discharge
Loading...
Searching...
No Matches
MFHelmholtzJumpBCFactory Class Reference

Factory class for making jump boundary condition objects in a multifluid MFHelmholtzOp context. More...

#include <CD_MFHelmholtzJumpBCFactory.H>

Inheritance diagram for MFHelmholtzJumpBCFactory:

Public Types

using BcoefPtr = RefCountedPtr<LevelData<MFBaseIVFAB>>
 Alias to cut down on typing.
using AmrMask = RefCountedPtr<LevelData<BaseFab<bool>>>
 Alias to cut down on typing.

Public Member Functions

 MFHelmholtzJumpBCFactory ()
 Weak constructor.
virtual ~MFHelmholtzJumpBCFactory ()
 Default constructor.
virtual RefCountedPtr< MFHelmholtzJumpBC > create (const Location::Cell a_dataLocation, const MFLevelGrid &a_mflg, const BcoefPtr &a_Bcoef, const AmrMask &a_validCells, const Real a_dx, const int a_order, const int a_weight, const int a_radius, const int a_ghostCF, const IntVect a_ghostPhi)
 Factory method for creating MFHelmholtzJumpBC objects.
virtual void setDomainDropOrder (const int a_domainSize)
 Drop BC order if domain size is equal or below this.
virtual void setCoarseGridDropOrder (const bool a_dropOrder)
 Drop to a first-order approximation if the cut-cell is a coarsened cell.

Protected Attributes

int m_domainDropOrder
 Special flag for dropping stencil order when domains become coarser than this.
bool m_dropOrder
 Special flag for signalling MFHelmholtzJumpBC that it should drop the stencil order to 1 if the cut-cell is a coarsened cell.

Detailed Description

Factory class for making jump boundary condition objects in a multifluid MFHelmholtzOp context.

Member Function Documentation

◆ create()

RefCountedPtr< MFHelmholtzJumpBC > MFHelmholtzJumpBCFactory::create ( const Location::Cell a_dataLocation,
const MFLevelGrid & a_mflg,
const BcoefPtr & a_Bcoef,
const AmrMask & a_validCells,
const Real a_dx,
const int a_order,
const int a_weight,
const int a_radius,
const int a_ghostCF,
const IntVect a_ghostPhi )
virtual

Factory method for creating MFHelmholtzJumpBC objects.

Parameters
[in]a_dataLocationData centering
[in]a_mflgGrids
[in]a_BcoefHelmholtz B-coefficient
[in]a_validCellsValid grid cells (might be null pointer)
[in]a_dxGrid resolution
[in]a_orderStencil approximation order
[in]a_weightWeighting factor for least squares
[in]a_radiusStencil radius
[in]a_ghostCFNumber of grid cells that were filled across the CF.
[in]a_ghostPhiNumber of ghost cells in phi
Returns
Return value

Reimplemented in MFHelmholtzSaturationChargeJumpBCFactory.

◆ setCoarseGridDropOrder()

void MFHelmholtzJumpBCFactory::setCoarseGridDropOrder ( const bool a_dropOrder)
virtual

Drop to a first-order approximation if the cut-cell is a coarsened cell.

Parameters
[in]a_dropOrderDescription

◆ setDomainDropOrder()

void MFHelmholtzJumpBCFactory::setDomainDropOrder ( const int a_domainSize)
virtual

Drop BC order if domain size is equal or below this.

Parameters
[in]a_domainSizeDescription

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