chombo-discharge
Public Member Functions | Protected Attributes | List of all members
MFHelmholtzDirichletEBBCFactory Class Reference

Class for making Dirichlet boundary conditions on the EB in a multifluid context. More...

#include <CD_MFHelmholtzDirichletEBBCFactory.H>

Inheritance diagram for MFHelmholtzDirichletEBBCFactory:
Inheritance graph
[legend]
Collaboration diagram for MFHelmholtzDirichletEBBCFactory:
Collaboration graph
[legend]

Public Member Functions

 MFHelmholtzDirichletEBBCFactory ()=delete
 Weak constructor. Must subsequently set order, weight, and value.
 
 MFHelmholtzDirichletEBBCFactory (const int a_order, const int a_weight, const Real a_value)
 Full constructor which sets order and value on EB. More...
 
 MFHelmholtzDirichletEBBCFactory (const int a_order, const int a_weight, const std::function< Real(const RealVect &a_pos)> &a_value)
 Full constructor which sets order and spatially varying value on EBs. More...
 
 ~MFHelmholtzDirichletEBBCFactory ()
 Default constructor.
 
virtual void setValue (const Real a_value)
 Set the value on the EB. More...
 
virtual void setValue (const std::function< Real(const RealVect &a_pos)> &a_value)
 Set the spatially varying value on the EB. More...
 
virtual void setDomainDropOrder (const int a_domainSize)
 Drop BC order if domain size is equal or below this.
 
RefCountedPtr< EBHelmholtzEBBCcreate (const int a_iphase, const RefCountedPtr< MFHelmholtzJumpBC > &a_jumpBC) const override
 Factory method. More...
 
- Public Member Functions inherited from MFHelmholtzEBBCFactory
 MFHelmholtzEBBCFactory ()
 Weak constructor. Must subsequently set order, weight, and value.
 
virtual ~MFHelmholtzEBBCFactory ()
 Default constructor.
 

Protected Attributes

bool m_useConstant
 Use constant for BC.
 
bool m_useFunction
 Use function for BC value.
 
Real m_constantValue
 Value on EB.
 
int m_order
 Stencil order.
 
int m_weight
 Stencil weight (for weighted least squares)
 
int m_domainDropOrder
 Special flag for dropping stencil order when domains become coarser than this.
 
std::function< Real(const RealVect &a_pos)> m_functionValue
 Value on the EB.
 

Detailed Description

Class for making Dirichlet boundary conditions on the EB in a multifluid context.

Constructor & Destructor Documentation

◆ MFHelmholtzDirichletEBBCFactory() [1/2]

MFHelmholtzDirichletEBBCFactory::MFHelmholtzDirichletEBBCFactory ( const int  a_order,
const int  a_weight,
const Real  a_value 
)

Full constructor which sets order and value on EB.

Parameters
[in]a_orderApproximation order
[in]a_weightWeighting factor for stencils
[in]a_valueConstant value on EB
Note
The order is also the attempted radius of the stencil.

◆ MFHelmholtzDirichletEBBCFactory() [2/2]

MFHelmholtzDirichletEBBCFactory::MFHelmholtzDirichletEBBCFactory ( const int  a_order,
const int  a_weight,
const std::function< Real(const RealVect &a_pos)> &  a_value 
)

Full constructor which sets order and spatially varying value on EBs.

Parameters
[in]a_orderApproximation order
[in]a_valueSpatially varying value on EBs

Member Function Documentation

◆ create()

RefCountedPtr< EBHelmholtzEBBC > MFHelmholtzDirichletEBBCFactory::create ( const int  a_iphase,
const RefCountedPtr< MFHelmholtzJumpBC > &  a_jumpBC 
) const
overridevirtual

Factory method.

Parameters
[in]a_jumpBCJump bc object.

Implements MFHelmholtzEBBCFactory.

◆ setValue() [1/2]

void MFHelmholtzDirichletEBBCFactory::setValue ( const Real  a_value)
virtual

Set the value on the EB.

Parameters
[in]a_valueConstant value on EB

◆ setValue() [2/2]

void MFHelmholtzDirichletEBBCFactory::setValue ( const std::function< Real(const RealVect &a_pos)> &  a_value)
virtual

Set the spatially varying value on the EB.

Parameters
[in]a_valueSpatially dependent value on EB

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