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

GradientElementLength.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 #if !defined(LCM_Gradient_Element_Length_hpp)
00008 #define LCM_Gradient_Element_Length_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 
00015 #include "Albany_Layouts.hpp"
00016 
00017 namespace LCM {
00023   template<typename EvalT, typename Traits>
00024   class GradientElementLength : public PHX::EvaluatorWithBaseImpl<Traits>,
00025                                 public PHX::EvaluatorDerived<EvalT, Traits>  {
00026 
00027   public:
00028 
00032     GradientElementLength(const Teuchos::ParameterList& p,
00033                           const Teuchos::RCP<Albany::Layouts>& dl);
00034 
00038     void postRegistrationSetup(typename Traits::SetupData d,
00039                                PHX::FieldManager<Traits>& vm);
00040 
00044     void evaluateFields(typename Traits::EvalData d);
00045 
00046   private:
00047 
00048     typedef typename EvalT::ScalarT ScalarT;
00049     typedef typename EvalT::MeshScalarT MeshScalarT;
00050 
00054     PHX::MDField<ScalarT,Cell,QuadPoint,Dim> unit_grad_;
00055 
00059     PHX::MDField<MeshScalarT,Cell,Node,QuadPoint,Dim> grad_bf_;
00060 
00064     PHX::MDField<ScalarT,Cell,QuadPoint> element_length_;
00065 
00069     std::size_t num_nodes_;
00070 
00074     std::size_t num_pts_;
00075 
00079     std::size_t num_dims_;
00080   };
00081 }
00082 
00083 #endif

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