chombo-discharge
Loading...
Searching...
No Matches
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:
Collaboration diagram for MFHelmholtzNeumannEBBCFactory:

Public Member Functions

 MFHelmholtzNeumannEBBCFactory ()
 Weak constructor. Must subsequently set order, weight, and value.
 MFHelmholtzNeumannEBBCFactory (const Real a_DphiDn)
 Full constructor which sets order and value on EB.
 MFHelmholtzNeumannEBBCFactory (const std::function< Real(const RealVect &a_pos)> &a_DphiDn)
 Full constructor which sets order and spatially varying value on EBs.
 ~MFHelmholtzNeumannEBBCFactory ()
 Default constructor.
void setDphiDn (const Real a_DphiDn)
 Set value of dphi/dn on the EB.
void setDphiDn (const std::function< Real(const RealVect &a_pos)> &a_DphiDn)
 Set spatially dependent value of dphi/dn on the EB.
void setBxDphiDn (const Real a_BxDphiDn)
 Set the value of B*dphi/dn on the EB.
void setBxDphiDn (const std::function< Real(const RealVect &a_pos)> &a_BxDphiDn)
 Set the spatially dependent value of B*dphi/dn on the EB.
RefCountedPtr< EBHelmholtzEBBC > create (const int a_iphase, const RefCountedPtr< MFHelmholtzJumpBC > &a_jumpBC) const override
 Factory method.
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_DphiDn)

Full constructor which sets order and value on EB.

Parameters
[in]a_DphiDnConstant value of dphi/dn 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_DphiDn)

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

Parameters
[in]a_DphiDnSpatially varying value of dphi/dn 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.
Returns
Return value
Parameters
[in]a_iphaseDescription

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: