No_Slip Namespace Reference

Functions

void no_slip_condition_first (Node *node_pt)
 Function that is used to set and update the no-slip boundary condition. More...
 
void no_slip_condition_second (Node *node_pt)
 

Function Documentation

◆ no_slip_condition_first()

void No_Slip::no_slip_condition_first ( Node node_pt)

Function that is used to set and update the no-slip boundary condition.

278  {
279  //Cast the node to a spine node
280  SpineNode* spine_node_pt = static_cast<SpineNode*>(node_pt);
281  //Get the wall coordinate
282  Vector<double> s(1);
283  s[0] = spine_node_pt->spine_pt()->geom_parameter(0);
284  // Prepare the storage for the derivative
285  DenseMatrix<double> drdxi(1,2);
286  //Get the derivative
287  dynamic_cast<FSIHermiteBeamElement*>
288  (spine_node_pt->spine_pt()->geom_object_pt(0))->
289  dposition_dlagrangian_at_local_coordinate(s,drdxi);
290 
291  for(unsigned i=0;i<2;i++) {*node_pt->value_pt(i) = -drdxi(0,i);}
292  }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
double * value_pt(const unsigned &i) const
Definition: nodes.h:324
Definition: beam_elements.h:352
Definition: spines.h:328
Spine *& spine_pt()
Access function to spine.
Definition: spines.h:372
GeomObject *& geom_object_pt(const unsigned &i)
Definition: spines.h:244
double & geom_parameter(const unsigned &i)
Definition: spines.h:287
RealScalar s
Definition: level1_cplx_impl.h:130

References oomph::Spine::geom_object_pt(), oomph::Spine::geom_parameter(), i, s, oomph::SpineNode::spine_pt(), and oomph::Data::value_pt().

Referenced by AirwayReopeningProblem< ELEMENT >::AirwayReopeningProblem().

◆ no_slip_condition_second()

void No_Slip::no_slip_condition_second ( Node node_pt)
295  {
296  //Cast the node to a spine node
297  SpineNode* spine_node_pt = static_cast<SpineNode*>(node_pt);
298  //Get the wall coordinate
299  Vector<double> s(1);
300  s[0] = spine_node_pt->spine_pt()->geom_parameter(1);
301  // Prepare the storage for the derivative
302  DenseMatrix<double> drdxi(1,2);
303  //Get the derivative
304  dynamic_cast<FSIHermiteBeamElement*>
305  (spine_node_pt->spine_pt()->geom_object_pt(1))->
306  dposition_dlagrangian_at_local_coordinate(s,drdxi);
307 
308  for(unsigned i=0;i<2;i++) {*node_pt->value_pt(i) = -drdxi(0,i);}
309  }

References oomph::Spine::geom_object_pt(), oomph::Spine::geom_parameter(), i, s, oomph::SpineNode::spine_pt(), and oomph::Data::value_pt().

Referenced by AirwayReopeningProblem< ELEMENT >::AirwayReopeningProblem().