44 #include "Teuchos_Assert.hpp" 
   61            "Error - the parameter \"Number of Boundary Conditions\" is no longer valid for the boundary condition sublist.  Please remove this from your input file!");
 
   63   std::size_t bc_index = 0;
 
   64   for (ParameterList::ConstIterator bc_pl=p.
begin(); bc_pl != p.
end(); ++bc_pl,++bc_index) {
 
   66         "Error - All objects in the boundary condition sublist must be BC sublists!" );
 
   67     ParameterList& sublist = Teuchos::getValue<Teuchos::ParameterList>(bc_pl->second);
 
   79          std::string sideset_id,
 
   80          std::string element_block_id,
 
   81          std::string eq_set_name,
 
   82          std::string strategy) :
 
   85   m_sideset_id(sideset_id),
 
   86   m_element_block_id(element_block_id),
 
   87   m_equation_set_name(eq_set_name),
 
   96          std::string sideset_id,
 
   97          std::string element_block_id,
 
   98          std::string eq_set_name,
 
  103   m_sideset_id(sideset_id),
 
  104   m_element_block_id(element_block_id),
 
  105   m_equation_set_name(eq_set_name),
 
  119   this->validateParameters(*params);
 
  122   std::string type = params->
get<std::string>(
"Type");
 
  123   if (type == 
"Dirichlet")
 
  125   else if (type == 
"Neumann")
 
  127   else if (type == 
"Interface")
 
  130   m_sideset_id = params->
get<std::string>(
"Sideset ID");
 
  131   m_element_block_id = params->
get<std::string>(
"Element Block ID");
 
  132   m_equation_set_name = params->
get<std::string>(
"Equation Set Name");
 
  133   m_strategy = params->
get<std::string>(
"Strategy");
 
  134   m_params = Teuchos::sublist(params,
"Data");
 
  135   if (type == 
"Interface") {
 
  136      m_element_block_id2 = params->
get<std::string>(
"Element Block ID2");
 
  137      m_equation_set_name2 = params->
get<std::string>(
"Equation Set Name2");
 
  150   this->validateParameters(*params);
 
  153   std::string type = params->
get<std::string>(
"Type");
 
  154   if (type == 
"Dirichlet")
 
  156   else if (type == 
"Neumann")
 
  158   else if (type == 
"Interface")
 
  161   m_sideset_id = params->
get<std::string>(
"Sideset ID");
 
  162   m_element_block_id = params->
get<std::string>(
"Element Block ID");
 
  163   m_equation_set_name = params->
get<std::string>(
"Equation Set Name");
 
  164   m_strategy = params->
get<std::string>(
"Strategy");
 
  165   m_params = Teuchos::sublist(params,
"Data");
 
  166   if (type == 
"Interface") {
 
  167     m_element_block_id2 = params->
get<std::string>(
"Element Block ID2");
 
  168     m_equation_set_name2 = params->
get<std::string>(
"Equation Set Name2");
 
  202   return m_element_block_id;
 
  209   return m_element_block_id2;
 
  216   return m_equation_set_name;
 
  223   return m_equation_set_name2;
 
  259   std::ostringstream os;
 
  260   os << 
"BC(" <<  bcID() << 
")";
 
  270   os << 
"panzer::BC" << endl;
 
  272   os << 
"  BC ID =" << m_bc_id << endl;
 
  284   os << 
"  Type = " << type << endl;
 
  285   os << 
"  Side Set ID = " << m_sideset_id << endl;
 
  286   os << 
"  Element Block ID = " << m_element_block_id << endl;
 
  288     os << 
"  Second Element Block ID = " << m_element_block_id2 << endl;
 
  289   os << 
"  Strategy = " << m_strategy << endl;
 
  290   os << 
"  Variable Name(s) = " << m_equation_set_name << endl;
 
  292     os << 
"  Second Variable Name(s) = " << m_equation_set_name2 << endl;
 
  293   os << 
"  Strategy Name = " << m_strategy;
 
  296     os << endl << m_params;
 
  306   valid_params.
set<std::string>(
"Type", 
"Dirichlet");
 
  307   valid_params.
set<std::string>(
"Sideset ID", 
"???");
 
  308   valid_params.
set<std::string>(
"Element Block ID", 
"???");
 
  309   valid_params.
set<std::string>(
"Element Block ID2", 
"???");
 
  310   valid_params.
set<std::string>(
"Equation Set Name", 
"???");
 
  311   valid_params.
set<std::string>(
"Equation Set Name2", 
"???");
 
  312   valid_params.
set<std::string>(
"Strategy", 
"???");
 
ConstIterator end() const 
 
BCType
Type of boundary condition. 
 
ParameterList & disableRecursiveValidation()
 
std::string elementBlockID() const 
Returns the element block id associated with this sideset. 
 
BC(std::size_t bc_id, BCType bc_type, std::string sideset_id, std::string element_block_id, std::string equation_set_name, std::string strategy)
Ctor. 
 
T & get(const std::string &name, T def_value)
 
ParameterList & set(std::string const &name, T const &value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
 
Teuchos::RCP< Teuchos::ParameterList > m_params
 
bool is_null(const std::shared_ptr< T > &p)
 
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
 
void validateParameters(Teuchos::ParameterList &p) const 
 
bool isParameter(const std::string &name) const 
 
std::string identifier() const 
A unique string identifier for this boundary condition. 
 
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
 
std::string equationSetName2() const 
Returns the second unknown name/keyword. 
 
std::string strategy() const 
Returns the keyword used to construct a bc strategy. 
 
void validateParametersAndSetDefaults(ParameterList const &validParamList, int const depth=1000)
 
BCType bcType() const 
Returns the boundary condition type (Dirichlet or Neumann or Interface). 
 
ConstIterator begin() const 
 
std::string elementBlockID2() const 
Returns the second element block id associated with this sideset. 
 
void print(std::ostream &os) const 
Print object using an ostream. 
 
std::string equationSetName() const 
Returns the unknown name/keyword. 
 
std::size_t bcID() const 
Returns a unique identifier for this bc - needed for unique parameter setting in LOCA and for map key...
 
Teuchos::RCP< const Teuchos::ParameterList > params() const 
Returns a parameter list with user defined parameters for bc. 
 
std::string sidesetID() const 
Returns the set id. 
 
std::ostream & operator<<(std::ostream &os, const AssemblyEngineInArgs &in)
 
ParameterList & sublist(const std::string &name, bool mustAlreadyExist=false, const std::string &docString="")
 
WorksetDescriptor bcDescriptor(const panzer::BC &bc)
 
Stores input information for a boundary condition. 
 
Teuchos::RCP< Teuchos::ParameterList > nonconstParams() const 
Returns a nonconst parameter list with user defined parameters for bc. Nonconst is meant to be used f...
 
Teuchos::RCP< panzer::GlobalData > global_data() const 
Returns the RCP to the global data.