• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

SurfaceDiffusionResidual.hpp

Go to the documentation of this file.
00001 //*****************************************************************//
00002 //    Albany 2.0:  Copyright 2012 Sandia Corporation               //
00003 //    This Software is released under the BSD license detailed     //
00004 //    in the file "license.txt" in the top-level Albany directory  //
00005 //*****************************************************************//
00006 
00007 
00008 #ifndef SURFACE_DIFFUSION_RESIDUAL_HPP
00009 #define SURFACE_DIFFUSION_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 {
00027 template<typename EvalT, typename Traits>
00028 class SurfaceDiffusionResidual : public PHX::EvaluatorWithBaseImpl<Traits>,
00029                               public PHX::EvaluatorDerived<EvalT, Traits>  {
00030 
00031 public:
00032 
00033   SurfaceDiffusionResidual(const Teuchos::ParameterList& p,
00034                         const Teuchos::RCP<Albany::Layouts>& dl);
00035 
00036   void postRegistrationSetup(typename Traits::SetupData d,
00037            PHX::FieldManager<Traits>& vm);
00038 
00039   void evaluateFields(typename Traits::EvalData d);
00040 
00041 private:
00042 
00043   typedef typename EvalT::ScalarT ScalarT;
00044   typedef typename EvalT::MeshScalarT MeshScalarT;
00045 
00046   // Input:
00048   ScalarT thickness;
00050   Teuchos::RCP<Intrepid::Cubature<RealType> > cubature;
00052   Teuchos::RCP<Intrepid::Basis<RealType, Intrepid::FieldContainer<RealType> > > intrepidBasis;
00054   PHX::MDField<ScalarT,Cell,QuadPoint,Dim> scalarGrad;
00056     PHX::MDField<ScalarT,Cell,QuadPoint> scalarJump;
00058   PHX::MDField<ScalarT,Cell,QuadPoint,Dim, Dim> currentBasis;
00060   PHX::MDField<ScalarT,Cell,QuadPoint,Dim, Dim> refDualBasis;
00062   PHX::MDField<ScalarT,Cell,QuadPoint,Dim> refNormal;
00064   PHX::MDField<ScalarT,Cell,QuadPoint,Dim> refArea;
00065 
00066 //  // weight times basis function value at integration point
00067 //  PHX::MDField<MeshScalarT,Cell,Node,QuadPoint> wBF;
00068 
00070   Intrepid::FieldContainer<RealType> refValues;
00071   Intrepid::FieldContainer<RealType> refGrads;
00072   Intrepid::FieldContainer<RealType> refPoints;
00073   Intrepid::FieldContainer<RealType> refWeights;
00074 
00075   // Output:
00076   PHX::MDField<ScalarT,Cell,Node> scalarResidual;
00077 
00078   unsigned int worksetSize;
00079   unsigned int numNodes;
00080   unsigned int numQPs;
00081   unsigned int numDims;
00082   unsigned int numPlaneNodes;
00083   unsigned int numPlaneDims;
00084 };
00085 }
00086 
00087 #endif

Generated on Wed Mar 26 2014 18:36:44 for Albany: a Trilinos-based PDE code by  doxygen 1.7.1