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

Aeras_ShallowWaterResid.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 #ifndef AERAS_SHALLOWWATERRESID_HPP
00008 #define AERAS_SHALLOWWATERRESID_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 "Albany_Layouts.hpp"
00015 #include "Sacado_ParameterAccessor.hpp"
00016 
00017 namespace Aeras {
00025 template<typename EvalT, typename Traits>
00026 class ShallowWaterResid : public PHX::EvaluatorWithBaseImpl<Traits>,
00027                    public PHX::EvaluatorDerived<EvalT, Traits>,
00028                    public Sacado::ParameterAccessor<EvalT, SPL_Traits>  {
00029 
00030 public:
00031   typedef typename EvalT::ScalarT ScalarT;
00032   typedef typename EvalT::MeshScalarT MeshScalarT;
00033 
00034   ShallowWaterResid(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   ScalarT& getValue(const std::string &n);
00043 
00044 private:
00045 
00046   // Input:
00047   PHX::MDField<MeshScalarT,Cell,Node,QuadPoint> wBF;
00048   PHX::MDField<MeshScalarT,Cell,Node,QuadPoint,Dim> wGradBF;
00049 
00050   PHX::MDField<ScalarT,Cell,QuadPoint,VecDim> U;
00051   PHX::MDField<ScalarT,Cell,QuadPoint,VecDim,Dim> Ugrad;
00052   PHX::MDField<ScalarT,Cell,QuadPoint,VecDim> UDot;
00053   PHX::MDField<ScalarT,Cell,QuadPoint> surfHeight;
00054 
00055   PHX::MDField<MeshScalarT,Cell,QuadPoint> weighted_measure;
00056 
00057   PHX::MDField<MeshScalarT,Cell,QuadPoint,Dim,Dim> jacobian;
00058   PHX::MDField<MeshScalarT,Cell,QuadPoint,Dim,Dim> jacobian_inv;
00059   Intrepid::FieldContainer<RealType>    grad_at_cub_points;
00060 
00061   // Output:
00062   PHX::MDField<ScalarT,Cell,Node,VecDim> Residual;
00063 
00064   ScalarT gravity; // gravity parameter
00065   bool usePrescribedVelocity;
00066 
00067   Intrepid::FieldContainer<RealType>    val_at_cub_points;
00068   Teuchos::RCP<Intrepid::Basis<RealType, Intrepid::FieldContainer<RealType> > > intrepidBasis;
00069   Teuchos::RCP<Intrepid::Cubature<RealType> > cubature;
00070   Intrepid::FieldContainer<RealType>    refPoints;
00071   Intrepid::FieldContainer<RealType>    refWeights;
00072 
00073   std::size_t numNodes;
00074   std::size_t numQPs;
00075   std::size_t numDims;
00076   std::size_t vecDim;
00077   std::size_t spatialDim;
00078 };
00079 }
00080 
00081 #endif

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