Panzer
Version of the Day
Loading...
Searching...
No Matches
disc-fe
src
Panzer_MassMatrixModelEvaluator.hpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// Panzer: A partial differential equation assembly
4
// engine for strongly coupled complex multiphysics systems
5
//
6
// Copyright 2011 NTESS and the Panzer contributors.
7
// SPDX-License-Identifier: BSD-3-Clause
8
// *****************************************************************************
9
// @HEADER
10
11
#ifndef PANZER_MASS_MATRIX_MODEL_EVALUATOR_DECL_HPP
12
#define PANZER_MASS_MATRIX_MODEL_EVALUATOR_DECL_HPP
13
14
#include "PanzerDiscFE_config.hpp"
15
16
#include "
Panzer_Traits.hpp
"
17
#include "
Panzer_AssemblyEngine_TemplateManager.hpp
"
18
#include "
Panzer_ParameterLibrary.hpp
"
19
#include "
Panzer_GlobalEvaluationData.hpp
"
20
#include "
Panzer_ResponseLibrary.hpp
"
21
#include "
Panzer_ResponseMESupportBase.hpp
"
22
23
#include "Teuchos_RCP.hpp"
24
#include "Teuchos_AbstractFactory.hpp"
25
26
#include "Thyra_VectorBase.hpp"
27
#include "Thyra_VectorSpaceBase.hpp"
28
#include "Thyra_StateFuncModelEvaluatorBase.hpp"
29
#include "Thyra_LinearOpWithSolveFactoryBase.hpp"
30
31
#include <
Panzer_NodeType.hpp
>
32
33
namespace
panzer
{
34
35
// Class for explicit model evaluators that construct a mass matrix
36
// A mass matrix inverse may or may not be required within the explicit evaluator at different parts of an IMEX algorithm
37
// This class allows this option to be switched on and off
38
39
template
<
typename
Scalar>
40
class
MassMatrixModelEvaluator
41
:
public
Thyra::ModelEvaluatorBase
42
{
43
public
:
44
45
void
setApplyMassInverse
(
const
bool
applyMassInverse)
const
46
{
47
applyMassInverse_
= applyMassInverse;
48
}
49
50
virtual
void
applyMassMatrix
(
const
Teuchos::RCP<
Thyra::MultiVectorBase<Scalar>
> input,
const
Teuchos::RCP<
Thyra::MultiVectorBase<Scalar>
> output)
const
= 0;
51
virtual
void
applyInverseMassMatrix
(
const
Teuchos::RCP<
Thyra::MultiVectorBase<Scalar>
> input,
const
Teuchos::RCP<
Thyra::MultiVectorBase<Scalar>
> output)
const
= 0;
52
53
protected
:
54
56
mutable
bool
applyMassInverse_
;
57
58
private
:
59
60
};
61
62
63
}
64
65
66
#endif
Panzer_AssemblyEngine_TemplateManager.hpp
Panzer_GlobalEvaluationData.hpp
Panzer_NodeType.hpp
Panzer_ParameterLibrary.hpp
Panzer_ResponseLibrary.hpp
Panzer_ResponseMESupportBase.hpp
Panzer_Traits.hpp
Thyra::MultiVectorBase
panzer::MassMatrixModelEvaluator
Definition
Panzer_MassMatrixModelEvaluator.hpp:42
panzer::MassMatrixModelEvaluator::applyInverseMassMatrix
virtual void applyInverseMassMatrix(const Teuchos::RCP< Thyra::MultiVectorBase< Scalar > > input, const Teuchos::RCP< Thyra::MultiVectorBase< Scalar > > output) const =0
panzer::MassMatrixModelEvaluator::applyMassInverse_
bool applyMassInverse_
Apply mass matrix inverse within the evaluator.
Definition
Panzer_MassMatrixModelEvaluator.hpp:56
panzer::MassMatrixModelEvaluator::setApplyMassInverse
void setApplyMassInverse(const bool applyMassInverse) const
Definition
Panzer_MassMatrixModelEvaluator.hpp:45
panzer::MassMatrixModelEvaluator::applyMassMatrix
virtual void applyMassMatrix(const Teuchos::RCP< Thyra::MultiVectorBase< Scalar > > input, const Teuchos::RCP< Thyra::MultiVectorBase< Scalar > > output) const =0
panzer
Computes .
Definition
Panzer_BasisValues_Evaluator_decl.hpp:22
Generated by
1.9.8