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

Cell-centered scheme local assembler using analytic (hand-coded) differentiation and implicit time discretization. More...

#include <dumux/assembly/cclocalassembler.hh>

Inheritance diagram for Dumux::CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >:
Inheritance graph

Description

template<class TypeTag, class Assembler>
class Dumux::CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >

Cell-centered scheme local assembler using analytic (hand-coded) differentiation and implicit time discretization.

Public Types

using LocalResidual
using ElementResidualVector

Public Member Functions

NumEqVector assembleJacobianAndResidualImpl (JacobianMatrix &A, const GridVariables &gridVariables)
 Computes the derivatives with respect to the given element and adds them to the global matrix.
void assembleJacobianAndResidual (JacobianMatrix &jac, SolutionVector &res, GridVariables &gridVariables, const PartialReassembler *partialReassembler)
 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 assembleJacobian (JacobianMatrix &jac, GridVariables &gridVariables)
 Computes the derivatives with respect to the given element and adds them to the global matrix.
void assembleResidual (SolutionVector &res)
 Assemble the residual only.
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.
ElementResidualVector evalLocalStorageResidual () const
 Convenience function to evaluate storage term (i.e, the term with a time derivative) of the local residual for the current element. Automatically chooses the the appropriate element volume variables.
void bindLocalViews ()
 Convenience function bind and prepare all relevant variables required for the evaluation of the local residual.
void enforceInternalDirichletConstraints (const ApplyFunction &applyDirichlet)
 Enforces Dirichlet constraints if enabled in the problem.
const Problem & problem () const
 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.

Protected Member Functions

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

Member Typedef Documentation

◆ ElementResidualVector

using Dumux::FVLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, useImplicitAssembly >::ElementResidualVector
inherited

◆ LocalResidual

using Dumux::FVLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, useImplicitAssembly >::LocalResidual
inherited

Member Function Documentation

◆ asImp_()

CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true > & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, useImplicitAssembly >::asImp_ ( )
inlineprotectedinherited

◆ assembleJacobian()

void Dumux::CCLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, implicit >::assembleJacobian ( JacobianMatrix & jac,
GridVariables & gridVariables )
inlineinherited

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

◆ assembleJacobianAndResidual()

void Dumux::CCLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, implicit >::assembleJacobianAndResidual ( JacobianMatrix & jac,
SolutionVector & res,
GridVariables & gridVariables,
const PartialReassembler * partialReassembler )
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.

◆ assembleJacobianAndResidualImpl()

template<class TypeTag, class Assembler>
NumEqVector Dumux::CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >::assembleJacobianAndResidualImpl ( JacobianMatrix & A,
const 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.

◆ assembler()

const Assembler & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, useImplicitAssembly >::assembler ( ) const
inlineinherited

The assembler.

◆ assembleResidual()

void Dumux::CCLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, implicit >::assembleResidual ( SolutionVector & res)
inlineinherited

Assemble the residual only.

◆ bindLocalViews()

void Dumux::FVLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, useImplicitAssembly >::bindLocalViews ( )
inlineinherited

Convenience function bind and prepare all relevant variables required for the evaluation of the local residual.

◆ curElemVolVars()

ElementVolumeVariables & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, useImplicitAssembly >::curElemVolVars ( )
inlineinherited

The current element volume variables.

◆ curSol()

const SolutionVector & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, useImplicitAssembly >::curSol ( ) const
inlineinherited

The current solution.

◆ elemBcTypes()

ElementBoundaryTypes & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, useImplicitAssembly >::elemBcTypes ( )
inlineinherited

The element's boundary types.

◆ element()

const Element & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, useImplicitAssembly >::element ( ) const
inlineinherited

The current element.

◆ elementIsGhost()

bool Dumux::FVLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, useImplicitAssembly >::elementIsGhost ( ) const
inlineinherited

Returns if element is a ghost entity.

◆ elemFluxVarsCache()

ElementFluxVariablesCache & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, useImplicitAssembly >::elemFluxVarsCache ( )
inlineinherited

The element flux variables cache.

◆ enforceInternalDirichletConstraints()

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

Enforces Dirichlet constraints if enabled in the problem.

◆ evalLocalFluxAndSourceResidual()

ElementResidualVector Dumux::FVLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, 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, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, 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.

◆ evalLocalStorageResidual()

ElementResidualVector Dumux::FVLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, useImplicitAssembly >::evalLocalStorageResidual ( ) const
inlineinherited

Convenience function to evaluate storage term (i.e, the term with a time derivative) of the local residual for the current element. Automatically chooses the the appropriate element volume variables.

◆ fvGeometry()

FVElementGeometry & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, useImplicitAssembly >::fvGeometry ( )
inlineinherited

The global finite volume geometry.

◆ getVolVarAccess()

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

◆ isImplicit()

constexpr bool Dumux::FVLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, useImplicitAssembly >::isImplicit ( )
inlinestaticconstexprinherited

Returns true if the assembler considers implicit assembly.

◆ localResidual()

LocalResidual & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, useImplicitAssembly >::localResidual ( )
inlineinherited

The local residual for the current element.

◆ prevElemVolVars()

ElementVolumeVariables & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, useImplicitAssembly >::prevElemVolVars ( )
inlineinherited

The element volume variables of the provious time step.

◆ problem()

const Problem & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, CCLocalAssembler< TypeTag, Assembler, DiffMethod::analytic, true >, useImplicitAssembly >::problem ( ) const
inlineinherited

The problem.


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