Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_ProjectToEdges_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_EVALUATOR_PROJECT_TO_EDGES_DECL_HPP
12#define PANZER_EVALUATOR_PROJECT_TO_EDGES_DECL_HPP
13
14#include "Phalanx_Evaluator_Macros.hpp"
15#include "Phalanx_MDField.hpp"
16
17#include "Teuchos_ParameterList.hpp"
18
19#include "Panzer_Dimension.hpp"
20#include "Panzer_Traits.hpp"
22
23namespace panzer {
24
27template<typename EvalT, typename Traits>
29 : public PHX::EvaluatorWithBaseImpl<Traits>,
30 public PHX::EvaluatorDerived<EvalT, Traits>,
31 public CloneableEvaluator {
32
33public:
34
35 ProjectToEdges(const Teuchos::ParameterList& p);
36
39
40 void evaluateFields(typename Traits::EvalData d);
41
42 virtual Teuchos::RCP<CloneableEvaluator> clone(const Teuchos::ParameterList & pl) const
43 {return Teuchos::rcp(new ProjectToEdges<EvalT,Traits>(pl));}
44
45private:
46
47 typedef typename EvalT::ScalarT ScalarT;
48
49 std::string dof_name_;
50 Teuchos::RCP<const PureBasis> basis_;
53
54 PHX::MDField<const ScalarT,Cell,BASIS,Dim> tangents_;
55 PHX::MDField<const ScalarT,Cell,BASIS,Dim> vector_values_;
56 PHX::MDField<ScalarT,Cell,BASIS> result_;
57};
58
59}
60
61// **************************************************************
62#endif
Non-templated empty base class for template managers.
Given a function stored as a vector and the tangents at each edge, project the vector onto the edge b...
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
PHX::MDField< ScalarT, Cell, BASIS > result_
Teuchos::RCP< const PureBasis > basis_
PHX::MDField< const ScalarT, Cell, BASIS, Dim > vector_values_
PHX::MDField< const ScalarT, Cell, BASIS, Dim > tangents_
void evaluateFields(typename Traits::EvalData d)
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &vm)