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

SurfaceHDiffusionDefResidual.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_H_DIFFUSION_DEF_RESIDUAL_HPP
00009 #define SURFACE_H_DIFFUSION_DEF_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 SurfaceHDiffusionDefResidual : public PHX::EvaluatorWithBaseImpl<Traits>,
00029                               public PHX::EvaluatorDerived<EvalT, Traits>  {
00030 
00031 public:
00032 
00033   SurfaceHDiffusionDefResidual(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 
00047   // Input:
00049   ScalarT thickness;
00051   Teuchos::RCP<Intrepid::Cubature<RealType> > cubature;
00053   Teuchos::RCP<Intrepid::Basis<RealType, Intrepid::FieldContainer<RealType> > > intrepidBasis;
00055   PHX::MDField<ScalarT,Cell,QuadPoint,Dim> scalarGrad;
00057   PHX::MDField<MeshScalarT,Cell,Node,QuadPoint,Dim> surface_Grad_BF;
00059    PHX::MDField<ScalarT,Cell,QuadPoint> scalarJump;
00061   PHX::MDField<MeshScalarT,Cell,QuadPoint,Dim, Dim> refDualBasis;
00063   PHX::MDField<MeshScalarT,Cell,QuadPoint,Dim> refNormal;
00065   PHX::MDField<MeshScalarT,Cell,QuadPoint,Dim> refArea;
00067   PHX::MDField<ScalarT,Cell,QuadPoint> J;
00069   PHX::MDField<ScalarT,Cell,QuadPoint> transport_;
00071   PHX::MDField<ScalarT,Cell,Node> nodal_transport_;
00072 
00074   PHX::MDField<ScalarT,Cell,QuadPoint> dL_;
00076   PHX::MDField<ScalarT,Cell,QuadPoint> eff_diff_;
00078   PHX::MDField<ScalarT,Cell,QuadPoint> strain_rate_factor_;
00080   PHX::MDField<ScalarT,Cell,QuadPoint> convection_coefficient_;
00082   PHX::MDField<ScalarT,Cell,QuadPoint, Dim> hydro_stress_gradient_;
00084   PHX::MDField<ScalarT,Cell,QuadPoint> eqps_;
00086   PHX::MDField<ScalarT,Cell,QuadPoint> element_length_;
00087 
00088 
00090   PHX::MDField<ScalarT,Cell,QuadPoint,Dim, Dim> defGrad;
00091 
00092 //  // weight times basis function value at integration point
00093 //  PHX::MDField<MeshScalarT,Cell,Node,QuadPoint> wBF;
00094 
00095   //Data from previous time step
00096    std::string transportName, JName, CLGradName, eqpsName;
00097 
00098    // Time
00099    PHX::MDField<ScalarT,Dummy> deltaTime;
00100 
00102   Intrepid::FieldContainer<RealType> refValues;
00103   Intrepid::FieldContainer<RealType> refGrads;
00104   Intrepid::FieldContainer<RealType> refPoints;
00105   Intrepid::FieldContainer<RealType> refWeights;
00106 
00107 
00108 
00109   Intrepid::FieldContainer<ScalarT> artificalDL;
00110   Intrepid::FieldContainer<ScalarT> stabilizedDL;
00111 
00112   Intrepid::FieldContainer<ScalarT> pterm;
00113 
00114   // Temporary FieldContainers
00115   Intrepid::FieldContainer<ScalarT> flux;
00116 
00117   ScalarT trialPbar;
00118 
00119   // Stabilization Parameter
00120   RealType stab_param_;
00121 
00122   // Output:
00123   PHX::MDField<ScalarT,Cell,Node> transport_residual_;
00124 
00125   unsigned int worksetSize;
00126   unsigned int numNodes;
00127   unsigned int numQPs;
00128   unsigned int numDims;
00129   unsigned int numPlaneNodes;
00130   unsigned int numPlaneDims;
00131 
00132   bool haveMech;
00133 };
00134 }
00135 
00136 #endif

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