1 #include "../../include/userInputParameters.h" 11 std::vector<std::string> temp;
13 for (
unsigned int i=0; i<list_of_BCs.size(); i++){
15 temp = dealii::Utilities::split_string_list(list_of_BCs[i]);
18 if (temp.size() == 1){
19 for (
unsigned int boundary=0; boundary<(dim*2-1); boundary++){
20 temp.push_back(temp[0]);
25 for (
unsigned int i=0; i<(2*dim); i++){
26 if (boost::iequals(temp[i],
"NATURAL")){
30 else if (boost::iequals(temp[i],
"PERIODIC")){
34 else if (boost::iequals(temp[i],
"NON_UNIFORM_DIRICHLET")){
38 else if (boost::iequals(temp[i].substr(0,9),
"DIRICHLET")){
40 std::string dirichlet_val = temp[i].substr(10,temp[i].size());
41 dirichlet_val = dealii::Utilities::trim(dirichlet_val);
42 newBC.
var_BC_val.push_back(dealii::Utilities::string_to_double(dirichlet_val));
44 else if (boost::iequals(temp[i].substr(0,7),
"NEUMANN")){
46 std::string neumann_val = temp[i].substr(8,temp[i].size());
47 neumann_val = dealii::Utilities::trim(neumann_val);
48 newBC.
var_BC_val.push_back(dealii::Utilities::string_to_double(neumann_val));
51 std::cout << temp[i].substr(0,8) << std::endl;
52 std::cout <<
"Error: Boundary conditions specified improperly." << std::endl;
56 BC_list.push_back(newBC);
82 #include "../../include/userInputParameters_template_instantiations.h"
std::vector< double > var_BC_val
std::vector< BC_type > var_BC_type