← Back to team overview

dolfin team mailing list archive

vector elements/single dof imposed

 

If I want to fix a boundary condition on a single component of a vector element
u[0] and not touch the other components how should I define the heritated
class of Function ?


if I do
/class Slide : public Function
 {
 public:

   Slide(Mesh& mesh) : Function(mesh) {}

   void eval(real* values, const real* x) const
   {
     //      values[0] = 0.0;
     values[1] = 0.0;
     values[2] = 0.0;
   }

 };/
It fixes also the first component. How should I proceed ?

Thanks,


VM

--



-----------------------------------
Vuk Milisic
Chargé de Recherche
LJK-IMAG UMR 5523
51, rue des Mathematiques - B. P. 53 38041 Grenoble Cedex 9 France Office n° 66
Tel:  +33 4 76 63 57 38
Fax:  +33 4 76 63 12 63
http://ljk.imag.fr/membres/Vuk.Milisic/
-----------------------------------


Follow ups