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

QCAD_Permittivity.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_PERMITTIVITY_HPP
00008 #define QCAD_PERMITTIVITY_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 
00015 #include "Teuchos_ParameterList.hpp"
00016 #include "Epetra_Vector.h"
00017 #include "Sacado_ParameterAccessor.hpp"
00018 #include "Stokhos_KL_ExponentialRandomField.hpp"
00019 #include "Teuchos_Array.hpp"
00020 
00021 #include "Albany_Layouts.hpp"
00022 
00023 #include "QCAD_MaterialDatabase.hpp"
00024 
00025 namespace QCAD {
00030   template<typename EvalT, typename Traits>
00031   class Permittivity : 
00032     public PHX::EvaluatorWithBaseImpl<Traits>,
00033     public PHX::EvaluatorDerived<EvalT, Traits>,
00034     public Sacado::ParameterAccessor<EvalT, SPL_Traits> 
00035   {
00036   public:
00037     typedef typename EvalT::ScalarT ScalarT;
00038     typedef typename EvalT::MeshScalarT MeshScalarT;
00039 
00040     Permittivity(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     ScalarT& getValue(const std::string &n);
00049 
00050   private:
00051 
00053     Teuchos::RCP<const Teuchos::ParameterList>
00054         getValidPermittivityParameters() const;
00055 
00056     std::size_t numQPs;
00057     std::size_t numDims;
00058     PHX::MDField<ScalarT,Cell,QuadPoint> permittivity;
00059     PHX::MDField<ScalarT,Cell,QuadPoint> Temp;
00060     PHX::MDField<MeshScalarT,Cell,QuadPoint,Dim> coordVec;
00061 
00063     std::string typ;    // permittivity type
00064     bool temp_dependent;    // is permittivity temperature dependent ?
00065     bool position_dependent;  // is permittivity position dependent ?
00066 
00068     ScalarT constant_value;   // for constant permittivity
00069     ScalarT factor;     // for temperature-dependent permittivity
00070 
00072     Teuchos::RCP<QCAD::MaterialDatabase> materialDB;
00073     
00075     double oxideWidth;
00076     double siliconWidth;
00077     
00078   };
00079   
00080 }
00081 
00082 #endif

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