Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #ifndef SURFACE_SCALAR_GRADIENT_OPERATOR_HPP
00008 #define SURFACE_SCALAR_GRADIENT_OPERATOR_HPP
00009
00010 #include "Phalanx_ConfigDefs.hpp"
00011 #include "Phalanx_Evaluator_WithBaseImpl.hpp"
00012 #include "Phalanx_Evaluator_Derived.hpp"
00013 #include "Phalanx_MDField.hpp"
00014 #include "Intrepid_CellTools.hpp"
00015 #include "Intrepid_Cubature.hpp"
00016
00017 #include "Albany_Layouts.hpp"
00018
00019 namespace LCM {
00026 template<typename EvalT, typename Traits>
00027 class SurfaceScalarGradientOperator : public PHX::EvaluatorWithBaseImpl<Traits>,
00028 public PHX::EvaluatorDerived<EvalT, Traits> {
00029
00030 public:
00031
00032
00033
00034 SurfaceScalarGradientOperator(const Teuchos::ParameterList& p,
00035 const Teuchos::RCP<Albany::Layouts>& dl);
00036
00037 void postRegistrationSetup(typename Traits::SetupData d,
00038 PHX::FieldManager<Traits>& vm);
00039
00040 void evaluateFields(typename Traits::EvalData d);
00041
00042
00043
00044 private:
00045
00046 typedef typename EvalT::ScalarT ScalarT;
00047 typedef typename EvalT::MeshScalarT MeshScalarT;
00048
00049
00051 RealType thickness;
00052
00054 Teuchos::RCP<Intrepid::Cubature<RealType> > cubature;
00055
00057 Teuchos::RCP<Intrepid::Basis<RealType, Intrepid::FieldContainer<RealType> > > intrepidBasis;
00058
00059 PHX::MDField<ScalarT,Cell,Node> val_node;
00060
00061 PHX::MDField<MeshScalarT,Cell,QuadPoint,Dim, Dim> refDualBasis;
00062 PHX::MDField<MeshScalarT,Cell,QuadPoint,Dim> refNormal;
00063
00065 Intrepid::FieldContainer<RealType> refValues;
00066 Intrepid::FieldContainer<RealType> refGrads;
00067 Intrepid::FieldContainer<RealType> refPoints;
00068 Intrepid::FieldContainer<RealType> refWeights;
00069
00070
00071 PHX::MDField<MeshScalarT,Cell,Node,QuadPoint,Dim> surface_Grad_BF;
00072 PHX::MDField<ScalarT,Cell,QuadPoint,Dim> grad_val_qp;
00073
00074 unsigned int worksetSize;
00075 unsigned int numNodes;
00076 unsigned int numQPs;
00077 unsigned int numDims;
00078 unsigned int numPlaneNodes;
00079 unsigned int numPlaneDims;
00080
00081 };
00082 }
00083
00084 #endif