Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef SURFACE_L2_PROJECTION_RESIDUAL_HPP
00009 #define SURFACE_L2_PROJECTION_RESIDUAL_HPP
00010
00011 #include "Phalanx_ConfigDefs.hpp"
00012 #include "Phalanx_Evaluator_WithBaseImpl.hpp"
00013 #include "Phalanx_Evaluator_Derived.hpp"
00014 #include "Phalanx_MDField.hpp"
00015 #include "Intrepid_CellTools.hpp"
00016 #include "Intrepid_Cubature.hpp"
00017
00018 #include "Albany_Layouts.hpp"
00019
00020 namespace LCM {
00028 template<typename EvalT, typename Traits>
00029 class SurfaceL2ProjectionResidual : public PHX::EvaluatorWithBaseImpl<Traits>,
00030 public PHX::EvaluatorDerived<EvalT, Traits> {
00031
00032 public:
00033
00034 SurfaceL2ProjectionResidual(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 private:
00043
00044 typedef typename EvalT::ScalarT ScalarT;
00045 typedef typename EvalT::MeshScalarT MeshScalarT;
00046
00047
00048
00050 RealType thickness;
00052 Teuchos::RCP<Intrepid::Cubature<RealType> > cubature;
00054 Teuchos::RCP<Intrepid::Basis<RealType, Intrepid::FieldContainer<RealType> > > intrepidBasis;
00056
00058 PHX::MDField<MeshScalarT,Cell,Node,QuadPoint,Dim> surface_Grad_BF;
00060 PHX::MDField<MeshScalarT,Cell,QuadPoint,Dim, Dim> refDualBasis;
00062 PHX::MDField<MeshScalarT,Cell,QuadPoint,Dim> refNormal;
00064 PHX::MDField<MeshScalarT,Cell,QuadPoint,Dim> refArea;
00066 PHX::MDField<ScalarT,Cell,QuadPoint,Dim, Dim> Cauchy_stress_;
00068 PHX::MDField<ScalarT,Cell,QuadPoint,Dim> detF_;
00070 PHX::MDField<ScalarT,Cell,QuadPoint,Dim> projected_tau_;
00071
00072
00073
00074
00076 Intrepid::FieldContainer<RealType> refValues;
00077 Intrepid::FieldContainer<RealType> refGrads;
00078 Intrepid::FieldContainer<RealType> refPoints;
00079 Intrepid::FieldContainer<RealType> refWeights;
00080
00081
00082
00083 PHX::MDField<ScalarT,Cell,Node> projection_residual_;
00084
00085 unsigned int worksetSize;
00086 unsigned int numNodes;
00087 unsigned int numQPs;
00088 unsigned int numDims;
00089 unsigned int numPlaneNodes;
00090 unsigned int numPlaneDims;
00091
00092 };
00093 }
00094
00095 #endif