oomph::FluidInterfaceAdditionalValues< SolubleSurfactantTransportInterfaceElement > Class Reference

#include <soluble_surfactant_transport_equations.h>

Public Member Functions

 FluidInterfaceAdditionalValues ()
 
unsigned nadditional_values (const unsigned &n)
 
void setup_equation_indices (SolubleSurfactantTransportInterfaceElement *const &element_pt, const unsigned &id)
 

Detailed Description

============================================================================= This is the policy class for the surfactanttransport equations which require one additional value for the surface concentration

Constructor & Destructor Documentation

◆ FluidInterfaceAdditionalValues()

Member Function Documentation

◆ nadditional_values()

558 {return 1;}

◆ setup_equation_indices()

void oomph::FluidInterfaceAdditionalValues< SolubleSurfactantTransportInterfaceElement >::setup_equation_indices ( SolubleSurfactantTransportInterfaceElement *const &  element_pt,
const unsigned id 
)
inline
563  {
564  const unsigned n_node = element_pt->nnode();
565  Vector<unsigned> c_index(n_node);
566  for(unsigned n=0;n<n_node;n++)
567  {
568  c_index[n] =
569  dynamic_cast<BoundaryNodeBase*>(element_pt->node_pt(n))
570  ->index_of_first_value_assigned_by_face_element(id);
571  }
572 
573  element_pt->set_c_index(c_index);
574  //This is a hack
575  const unsigned C_bulk_index =
576  dynamic_cast<AdvectionDiffusionReactionEquations<2,2>*>(
577  element_pt->bulk_element_pt())->c_index_adv_diff_react(0);
578  element_pt->set_c_bulk_index(C_bulk_index);
579 
580  }
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11

References oomph::FaceElement::bulk_element_pt(), n, oomph::FiniteElement::nnode(), oomph::FiniteElement::node_pt(), oomph::SolubleSurfactantTransportInterfaceElement::set_c_bulk_index(), and oomph::SurfactantTransportInterfaceElement::set_c_index().


The documentation for this class was generated from the following file: