dune-pdelab
2.7-git
|
The local assembler for one step methods. More...
#include <dune/pdelab/gridoperator/onestep/localassembler.hh>
Public Types | |
enum | DTAssemblingMode { DivideOperator1ByDT, MultiplyOperator0ByDT, DoNotAssembleDT } |
typedef LA0 | LocalAssemblerDT0 |
The types of the local assemblers of order one and zero. More... | |
typedef LA1 | LocalAssemblerDT1 |
typedef Dune::PDELab::LocalAssemblerTraits< GO > | Traits |
typedef Dune::PDELab::LocalAssemblerBase< typename GO::Traits::MatrixBackend, typename GO::Traits::TrialGridFunctionSpaceConstraints, typename GO::Traits::TestGridFunctionSpaceConstraints > | Base |
The base class. More... | |
typedef Traits::RangeField | Real |
The local operators type for real numbers e.g. time. More... | |
typedef Dune::PDELab::TimeSteppingParameterInterface< Real > | OneStepParameters |
The type of the one step parameter object. More... | |
typedef GO::Traits::MatrixBackend ::size_type | SizeType |
Public Member Functions | |
void | static_checks () |
OneStepLocalAssembler (LA0 &la0_, LA1 &la1_, typename Traits::Residual &const_residual_) | |
Constructor with empty constraints. More... | |
void | preStep (Real time_, Real dt_, int stages_) |
void | setMethod (const OneStepParameters &method_) |
Set the one step method parameters. More... | |
void | setStage (int stage_) |
Set the current stage of the one step scheme. More... | |
void | setDTAssemblingMode (DTAssemblingMode dt_mode_) |
Real | timeAtStage (int stage_) const |
Access time at given stage. More... | |
Real | timeAtStage () const |
Access time at given stage. More... | |
void | setWeight (const Real weight) |
const GO::Traits::TrialGridFunctionSpaceConstraints & | trialConstraints () const |
get the constraints on the trial grid function space More... | |
const GO::Traits::TestGridFunctionSpaceConstraints & | testConstraints () const |
get the constraints on the test grid function space More... | |
std::enable_if< AlwaysTrue< X >::value &&!std::is_same< GO::Traits::TestGridFunctionSpaceConstraints, EmptyTransformation >::value >::type | forwardtransform (X &x, const bool postrestrict=false) const |
Transforms a vector ![]() ![]() ![]() ![]() More... | |
std::enable_if< AlwaysTrue< X >::value &&std::is_same< GO::Traits::TestGridFunctionSpaceConstraints, EmptyTransformation >::value >::type | forwardtransform (X &x, const bool postrestrict=false) const |
std::enable_if< AlwaysTrue< X >::value &&!std::is_same< GO::Traits::TestGridFunctionSpaceConstraints, EmptyTransformation >::value >::type | backtransform (X &x, const bool prerestrict=false) const |
Transforms a vector ![]() ![]() ![]() ![]() More... | |
std::enable_if< AlwaysTrue< X >::value &&std::is_same< GO::Traits::TestGridFunctionSpaceConstraints, EmptyTransformation >::value >::type | backtransform (X &x, const bool prerestrict=false) const |
LocalPatternAssemblerEngine & | localPatternAssemblerEngine (typename Traits::MatrixPattern &p) |
LocalPreStageAssemblerEngine & | localPreStageAssemblerEngine (const std::vector< typename Traits::Solution * > &x) |
LocalResidualAssemblerEngine & | localResidualAssemblerEngine (typename Traits::Residual &r, const typename Traits::Solution &x) |
LocalJacobianAssemblerEngine & | localJacobianAssemblerEngine (typename Traits::Jacobian &a, const typename Traits::Solution &x) |
LocalExplicitPatternAssemblerEngine & | localExplicitPatternAssemblerEngine (typename Traits::MatrixPattern &p) |
LocalExplicitJacobianResidualAssemblerEngine & | localExplicitJacobianResidualAssemblerEngine (typename Traits::Jacobian &a, typename Traits::Residual &r0, typename Traits::Residual &r1, const std::vector< typename Traits::Solution * > &x) |
LocalJacobianApplyAssemblerEngine & | localJacobianApplyAssemblerEngine (const typename Traits::Domain &update, typename Traits::Range &result) |
LocalJacobianApplyAssemblerEngine & | localJacobianApplyAssemblerEngine (const typename Traits::Domain &solution, const typename Traits::Domain &update, typename Traits::Range &result) |
Protected Member Functions | |
void | eread (const GCView &globalcontainer_view, LocalMatrix< T > &localcontainer) const |
read local stiffness matrix for entity More... | |
void | ewrite (const LocalMatrix< T > &localcontainer, GCView &globalcontainer_view) const |
write local stiffness matrix for entity More... | |
void | eadd (const LocalMatrix< T > &localcontainer, GCView &globalcontainer_view) const |
write local stiffness matrix for entity More... | |
std::enable_if< AlwaysTrue< M >::value &&!std::is_same< GO::Traits::TestGridFunctionSpaceConstraints, EmptyTransformation >::value >::type | scatter_jacobian (M &local_container, GCView &global_container_view, bool symmetric_mode) const |
Scatter local jacobian to global container. More... | |
std::enable_if< AlwaysTrue< M >::value &&std::is_same< GO::Traits::TestGridFunctionSpaceConstraints, EmptyTransformation >::value >::type | scatter_jacobian (M &local_container, GCView &global_container_view, bool symmetric_mode) const |
void | etadd_symmetric (M &localcontainer, GCView &globalcontainer_view) const |
Add local matrix to global matrix, and apply Dirichlet constraints in a symmetric fashion. Apart from that, identical to etadd(). More... | |
void | etadd (const M &localcontainer, GCView &globalcontainer_view) const |
std::enable_if< std::is_same< RI, CI >::value >::type | add_diagonal_entry (Pattern &pattern, const RI &ri, const CI &ci) const |
std::enable_if< !std::is_same< RI, CI >::value >::type | add_diagonal_entry (Pattern &pattern, const RI &ri, const CI &ci) const |
void | add_entry (P &globalpattern, const LFSVIndices &lfsv_indices, Index i, const LFSUIndices &lfsu_indices, Index j) const |
Adding matrix entry to pattern with respect to the constraints contributions. This assembles the entries addressed by etadd(..). See the documentation there for more information about the matrix pattern. More... | |
void | set_trivial_rows (const GFSV &gfsv, GC &globalcontainer, const C &c) const |
insert dirichlet constraints for row and assemble T^T_U in constrained rows More... | |
void | set_trivial_rows (const GFSV &gfsv, GC &globalcontainer, const EmptyTransformation &c) const |
void | handle_dirichlet_constraints (const GFSV &gfsv, GC &globalcontainer) const |
Protected Attributes | |
const GO::Traits::TrialGridFunctionSpaceConstraints * | pconstraintsu |
const GO::Traits::TestGridFunctionSpaceConstraints * | pconstraintsv |
Static Protected Attributes | |
static GO::Traits::TrialGridFunctionSpaceConstraints | emptyconstraintsu |
static GO::Traits::TestGridFunctionSpaceConstraints | emptyconstraintsv |
typedef OneStepLocalPatternAssemblerEngine< OneStepLocalAssembler > | LocalPatternAssemblerEngine |
typedef OneStepLocalPreStageAssemblerEngine< OneStepLocalAssembler > | LocalPreStageAssemblerEngine |
typedef OneStepLocalResidualAssemblerEngine< OneStepLocalAssembler > | LocalResidualAssemblerEngine |
typedef OneStepLocalJacobianAssemblerEngine< OneStepLocalAssembler > | LocalJacobianAssemblerEngine |
typedef OneStepLocalJacobianApplyAssemblerEngine< OneStepLocalAssembler > | LocalJacobianApplyAssemblerEngine |
typedef LA1::LocalPatternAssemblerEngine | LocalExplicitPatternAssemblerEngine |
typedef OneStepExplicitLocalJacobianResidualAssemblerEngine< OneStepLocalAssembler > | LocalExplicitJacobianResidualAssemblerEngine |
The local assembler for one step methods.
LA0 | The local assembler for the temporal derivative term of order zero |
LA1 | The local assembler for the temporal derivative term of order one |
typedef Dune::PDELab::LocalAssemblerBase< typename GO::Traits::MatrixBackend, typename GO::Traits::TrialGridFunctionSpaceConstraints, typename GO::Traits::TestGridFunctionSpaceConstraints> Dune::PDELab::OneStepLocalAssembler< GO, LA0, LA1 >::Base |
The base class.
typedef LA0 Dune::PDELab::OneStepLocalAssembler< GO, LA0, LA1 >::LocalAssemblerDT0 |
The types of the local assemblers of order one and zero.
typedef LA1 Dune::PDELab::OneStepLocalAssembler< GO, LA0, LA1 >::LocalAssemblerDT1 |
typedef OneStepExplicitLocalJacobianResidualAssemblerEngine<OneStepLocalAssembler> Dune::PDELab::OneStepLocalAssembler< GO, LA0, LA1 >::LocalExplicitJacobianResidualAssemblerEngine |
typedef LA1::LocalPatternAssemblerEngine Dune::PDELab::OneStepLocalAssembler< GO, LA0, LA1 >::LocalExplicitPatternAssemblerEngine |
typedef OneStepLocalJacobianApplyAssemblerEngine<OneStepLocalAssembler> Dune::PDELab::OneStepLocalAssembler< GO, LA0, LA1 >::LocalJacobianApplyAssemblerEngine |
typedef OneStepLocalJacobianAssemblerEngine<OneStepLocalAssembler> Dune::PDELab::OneStepLocalAssembler< GO, LA0, LA1 >::LocalJacobianAssemblerEngine |
typedef OneStepLocalPatternAssemblerEngine<OneStepLocalAssembler> Dune::PDELab::OneStepLocalAssembler< GO, LA0, LA1 >::LocalPatternAssemblerEngine |
The local assembler engines
typedef OneStepLocalPreStageAssemblerEngine<OneStepLocalAssembler> Dune::PDELab::OneStepLocalAssembler< GO, LA0, LA1 >::LocalPreStageAssemblerEngine |
typedef OneStepLocalResidualAssemblerEngine<OneStepLocalAssembler> Dune::PDELab::OneStepLocalAssembler< GO, LA0, LA1 >::LocalResidualAssemblerEngine |
typedef Dune::PDELab::TimeSteppingParameterInterface<Real> Dune::PDELab::OneStepLocalAssembler< GO, LA0, LA1 >::OneStepParameters |
The type of the one step parameter object.
typedef Traits::RangeField Dune::PDELab::OneStepLocalAssembler< GO, LA0, LA1 >::Real |
The local operators type for real numbers e.g. time.
|
inherited |
typedef Dune::PDELab::LocalAssemblerTraits<GO> Dune::PDELab::OneStepLocalAssembler< GO, LA0, LA1 >::Traits |
enum Dune::PDELab::OneStepLocalAssembler::DTAssemblingMode |
|
inline |
Constructor with empty constraints.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
Adding matrix entry to pattern with respect to the constraints contributions. This assembles the entries addressed by etadd(..). See the documentation there for more information about the matrix pattern.
|
inlineinherited |
Transforms a vector from
to
. If prerestrict == true then
is applied instead of the full transformation.
|
inlineinherited |
|
inlineprotectedinherited |
write local stiffness matrix for entity
|
inlineprotectedinherited |
read local stiffness matrix for entity
|
inlineprotectedinherited |
|
inlineprotectedinherited |
Add local matrix to global matrix, and apply Dirichlet constraints in a symmetric fashion. Apart from that, identical to etadd().
|
inlineprotectedinherited |
write local stiffness matrix for entity
|
inlineinherited |
Transforms a vector from
to
. If postrestrict == true then
is applied instead of the full transformation.
|
inlineinherited |
|
inlineprotectedinherited |
|
inline |
Returns a reference to the requested engine. This engine is completely configured and ready to use.
|
inline |
Returns a reference to the requested engine. This engine is completely configured and ready to use.
|
inline |
Returns a reference to the requested engine. This engine is completely configured and ready to use.
|
inline |
Returns a reference to the requested engine. This engine is completely configured and ready to use.
|
inline |
Returns a reference to the requested engine. This engine is completely configured and ready to use.
|
inline |
Access methods which provid "ready to use" engines Returns a reference to the requested engine. This engine is completely configured and ready to use.
|
inline |
Returns a reference to the requested engine. This engine is completely configured and ready to use.
|
inline |
Returns a reference to the requested engine. This engine is completely configured and ready to use.
|
inline |
Notifies the local assembler about the current time of assembling. Should be called before assembling if the local operator has time dependencies.
|
inlineprotectedinherited |
Scatter local jacobian to global container.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
insert dirichlet constraints for row and assemble T^T_U in constrained rows
|
inlineprotectedinherited |
|
inline |
Determines whether the time step size is multiplied to the mass term (first order time derivative) or the elliptic term (zero-th order time derivative).
|
inline |
Set the one step method parameters.
|
inline |
Set the current stage of the one step scheme.
|
inline |
|
inline |
|
inlineinherited |
get the constraints on the test grid function space
|
inline |
Access time at given stage.
|
inline |
Access time at given stage.
|
inlineinherited |
get the constraints on the trial grid function space
|
staticprotectedinherited |
|
staticprotectedinherited |
|
protectedinherited |
|
protectedinherited |