3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Loading...
Searching...
No Matches
Dumux::SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true > Class Template Reference

Cell-centered scheme multidomain local assembler using numeric differentiation and implicit time discretization. More...

#include <dumux/multidomain/subdomaincclocalassembler.hh>

Inheritance diagram for Dumux::SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >:
Inheritance graph

Description

template<std::size_t id, class TypeTag, class Assembler>
class Dumux::SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >

Cell-centered scheme multidomain local assembler using numeric differentiation and implicit time discretization.

Public Types

using LocalResidual
 the local residual type of this domain

Public Member Functions

template<class JacobianMatrixDiagBlock, class GridVariables>
LocalResidualValues assembleJacobianAndResidualImplInverse (JacobianMatrixDiagBlock &A, GridVariables &gridVariables)
 Computes the derivatives with respect to the given element and adds them to the global matrix.
template<std::size_t otherId, class JacobianBlock, class GridVariables>
void assembleJacobianCoupling (Dune::index_constant< otherId > domainJ, JacobianBlock &A, const LocalResidualValues &res, GridVariables &gridVariables)
 Computes the derivatives with respect to the given element and adds them to the global matrix.
void assembleJacobianAndResidual (JacobianMatrixRow &jacRow, SubSolutionVector &res, GridVariablesTuple &gridVariables)
 Computes the derivatives with respect to the given element and adds them to the global matrix. The element residual is written into the right hand side.
void assembleJacobianCoupling (Dune::index_constant< otherId > domainJ, JacRow &jacRow, const LocalResidualValues &res, GridVariables &gridVariables)
 Assemble the entries in a coupling block of the jacobian. There is no coupling block between a domain and itself.
void assembleResidual (SubSolutionVector &res)
 Assemble the residual only.
ElementResidualVector evalLocalSourceResidual (const Element &element, const ElementVolumeVariables &elemVolVars) const
 Evaluates the local source term for an element and given element volume variables.
LocalResidualValues evalLocalStorageResidual () const
 Evaluates the storage terms within the element.
LocalResidualValues evalFluxResidual (const Element &neighbor, const SubControlVolumeFace &scvf) const
 Evaluates the fluxes depending on the chose time discretization scheme.
void bindLocalViews ()
 Prepares all local views necessary for local assembly.
const Problem & problem () const
 return reference to the underlying problem
CouplingManager & couplingManager ()
 return reference to the coupling manager
ElementResidualVector evalLocalResidual () const
 Convenience function to evaluate the complete local residual for the current element. Automatically chooses the the appropriate element volume variables.
ElementResidualVector evalLocalFluxAndSourceResidual () const
 Convenience function to evaluate the flux and source terms (i.e, the terms without a time derivative) of the local residual for the current element. Automatically chooses the the appropriate element volume variables.
void enforceInternalDirichletConstraints (const ApplyFunction &applyDirichlet)
 Enforces Dirichlet constraints if enabled in the problem.
const Assembler & assembler () const
 The assembler.
const Element & element () const
 The current element.
bool elementIsGhost () const
 Returns if element is a ghost entity.
const SolutionVector & curSol () const
 The current solution.
FVElementGeometry & fvGeometry ()
 The global finite volume geometry.
ElementVolumeVariables & curElemVolVars ()
 The current element volume variables.
ElementVolumeVariables & prevElemVolVars ()
 The element volume variables of the provious time step.
ElementFluxVariablesCache & elemFluxVarsCache ()
 The element flux variables cache.
LocalResiduallocalResidual ()
 The local residual for the current element.
ElementBoundaryTypes & elemBcTypes ()
 The element's boundary types.

Static Public Member Functions

static constexpr bool isImplicit ()
 Returns true if the assembler considers implicit assembly.

Static Public Attributes

static constexpr auto domainId
 export the domain id of this sub-domain

Protected Member Functions

SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true > & asImp_ ()
VolumeVariables & getVolVarAccess (GridVolumeVariables &gridVolVars, ElementVolumeVariables &elemVolVars, const SubControlVolume &scv)

Member Typedef Documentation

◆ LocalResidual

using Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, implicit >::LocalResidual
inherited

the local residual type of this domain

Member Function Documentation

◆ asImp_()

SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true > & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, useImplicitAssembly >::asImp_ ( )
inlineprotectedinherited

◆ assembleJacobianAndResidual()

void Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, implicit >::assembleJacobianAndResidual ( JacobianMatrixRow & jacRow,
SubSolutionVector & res,
GridVariablesTuple & gridVariables )
inlineinherited

Computes the derivatives with respect to the given element and adds them to the global matrix. The element residual is written into the right hand side.

◆ assembleJacobianAndResidualImplInverse()

template<std::size_t id, class TypeTag, class Assembler>
template<class JacobianMatrixDiagBlock, class GridVariables>
LocalResidualValues Dumux::SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >::assembleJacobianAndResidualImplInverse ( JacobianMatrixDiagBlock & A,
GridVariables & gridVariables )
inline

Computes the derivatives with respect to the given element and adds them to the global matrix.

Returns
The element residual at the current solution.

◆ assembleJacobianCoupling() [1/2]

template<std::size_t id, class TypeTag, class Assembler>
template<std::size_t otherId, class JacobianBlock, class GridVariables>
void Dumux::SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >::assembleJacobianCoupling ( Dune::index_constant< otherId > domainJ,
JacobianBlock & A,
const LocalResidualValues & res,
GridVariables & gridVariables )
inline

Computes the derivatives with respect to the given element and adds them to the global matrix.

◆ assembleJacobianCoupling() [2/2]

void Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, implicit >::assembleJacobianCoupling ( Dune::index_constant< otherId > domainJ,
JacRow & jacRow,
const LocalResidualValues & res,
GridVariables & gridVariables )
inlineinherited

Assemble the entries in a coupling block of the jacobian. There is no coupling block between a domain and itself.

◆ assembler()

const Assembler & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, useImplicitAssembly >::assembler ( ) const
inlineinherited

The assembler.

◆ assembleResidual()

void Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, implicit >::assembleResidual ( SubSolutionVector & res)
inlineinherited

Assemble the residual only.

◆ bindLocalViews()

void Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, implicit >::bindLocalViews ( )
inlineinherited

Prepares all local views necessary for local assembly.

◆ couplingManager()

CouplingManager & Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, implicit >::couplingManager ( )
inlineinherited

return reference to the coupling manager

◆ curElemVolVars()

ElementVolumeVariables & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, useImplicitAssembly >::curElemVolVars ( )
inlineinherited

The current element volume variables.

◆ curSol()

const SolutionVector & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, useImplicitAssembly >::curSol ( ) const
inlineinherited

The current solution.

◆ elemBcTypes()

ElementBoundaryTypes & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, useImplicitAssembly >::elemBcTypes ( )
inlineinherited

The element's boundary types.

◆ element()

const Element & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, useImplicitAssembly >::element ( ) const
inlineinherited

The current element.

◆ elementIsGhost()

bool Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, useImplicitAssembly >::elementIsGhost ( ) const
inlineinherited

Returns if element is a ghost entity.

◆ elemFluxVarsCache()

ElementFluxVariablesCache & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, useImplicitAssembly >::elemFluxVarsCache ( )
inlineinherited

The element flux variables cache.

◆ enforceInternalDirichletConstraints()

void Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, useImplicitAssembly >::enforceInternalDirichletConstraints ( const ApplyFunction & applyDirichlet)
inlineinherited

Enforces Dirichlet constraints if enabled in the problem.

◆ evalFluxResidual()

LocalResidualValues Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, implicit >::evalFluxResidual ( const Element & neighbor,
const SubControlVolumeFace & scvf ) const
inlineinherited

Evaluates the fluxes depending on the chose time discretization scheme.

◆ evalLocalFluxAndSourceResidual()

ElementResidualVector Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, useImplicitAssembly >::evalLocalFluxAndSourceResidual ( ) const
inlineinherited

Convenience function to evaluate the flux and source terms (i.e, the terms without a time derivative) of the local residual for the current element. Automatically chooses the the appropriate element volume variables.

◆ evalLocalResidual()

ElementResidualVector Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, useImplicitAssembly >::evalLocalResidual ( ) const
inlineinherited

Convenience function to evaluate the complete local residual for the current element. Automatically chooses the the appropriate element volume variables.

◆ evalLocalSourceResidual()

ElementResidualVector Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, implicit >::evalLocalSourceResidual ( const Element & element,
const ElementVolumeVariables & elemVolVars ) const
inlineinherited

Evaluates the local source term for an element and given element volume variables.

◆ evalLocalStorageResidual()

LocalResidualValues Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, implicit >::evalLocalStorageResidual ( ) const
inlineinherited

Evaluates the storage terms within the element.

◆ fvGeometry()

FVElementGeometry & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, useImplicitAssembly >::fvGeometry ( )
inlineinherited

The global finite volume geometry.

◆ getVolVarAccess()

VolumeVariables & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, useImplicitAssembly >::getVolVarAccess ( GridVolumeVariables & gridVolVars,
ElementVolumeVariables & elemVolVars,
const SubControlVolume & scv )
inlineprotectedinherited

◆ isImplicit()

constexpr bool Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, useImplicitAssembly >::isImplicit ( )
inlinestaticconstexprinherited

Returns true if the assembler considers implicit assembly.

◆ localResidual()

LocalResidual & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, useImplicitAssembly >::localResidual ( )
inlineinherited

The local residual for the current element.

◆ prevElemVolVars()

ElementVolumeVariables & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, useImplicitAssembly >::prevElemVolVars ( )
inlineinherited

The element volume variables of the provious time step.

◆ problem()

const Problem & Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, implicit >::problem ( ) const
inlineinherited

return reference to the underlying problem

Member Data Documentation

◆ domainId

auto Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, true >, implicit >::domainId
staticconstexprinherited

export the domain id of this sub-domain


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