Coupling manager for equal-dimension boundary coupling of darcy models. More...
#include <dumux/multidomain/boundary/darcydarcy/couplingmanager.hh>

Coupling manager for equal-dimension boundary coupling of darcy models.
Public Types | |
| using | MultiDomainTraits = MDTraits |
| export traits | |
| using | CouplingStencils = std::unordered_map<std::size_t, CouplingStencil> |
| export stencil types | |
| using | CouplingStencilType |
| default type used for coupling element stencils | |
Public Member Functions | |
| void | init (std::shared_ptr< Problem< domainIdx< 0 >()> > problem0, std::shared_ptr< Problem< domainIdx< 1 >()> > problem1, const SolutionVector &curSol) |
| Methods to be accessed by main. | |
| template<std::size_t i, std::size_t j> | |
| const CouplingStencil & | couplingStencil (Dune::index_constant< i > domainI, const Element< i > &element, Dune::index_constant< j > domainJ) const |
| Methods to be accessed by the assembly. | |
| template<std::size_t i> | |
| bool | isCoupled (Dune::index_constant< i > domainI, const SubControlVolumeFace< i > &scvf) const |
| If the boundary entity is on a coupling boundary. | |
| template<std::size_t i> | |
| Scalar | advectiveFluxCoupling (Dune::index_constant< i > domainI, const Element< i > &element, const FVElementGeometry< i > &fvGeometry, const ElementVolumeVariables< i > &elemVolVars, const SubControlVolumeFace< i > &scvf, int phaseIdx=0) const |
| Evaluate the boundary conditions for a coupled Neumann boundary segment. | |
| template<std::size_t i> | |
| VolumeVariables< i > | volVars (Dune::index_constant< i > domainI, const Element< i > &element, const SubControlVolume< i > &scv) const |
| Return the volume variables of domain i for a given element and scv. | |
member functions concerning the coupling stencils | |
| void | extendJacobianPattern (Dune::index_constant< id > domainI, JacobianPattern &pattern) const |
| extend the jacobian pattern of the diagonal block of domain i by those entries that are not already in the uncoupled pattern | |
member functions concerning variable caching for element residual evaluations | |
| void | bindCouplingContext (Dune::index_constant< i > domainI, const Element< i > &elementI, const Assembler &assembler) |
| prepares all data and variables that are necessary to evaluate the residual of the element of domain i | |
| void | updateCouplingContext (Dune::index_constant< i > domainI, const LocalAssemblerI &localAssemblerI, Dune::index_constant< j > domainJ, std::size_t dofIdxGlobalJ, const PrimaryVariables< j > &priVarsJ, int pvIdxJ) |
| updates all data and variables that are necessary to evaluate the residual of the element of domain i this is called whenever one of the primary variables that the element residual depends on changes in domain j | |
| void | updateCoupledVariables (Dune::index_constant< i > domainI, const LocalAssemblerI &localAssemblerI, UpdatableElementVolVars &elemVolVars, UpdatableFluxVarCache &elemFluxVarsCache) |
| update variables of domain i that depend on variables in domain j after the coupling context has been updated | |
| void | updateSolution (const SolutionVector &curSol) |
| Updates the entire solution vector, e.g. before assembly or after grid adaption. | |
| decltype(auto) | evalCouplingResidual (Dune::index_constant< i > domainI, const LocalAssemblerI &localAssemblerI, Dune::index_constant< j > domainJ, std::size_t dofIdxGlobalJ) const |
| evaluates the element residual of a coupled element of domain i which depends on the variables at the degree of freedom with index dofIdxGlobalJ of domain j | |
| void | evalAdditionalDomainDerivatives (Dune::index_constant< i > domainI, const LocalAssemblerI &localAssemblerI, const typename LocalAssemblerI::LocalResidual::ElementResidualVector &origResiduals, JacobianMatrixDiagBlock &A, GridVariables &gridVariables) |
| evaluate additional derivatives of the element residual of a domain with respect to dofs in the same domain that are not in the regular stencil (see CouplingManager::extendJacobianPattern) | |
| decltype(auto) | numericEpsilon (Dune::index_constant< i >, const std::string ¶mGroup) const |
| return the numeric epsilon used for deflecting primary variables of coupled domain i | |
| void | setSubProblems (const std::tuple< std::shared_ptr< SubProblems >... > &problems) |
| set the pointers to the sub problems | |
| void | setSubProblem (std::shared_ptr< SubProblem > problem, Dune::index_constant< i > domainIdx) |
| set a pointer to one of the sub problems | |
| const Problem< i > & | problem (Dune::index_constant< i > domainIdx) const |
| Return a reference to the sub problem. | |
| SolutionVector & | curSol () |
| the solution vector of the coupled problem | |
| const SolutionVector & | curSol () const |
| the solution vector of the coupled problem | |
| using Dumux::DarcyDarcyBoundaryCouplingManager< MDTraits >::CouplingStencils = std::unordered_map<std::size_t, CouplingStencil> |
export stencil types
|
inherited |
default type used for coupling element stencils
| using Dumux::DarcyDarcyBoundaryCouplingManager< MDTraits >::MultiDomainTraits = MDTraits |
export traits
|
inline |
Evaluate the boundary conditions for a coupled Neumann boundary segment.
This is the method for the case where the Neumann condition is potentially solution dependent
| domainI | the domain index for which to compute the flux |
| element | The finite element |
| fvGeometry | The finite-volume geometry |
| elemVolVars | All volume variables for the element |
| scvf | The sub control volume face |
| phaseIdx | the phase for which to compute the flux |
Negative values mean influx. E.g. for the mass balance that would the mass flux in \( [ kg / (m^2 \cdot s)] \).
compute alpha := n^T*K*g
|
inlineinherited |
prepares all data and variables that are necessary to evaluate the residual of the element of domain i
| domainI | the domain index of domain i |
| elementI | the element whose residual we are assemling next |
| assembler | the multidomain assembler for access to all data necessary for the assembly of all domains |
|
inline |
Methods to be accessed by the assembly.
returns an iteratable container of all indices of degrees of freedom of domain j that couple with / influence the element residual of the given element of domain i
| domainI | the domain index of domain i |
| element | the coupled element of domain í |
| domainJ | the domain index of domain j |
|
inlineprotectedinherited |
the solution vector of the coupled problem
|
inlineprotectedinherited |
the solution vector of the coupled problem
|
inlineinherited |
evaluate additional derivatives of the element residual of a domain with respect to dofs in the same domain that are not in the regular stencil (see CouplingManager::extendJacobianPattern)
|
inlineinherited |
evaluates the element residual of a coupled element of domain i which depends on the variables at the degree of freedom with index dofIdxGlobalJ of domain j
| domainI | the domain index of domain i |
| localAssemblerI | the local assembler assembling the element residual of an element of domain i |
| domainJ | the domain index of domain j |
| dofIdxGlobalJ | the index of the degree of freedom of domain j which has an influence on the element residual of domain i |
|
inlineinherited |
extend the jacobian pattern of the diagonal block of domain i by those entries that are not already in the uncoupled pattern
|
inline |
Methods to be accessed by main.
|
inline |
If the boundary entity is on a coupling boundary.
| domainI | the domain index for which to compute the flux |
| scvf | the sub control volume face |
|
inlineinherited |
return the numeric epsilon used for deflecting primary variables of coupled domain i
|
inlineinherited |
Return a reference to the sub problem.
| domainIdx | The domain index |
|
inlineinherited |
set a pointer to one of the sub problems
| problem | a pointer to the sub problem |
| domainIdx | the domain index of the sub problem |
|
inlineinherited |
set the pointers to the sub problems
| problems | A tuple of shared pointers to the sub problems |
|
inlineinherited |
update variables of domain i that depend on variables in domain j after the coupling context has been updated
| domainI | the index of domain i |
| localAssemblerI | the local assembler assembling the element residual of an element of domain i |
| elemVolVars | the element volume variables (all volume variables in the element local stencil) to be updated |
| elemFluxVarsCache | the element flux variable cache (all flux variables in the element local stencil) to be updated |
|
inlineinherited |
updates all data and variables that are necessary to evaluate the residual of the element of domain i this is called whenever one of the primary variables that the element residual depends on changes in domain j
| domainI | the domain index of domain i |
| localAssemblerI | the local assembler assembling the element residual of an element of domain i |
| domainJ | the domain index of domain j |
| dofIdxGlobalJ | the index of the degree of freedom of domain j whose solution changed |
| priVarsJ | the new solution at the degree of freedom of domain j with index dofIdxGlobalJ |
| pvIdxJ | the index of the primary variable of domain j which has been updated |
|
inlineinherited |
Updates the entire solution vector, e.g. before assembly or after grid adaption.
|
inline |
Return the volume variables of domain i for a given element and scv.