Vuk Milisic wrote:
> 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 ?
>
Look at the Stokes demo,
demo/pde/stokes/taylor-hood/cpp
Garth
>
> 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/
> -----------------------------------
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> DOLFIN-dev mailing list
> [email protected]
> http://www.fenics.org/mailman/listinfo/dolfin-dev
_______________________________________________
DOLFIN-dev mailing list
[email protected]
http://www.fenics.org/mailman/listinfo/dolfin-dev