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

QCAD_ResponseRegionBoundary.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 QCAD_RESPONSEREGIONBOUNDARY_HPP
00008 #define QCAD_RESPONSEREGIONBOUNDARY_HPP
00009 
00010 #include "Phalanx_Evaluator_WithBaseImpl.hpp"
00011 #include "Phalanx_Evaluator_Derived.hpp"
00012 #include "Phalanx_MDField.hpp"
00013 #include "Phalanx_DataLayout.hpp"
00014 #include "Teuchos_ParameterList.hpp"
00015 #include "Albany_ProblemUtils.hpp"
00016 #include "QCAD_MaterialDatabase.hpp"
00017 #include "QCAD_EvaluatorTools.hpp"
00018 #include "QCAD_MeshRegion.hpp"
00019 
00020 namespace QCAD {
00021 
00026   template<typename EvalT, typename Traits>
00027   class ResponseRegionBoundary :
00028     public PHX::EvaluatorWithBaseImpl<Traits>,
00029     public PHX::EvaluatorDerived<EvalT, Traits>,
00030     public EvaluatorTools<EvalT, Traits>
00031   {
00032   public:
00033     typedef typename EvalT::ScalarT ScalarT;
00034     typedef typename EvalT::MeshScalarT MeshScalarT;
00035     
00036     ResponseRegionBoundary(Teuchos::ParameterList& p,
00037            const Teuchos::RCP<Albany::Layouts>& dl);
00038   
00039     void postRegistrationSetup(typename Traits::SetupData d,
00040              PHX::FieldManager<Traits>& vm);
00041   
00042     void evaluateFields(typename Traits::EvalData d);
00043 
00044     void postEvaluate(typename Traits::PostEvalData d);
00045 
00046     Teuchos::RCP<const PHX::FieldTag> getEvaluatedFieldTag() const {
00047       return response_field_tag;
00048     }
00049 
00050     Teuchos::RCP<const PHX::FieldTag> getResponseFieldTag() const {
00051       return response_field_tag;
00052     }
00053     
00054   private:
00055     Teuchos::RCP<const Teuchos::ParameterList> getValidResponseParameters() const;
00056 
00057     std::string outputFilename;
00058     Teuchos::RCP< MeshRegion<EvalT, Traits> > opRegion;
00059 
00060     std::size_t numQPs;
00061     std::size_t numDims;
00062 
00063     PHX::MDField<MeshScalarT,Cell,QuadPoint,Dim> coordVec;
00064     PHX::MDField<MeshScalarT,Cell,QuadPoint> weights;
00065     
00066     //Region boundary: for now just min/max along each coordinate direction
00067     //  * just MeshScalarTs - no derivative information for region boundaries yet, as
00068     //  * it's not clear this should be done and whether it's ever desired
00069     std::vector<MeshScalarT> minVals, maxVals;
00070 
00071 
00073     Teuchos::RCP<QCAD::MaterialDatabase> materialDB;
00074 
00075     Teuchos::RCP< PHX::Tag<ScalarT> > response_field_tag;
00076   };
00077   
00078 }
00079 
00080 #endif

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