61 const std::vector<std::string>& vFctName = m_spMaster->symb_fcts();
63 UG_THROW(
"NavierStokesInflow::add: Symbolic names for"
64 " velocity and pressure not set. Please set them first.");
66 std::string innerSubsets;
67 for(
size_t s = 0;
s < m_spMaster->symb_subsets().size(); ++
s){
68 if(
s > 0) innerSubsets.append(
",");
69 innerSubsets.append(m_spMaster->symb_subsets()[
s]);
73 m_spNeumannDisc->add(user, subsetsBND, innerSubsets.c_str());
76 for(
int i=0;i<TDomain::dim; ++i)
78 if(i>0) velNames.append(
",");
79 velNames.append(vFctName[i]);
81 m_spDirichletConstraint->add(user.template cast_dynamic<
UserData<
MathVector<dim>, dim> >(), velNames.c_str(), subsetsBND);
void add(SmartPtr< CplUserData< MathVector< dim >, dim > > user, const char *subsetsBND)
sets the velocity to a given value
Definition inflow_fv_impl.h:59