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

QCAD_SchrodingerResid.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_SCHRODINGERRESID_HPP
00008 #define QCAD_SCHRODINGERRESID_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 "Albany_Layouts.hpp"
00016 
00017 #include "QCAD_MaterialDatabase.hpp"
00018 
00019 namespace QCAD {
00020 
00021 template<typename EvalT, typename Traits>
00022 class SchrodingerResid : public PHX::EvaluatorWithBaseImpl<Traits>,
00023         public PHX::EvaluatorDerived<EvalT, Traits>  {
00024 
00025 public:
00026 
00027   SchrodingerResid(const Teuchos::ParameterList& p,
00028                  const Teuchos::RCP<Albany::Layouts>& dl);
00029 
00030   void postRegistrationSetup(typename Traits::SetupData d,
00031                       PHX::FieldManager<Traits>& vm);
00032 
00033   void evaluateFields(typename Traits::EvalData d);
00034 
00035 private:
00036 
00037   typedef typename EvalT::ScalarT ScalarT;
00038   typedef typename EvalT::MeshScalarT MeshScalarT;
00039 
00041   double getInvEffMassFiniteWall(const MeshScalarT* coord);
00042   double getInvEffMass1DMosCap(const MeshScalarT* coord);
00043   
00044   // Input:
00045   std::size_t numQPs;
00046   std::size_t numDims;
00047 
00048   PHX::MDField<MeshScalarT,Cell,Node,QuadPoint> wBF;
00049   PHX::MDField<ScalarT,Cell,QuadPoint> psi;
00050   PHX::MDField<ScalarT,Cell,QuadPoint> psiDot;
00051   PHX::MDField<MeshScalarT,Cell,Node,QuadPoint,Dim> wGradBF;
00052   PHX::MDField<ScalarT,Cell,QuadPoint,Dim> psiGrad;
00053   PHX::MDField<ScalarT,Cell,QuadPoint> V;
00054   PHX::MDField<MeshScalarT,Cell,QuadPoint,Dim> coordVec;
00055   
00056   bool enableTransient;
00057   bool havePotential;
00058   bool bOnlyInQuantumBlocks;
00059 
00060   // Output:
00061   PHX::MDField<ScalarT,Cell,Node> psiResidual;
00062 
00063   // Intermediate workspace
00064   Intrepid::FieldContainer<ScalarT> psiGradWithMass;
00065   Intrepid::FieldContainer<ScalarT> psiV;
00066   Intrepid::FieldContainer<ScalarT> V_barrier;
00067 
00069   double energy_unit_in_eV, length_unit_in_m;
00070   
00072   Teuchos::RCP<QCAD::MaterialDatabase> materialDB;
00073   
00075   std::string potentialType;
00076   double barrEffMass; // in [m0]
00077   double barrWidth;   // in length_unit_in_m
00078   double wellEffMass;
00079   double wellWidth; 
00080 
00082   double oxideWidth;
00083   double siliconWidth;
00084   
00085   double hbar2_over_2m0;  // in energy_unit_in_eV
00086     
00087 };
00088 
00089 }
00090 
00091 #endif

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