44 #ifndef __Panzer_ResponseFactory_BCStrategyAdapter_hpp__
45 #define __Panzer_ResponseFactory_BCStrategyAdapter_hpp__
53 #include "Panzer_BCStrategy.hpp"
57 #include "Panzer_Normals.hpp"
60 #include "Phalanx_Evaluator_WithBaseImpl.hpp"
61 #include "Phalanx_FieldManager.hpp"
62 #include "Phalanx_MDField.hpp"
70 namespace response_bc_adapters {
74 template <
typename EvalT>
77 std::vector<std::pair<std::string,Teuchos::RCP<ResponseEvaluatorFactory_TemplateManager<panzer::Traits> > > >
refVec_;
100 for(std::size_t i=0;i<
refVec_.size();i++) {
104 if(respEvalFact!=Teuchos::null && respEvalFact->typeSupported())
105 respEvalFact->buildAndRegisterEvaluators(
refVec_[i].first,fm,side_pb,user_data);
128 const std::map<int,Teuchos::RCP<panzer::IntegrationRule> > & int_rules = side_pb.
getIntegrationRules();
130 itr!=int_rules.end();++itr) {
135 p.
set<std::string>(
"Name",
"Side Normal");
138 p.set<
bool>(
"Normalize",
true);
142 fm.template registerEvaluator<EvalT>(op);
155 typedef std::vector<std::pair<std::string,Teuchos::RCP<ResponseEvaluatorFactory_TemplateManager<panzer::Traits> > > >
RespFact_TM_Vector;
162 template <
typename EvalT>
169 typedef std::vector<std::pair<std::string,Teuchos::RCP<ResponseEvaluatorFactory_TemplateManager<panzer::Traits> > > >
RespFact_TM_Vector;
181 BCHashMap::const_iterator itr =
hashMap_.find(bc);
185 bcstrategy_tm->buildObjects(builder);
187 return bcstrategy_tm;
Interface for constructing a BCStrategy_TemplateManager.
const RespFact_TM_Vector & vec_
Object that contains information on the physics and discretization of a block of elements with the SA...
virtual void setup(const panzer::PhysicsBlock &, const Teuchos::ParameterList &)
const panzer::CellData & cellData() const
ParameterList & set(std::string const &name, T const &value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
Teuchos::RCP< panzer::BCStrategy_TemplateManager< panzer::Traits > > buildBCStrategy(const panzer::BC &bc, const Teuchos::RCP< panzer::GlobalData > &) const
void buildAndRegisterClosureModelEvaluatorsForType(PHX::FieldManager< panzer::Traits > &fm, const panzer::ClosureModelFactory_TemplateManager< panzer::Traits > &factory, const Teuchos::ParameterList &models, const Teuchos::ParameterList &user_data) const
std::vector< std::pair< std::string, Teuchos::RCP< ResponseEvaluatorFactory_TemplateManager< panzer::Traits > > > > refVec_
ResponseFactory_BCStrategyAdapter(const panzer::BC &bc, const std::vector< std::pair< std::string, Teuchos::RCP< ResponseEvaluatorFactory_TemplateManager< panzer::Traits > > > > &refVec)
void buildAndRegisterGatherAndOrientationEvaluators(PHX::FieldManager< panzer::Traits > &fm, const panzer::LinearObjFactory< panzer::Traits > &lof, const Teuchos::ParameterList &user_data) const
BCFactoryResponse(const BCHashMap &hashMap)
BCStrategy_TM_ResponseAdapterBuilder(const BC &bc, const RespFact_TM_Vector &vec)
void buildAndRegisterDOFProjectionsToIPEvaluators(PHX::FieldManager< panzer::Traits > &fm, const Teuchos::Ptr< const panzer::LinearObjFactory< panzer::Traits > > &lof, const Teuchos::ParameterList &user_data) const
virtual void buildAndRegisterScatterEvaluators(PHX::FieldManager< panzer::Traits > &, const panzer::PhysicsBlock &, const LinearObjFactory< panzer::Traits > &, const Teuchos::ParameterList &) const
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
virtual ~ResponseFactory_BCStrategyAdapter()
Teuchos::RCP< BCStrategyBase > build() const
virtual void buildAndRegisterEvaluators(PHX::FieldManager< panzer::Traits > &fm, const panzer::PhysicsBlock &side_pb, const panzer::ClosureModelFactory_TemplateManager< panzer::Traits > &factory, const Teuchos::ParameterList &models, const Teuchos::ParameterList &user_data) const
std::vector< std::pair< std::string, Teuchos::RCP< ResponseEvaluatorFactory_TemplateManager< panzer::Traits > > > > RespFact_TM_Vector
const std::map< int, Teuchos::RCP< panzer::IntegrationRule > > & getIntegrationRules() const
Returns the unique set of point rules, key is the unique panzer::PointRule::name() ...
Stores input information for a boundary condition.
std::unordered_map< BC, Teuchos::RCP< RespFact_TM_Vector >, BC::BCHash, BC::BCEquality > BCHashMap
#define TEUCHOS_ASSERT(assertion_test)
std::vector< std::pair< std::string, Teuchos::RCP< ResponseEvaluatorFactory_TemplateManager< panzer::Traits > > > > RespFact_TM_Vector
void buildAndRegisterEquationSetEvaluators(PHX::FieldManager< panzer::Traits > &fm, const Teuchos::ParameterList &user_data) const
virtual void buildAndRegisterGatherAndOrientationEvaluators(PHX::FieldManager< panzer::Traits > &fm, const panzer::PhysicsBlock &side_pb, const LinearObjFactory< panzer::Traits > &lof, const Teuchos::ParameterList &user_data) const