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

FELIX_StokesL1L2Resid.hpp

Go to the documentation of this file.
00001 /********************************************************************\
00002 *            Albany, Copyright (2010) Sandia Corporation             *
00003 *                                                                    *
00004 * Notice: This computer software was prepared by Sandia Corporation, *
00005 * hereinafter the Contractor, under Contract DE-AC04-94AL85000 with  *
00006 * the Department of Energy (DOE). All rights in the computer software*
00007 * are reserved by DOE on behalf of the United States Government and  *
00008 * the Contractor as provided in the Contract. You are authorized to  *
00009 * use this computer software for Governmental purposes but it is not *
00010 * to be released or distributed to the public. NEITHER THE GOVERNMENT*
00011 * NOR THE CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR      *
00012 * ASSUMES ANY LIABILITY L1L2R THE USE OF THIS SOFTWARE. This notice    *
00013 * including this sentence must appear on any copies of this software.*
00014 *    Questions to Andy Salinger, agsalin@sandia.gov                  *
00015 \********************************************************************/
00016 
00017 
00018 #ifndef FELIX_STOKESL1L2RESID_HPP
00019 #define FELIX_STOKESL1L2RESID_HPP
00020 
00021 #include "Phalanx_ConfigDefs.hpp"
00022 #include "Phalanx_Evaluator_WithBaseImpl.hpp"
00023 #include "Phalanx_Evaluator_Derived.hpp"
00024 #include "Phalanx_MDField.hpp"
00025 #include "Albany_Layouts.hpp"
00026 
00027 namespace FELIX {
00034 template<typename EvalT, typename Traits>
00035 class StokesL1L2Resid : public PHX::EvaluatorWithBaseImpl<Traits>,
00036             public PHX::EvaluatorDerived<EvalT, Traits>  {
00037 
00038 public:
00039 
00040   StokesL1L2Resid(const Teuchos::ParameterList& p,
00041                   const Teuchos::RCP<Albany::Layouts>& dl);
00042 
00043   void postRegistrationSetup(typename Traits::SetupData d,
00044            PHX::FieldManager<Traits>& vm);
00045 
00046   void evaluateFields(typename Traits::EvalData d);
00047 
00048 private:
00049 
00050   typedef typename EvalT::ScalarT ScalarT;
00051   typedef typename EvalT::MeshScalarT MeshScalarT;
00052 
00053   // Input:
00054   PHX::MDField<MeshScalarT,Cell,Node,QuadPoint> wBF;
00055   PHX::MDField<MeshScalarT,Cell,Node,QuadPoint,Dim> wGradBF;
00056   PHX::MDField<ScalarT,Cell,QuadPoint,VecDim> force;
00057 
00058   PHX::MDField<ScalarT,Cell,QuadPoint,VecDim> U;
00059   PHX::MDField<ScalarT,Cell,QuadPoint,VecDim,Dim> Ugrad;
00060   PHX::MDField<ScalarT,Cell,QuadPoint,VecDim> UDot;
00061   PHX::MDField<ScalarT,Cell,QuadPoint> muFELIX;
00062   PHX::MDField<ScalarT,Cell,QuadPoint> epsilonXX;
00063   PHX::MDField<ScalarT,Cell,QuadPoint> epsilonYY;
00064   PHX::MDField<ScalarT,Cell,QuadPoint> epsilonXY;
00065 
00066   // Output:
00067   PHX::MDField<ScalarT,Cell,Node,VecDim> Residual;
00068 
00069   std::size_t numNodes;
00070   std::size_t numQPs;
00071   std::size_t numDims;
00072   std::size_t vecDim;
00073   bool enableTransient;
00074 
00075 };
00076 }
00077 
00078 #endif

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