Panzer
Version of the Day
Loading...
Searching...
No Matches
disc-fe
src
evaluators
Panzer_SubcellSum_decl.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_SubcellSum_decl_hpp__
12
#define __Panzer_SubcellSum_decl_hpp__
13
14
#include <string>
15
16
#include "PanzerDiscFE_config.hpp"
17
#include "
Panzer_Dimension.hpp
"
18
#include "
Panzer_FieldPattern.hpp
"
19
20
#include "Phalanx_Evaluator_Macros.hpp"
21
#include "Phalanx_MDField.hpp"
22
23
#include "
Panzer_Evaluator_Macros.hpp
"
24
25
namespace
panzer
{
26
48
template
<
typename
EvalT,
typename
Traits>
49
class
SubcellSum
50
:
51
public
panzer::EvaluatorWithBaseImpl
<Traits>,
52
public
PHX::EvaluatorDerived<EvalT, Traits>
53
{
54
public
:
55
56
SubcellSum
(
57
const
Teuchos::ParameterList& p);
58
59
void
60
evaluateFields
(
61
typename
Traits::EvalData
d);
62
63
private
:
64
65
using
ScalarT
=
typename
EvalT::ScalarT;
66
67
PHX::MDField<ScalarT,Cell>
outField
;
// result
68
69
PHX::MDField<const ScalarT,Cell,BASIS>
inField
;
// function to be integrated
70
71
double
multiplier
;
72
73
public
:
74
75
const
PHX::FieldTag &
getFieldTag
()
const
76
{
return
outField
.fieldTag(); }
77
78
private
:
79
Teuchos::RCP<Teuchos::ParameterList>
getValidParameters
()
const
;
80
81
// This is used to lookup closure indices (local Ids that live on a subcell)
82
Teuchos::RCP<const panzer::FieldPattern>
fieldPattern_
;
83
84
// evalaute on the "closure" of the indicated sub-cells
85
bool
evaluateOnClosure_
;
86
87
};
// end of class SubcellSum
88
89
90
}
91
92
#endif
Panzer_Dimension.hpp
Panzer_Evaluator_Macros.hpp
Panzer_FieldPattern.hpp
panzer::EvaluatorWithBaseImpl
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
Definition
Panzer_Evaluator_WithBaseImpl.hpp:24
panzer::SubcellSum
Definition
Panzer_SubcellSum_decl.hpp:53
panzer::SubcellSum::multiplier
double multiplier
Definition
Panzer_SubcellSum_decl.hpp:71
panzer::SubcellSum::getFieldTag
const PHX::FieldTag & getFieldTag() const
Definition
Panzer_SubcellSum_decl.hpp:75
panzer::SubcellSum::evaluateOnClosure_
bool evaluateOnClosure_
Definition
Panzer_SubcellSum_decl.hpp:85
panzer::SubcellSum::outField
PHX::MDField< ScalarT, Cell > outField
Definition
Panzer_SubcellSum_decl.hpp:67
panzer::SubcellSum::getValidParameters
Teuchos::RCP< Teuchos::ParameterList > getValidParameters() const
Definition
Panzer_SubcellSum_impl.hpp:88
panzer::SubcellSum::fieldPattern_
Teuchos::RCP< const panzer::FieldPattern > fieldPattern_
Definition
Panzer_SubcellSum_decl.hpp:82
panzer::SubcellSum::evaluateFields
void evaluateFields(typename Traits::EvalData d)
Definition
Panzer_SubcellSum_impl.hpp:56
panzer::SubcellSum::inField
PHX::MDField< const ScalarT, Cell, BASIS > inField
Definition
Panzer_SubcellSum_decl.hpp:69
panzer::SubcellSum::ScalarT
typename EvalT::ScalarT ScalarT
Definition
Panzer_SubcellSum_decl.hpp:65
panzer::Workset
Definition
Panzer_Workset.hpp:325
panzer
Computes .
Definition
Panzer_BasisValues_Evaluator_decl.hpp:22
Generated by
1.9.8