A base class for computing/caching fluxes at boundaries. More...
#include <BoundaryFluxBase.h>
Public Member Functions | |
BoundaryFluxBase (const InputParameters ¶meters) | |
virtual void | execute () override |
virtual void | initialize () override |
virtual void | finalize () override |
virtual void | threadJoin (const UserObject &) override |
virtual const std::vector< Real > & | getFlux (unsigned int iside, dof_id_type ielem, const std::vector< Real > &uvec1, const RealVectorValue &dwave) const |
Get the boundary flux vector. More... | |
virtual void | calcFlux (unsigned int iside, dof_id_type ielem, const std::vector< Real > &uvec1, const RealVectorValue &dwave, std::vector< Real > &flux) const =0 |
Solve the Riemann problem on the boundary face. More... | |
virtual const DenseMatrix< Real > & | getJacobian (unsigned int iside, dof_id_type ielem, const std::vector< Real > &uvec1, const RealVectorValue &dwave) const |
Get the boundary Jacobian matrix. More... | |
virtual void | calcJacobian (unsigned int iside, dof_id_type ielem, const std::vector< Real > &uvec1, const RealVectorValue &dwave, DenseMatrix< Real > &jac1) const =0 |
Compute the Jacobian matrix on the boundary face. More... | |
Protected Attributes | |
unsigned int | _cached_flux_elem_id |
element ID of the cached flux values More... | |
unsigned int | _cached_flux_side_id |
side ID of the cached flux values More... | |
unsigned int | _cached_jacobian_elem_id |
element ID of the cached Jacobian values More... | |
unsigned int | _cached_jacobian_side_id |
side ID of the cached Jacobian values More... | |
std::vector< Real > | _flux |
Cached flux. More... | |
DenseMatrix< Real > | _jac1 |
Cached flux Jacobian. More... | |
A base class for computing/caching fluxes at boundaries.
Notes:
calcFlux
and calcJacobian
. Definition at line 30 of file BoundaryFluxBase.h.
BoundaryFluxBase::BoundaryFluxBase | ( | const InputParameters & | parameters | ) |
Definition at line 20 of file BoundaryFluxBase.C.
|
pure virtual |
Solve the Riemann problem on the boundary face.
[in] | iside | local index of current side |
[in] | ielem | global index of the current element |
[in] | uvec1 | vector of variables on the host side |
[in] | dwave | vector of unit normal |
[out] | flux | flux vector for conservation equations |
Implemented in AEFVFreeOutflowBoundaryFlux, and TestBoundaryFlux.
Referenced by getFlux().
|
pure virtual |
Compute the Jacobian matrix on the boundary face.
[in] | iside | local index of current side |
[in] | ielem | global index of the current element |
[in] | uvec1 | vector of variables on the host side |
[in] | dwave | vector of unit normal |
[out] | jac1 | Jacobian matrix contribution |
Implemented in AEFVFreeOutflowBoundaryFlux, and TestBoundaryFlux.
Referenced by getJacobian().
|
overridevirtual |
Definition at line 39 of file BoundaryFluxBase.C.
|
overridevirtual |
Definition at line 44 of file BoundaryFluxBase.C.
|
virtual |
Get the boundary flux vector.
[in] | iside | local index of current side |
[in] | ielem | global index of the current element |
[in] | uvec1 | vector of variables on the host side |
[in] | dwave | vector of unit normal |
Definition at line 54 of file BoundaryFluxBase.C.
Referenced by BoundaryFluxPostprocessor::computeQpIntegral(), and AEFVBC::computeQpResidual().
|
virtual |
Get the boundary Jacobian matrix.
[in] | iside | local index of current side |
[in] | ielem | global index of the current element |
[in] | uvec1 | vector of variables on the host side |
[in] | dwave | vector of unit normal |
Definition at line 70 of file BoundaryFluxBase.C.
Referenced by AEFVBC::computeQpJacobian().
|
overridevirtual |
Definition at line 30 of file BoundaryFluxBase.C.
|
overridevirtual |
Definition at line 49 of file BoundaryFluxBase.C.
|
mutableprotected |
element ID of the cached flux values
Definition at line 94 of file BoundaryFluxBase.h.
Referenced by getFlux(), and initialize().
|
mutableprotected |
side ID of the cached flux values
Definition at line 96 of file BoundaryFluxBase.h.
Referenced by getFlux(), and initialize().
|
mutableprotected |
element ID of the cached Jacobian values
Definition at line 99 of file BoundaryFluxBase.h.
Referenced by getJacobian(), and initialize().
|
mutableprotected |
side ID of the cached Jacobian values
Definition at line 101 of file BoundaryFluxBase.h.
Referenced by getJacobian(), and initialize().
|
mutableprotected |
|
mutableprotected |
Cached flux Jacobian.
Definition at line 107 of file BoundaryFluxBase.h.
Referenced by getJacobian().