// @HEADER // ***************************************************************************** // Panzer: A partial differential equation assembly // engine for strongly coupled complex multiphysics systems // // Copyright 2011 NTESS and the Panzer contributors. // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER #ifndef PANZER_EVALUATOR_DIRICHLET_RESIDUAL_EDGEBASIS_HPP #define PANZER_EVALUATOR_DIRICHLET_RESIDUAL_EDGEBASIS_HPP #include "Teuchos_RCP.hpp" #include "Phalanx_Evaluator_Macros.hpp" #include "Phalanx_MDField.hpp" #include "PanzerDiscFE_config.hpp" #include "Panzer_PureBasis.hpp" #include "Panzer_Dimension.hpp" #include "Panzer_PointRule.hpp" #include "Panzer_PointValues2.hpp" #include "Kokkos_DynRankView.hpp" #include "Panzer_Evaluator_Macros.hpp" namespace panzer { /** Evaluates a Dirichlet BC residual corresponding to a field value * at a set of points defined by a point rule. Note that this assumes * a vector basis is used. */ template class DirichletResidual_EdgeBasis : public panzer::EvaluatorWithBaseImpl, public PHX::EvaluatorDerived { public: DirichletResidual_EdgeBasis( const Teuchos::ParameterList& p); void postRegistrationSetup( typename Traits::SetupData d, PHX::FieldManager& fm); void evaluateFields( typename Traits::EvalData d); private: using ScalarT = typename EvalT::ScalarT; PHX::MDField residual; PHX::MDField dof; PHX::MDField value; Teuchos::RCP basis; Teuchos::RCP pointRule; PointValues2 pointValues; Teuchos::RCP > orientations; Intrepid2::RefSubcellParametrization::ConstViewType edgeParam; //edge parametrization Intrepid2::RefSubcellParametrization::ConstViewType faceParam; //face parametrization }; // end of class DirichletResidual_EdgeBasis } #endif