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

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

#include <CD_MFHelmholtzNeumannEBBCFactory.H>

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

Public Member Functions

 MFHelmholtzNeumannEBBCFactory ()
 Weak constructor. Must subsequently set order, weight, and value.
 
 MFHelmholtzNeumannEBBCFactory (const Real a_value)
 Full constructor which sets order and value on EB. More...
 
 MFHelmholtzNeumannEBBCFactory (const std::function< Real(const RealVect &a_pos)> &a_value)
 Full constructor which sets order and spatially varying value on EBs. More...
 
 ~MFHelmholtzNeumannEBBCFactory ()
 Default constructor.
 
void setDphiDn (const Real a_DphiDn)
 Set value of dphi/dn on the EB. More...
 
void setDphiDn (const std::function< Real(const RealVect &a_pos)> &a_DphiDn)
 Set spatially dependent value of dphi/dn on the EB. More...
 
void setBxDphiDn (const Real a_BxDphiDn)
 Set the value of B*dphi/dn on the EB. More...
 
void setBxDphiDn (const std::function< Real(const RealVect &a_pos)> &a_BxDphiDn)
 Set the spatially dependent value of B*dphi/dn on the EB. More...
 
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_multByBco
 Multiply by b-coefficient or not.
 
bool m_useConstant
 Use constant for BC.
 
bool m_useFunction
 Use function for BC value.
 
Real m_constantDphiDn
 Value on EB.
 
std::function< Real(const RealVect &a_pos)> m_functionDphiDn
 Value on the EB.
 

Detailed Description

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

Note
This class reuses EBHelmholtzNeumannEBBCFactory, but adjusts these on a subset of cells (the "matching" cells).

Constructor & Destructor Documentation

◆ MFHelmholtzNeumannEBBCFactory() [1/2]

MFHelmholtzNeumannEBBCFactory::MFHelmholtzNeumannEBBCFactory ( const Real  a_value)

Full constructor which sets order and value on EB.

Parameters
[in]a_valueConstant value on EB
Note
The order is also the attempted radius of the stencil.

◆ MFHelmholtzNeumannEBBCFactory() [2/2]

MFHelmholtzNeumannEBBCFactory::MFHelmholtzNeumannEBBCFactory ( 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 > MFHelmholtzNeumannEBBCFactory::create ( const int  a_iphase,
const RefCountedPtr< MFHelmholtzJumpBC > &  a_jumpBC 
) const
overridevirtual

Factory method.

Parameters
[in]a_jumpBCJump bc object.

Implements MFHelmholtzEBBCFactory.

◆ setBxDphiDn() [1/2]

void MFHelmholtzNeumannEBBCFactory::setBxDphiDn ( const Real  a_BxDphiDn)

Set the value of B*dphi/dn on the EB.

Parameters
[in]a_BxDphiDnValue of B*dphi/dn.
Note
A positive values gives a flux INTO the domain.

◆ setBxDphiDn() [2/2]

void MFHelmholtzNeumannEBBCFactory::setBxDphiDn ( const std::function< Real(const RealVect &a_pos)> &  a_BxDphiDn)

Set the spatially dependent value of B*dphi/dn on the EB.

Parameters
[in]a_BxDphiDnValue of B*dphi/dn.
Note
A positive values gives a flux INTO the domain.

◆ setDphiDn() [1/2]

void MFHelmholtzNeumannEBBCFactory::setDphiDn ( const Real  a_DphiDn)

Set value of dphi/dn on the EB.

Parameters
[in]a_DphiDnValue of dphi/dn.
Note
A positive values gives a flux INTO the domain.

◆ setDphiDn() [2/2]

void MFHelmholtzNeumannEBBCFactory::setDphiDn ( const std::function< Real(const RealVect &a_pos)> &  a_DphiDn)

Set spatially dependent value of dphi/dn on the EB.

Parameters
[in]a_DphiDnValue of dphi/dn.
Note
A positive values gives a flux INTO the domain.

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