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

SurfaceScalarJump.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 SURFACESCALARJUMP_HPP
00008 #define SURFACESCALARJUMP_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 "Intrepid_CellTools.hpp"
00015 #include "Intrepid_Cubature.hpp"
00016 
00017 #include "Albany_Layouts.hpp"
00018 
00019 namespace LCM {
00027 template<typename EvalT, typename Traits>
00028 class SurfaceScalarJump : public PHX::EvaluatorWithBaseImpl<Traits>,
00029                           public PHX::EvaluatorDerived<EvalT, Traits>  {
00030 
00031 public:
00032 
00033   SurfaceScalarJump(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   Teuchos::RCP<Intrepid::Cubature<RealType> > cubature;
00050   Teuchos::RCP<Intrepid::Basis<RealType, Intrepid::FieldContainer<RealType> > > intrepidBasis;
00051 
00052 
00054   PHX::MDField<ScalarT,Cell,Vertex> scalar;
00055 
00056   PHX::MDField<ScalarT,Cell,Vertex> nodalTemperature;
00057   PHX::MDField<ScalarT,Cell,Vertex> nodalTransport;
00058   PHX::MDField<ScalarT,Cell,Vertex> nodalHydroStress;
00059   PHX::MDField<ScalarT,Cell,Vertex> nodalPorePressure;
00060 
00061   // Reference Cell FieldContainers
00062   Intrepid::FieldContainer<RealType> refValues;
00063   Intrepid::FieldContainer<RealType> refGrads;
00064   Intrepid::FieldContainer<RealType> refPoints;
00065   Intrepid::FieldContainer<RealType> refWeights;
00066 
00067   // Output:
00068   PHX::MDField<ScalarT,Cell,QuadPoint> scalarJump;
00069   PHX::MDField<ScalarT,Cell,QuadPoint> scalarAverage;
00070 
00071   PHX::MDField<ScalarT,Cell,QuadPoint> midPlaneTemperature;
00072   PHX::MDField<ScalarT,Cell,QuadPoint> midPlaneTransport;
00073   PHX::MDField<ScalarT,Cell,QuadPoint> midPlaneHydroStress;
00074   PHX::MDField<ScalarT,Cell,QuadPoint> midPlanePorePressure;
00075 
00076   PHX::MDField<ScalarT,Cell,QuadPoint> jumpTemperature;
00077   PHX::MDField<ScalarT,Cell,QuadPoint> jumpTransport;
00078   PHX::MDField<ScalarT,Cell,QuadPoint> jumpHydroStress;
00079   PHX::MDField<ScalarT,Cell,QuadPoint> jumpPorePressure;
00080 
00081   bool haveTemperature, haveTransport, haveHydroStress, havePorePressure;
00082 
00083   unsigned int worksetSize;
00084   unsigned int numNodes;
00085   unsigned int numQPs;
00086   unsigned int numDims;
00087   unsigned int numPlaneNodes;
00088   unsigned int numPlaneDims;
00089 };
00090 }
00091 
00092 #endif

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