← Back to team overview

dolfin team mailing list archive

Re: Dolfin---convection term

 

Hi Samir!

Which version of DOLFIN are you using?

If you are using the convection-diffusion module in the latest
version, just change in src/demo/solvers/convdiff/main.cpp to

class Convection : public Function
{
  real operator() (const Point& p, unsigned int i) const
  {
    if ( i == 0 )
      return p.y;
    else
      return 0.0;
  }
};

/Anders

On Sun, Jun 19, 2005 at 01:21:49AM +0200, samir naqos wrote:
> Hi Anders,
> 
> I would like to set the convection term to 
> 
> b = (y,0)
> 
> any idea on how to set it in dolfin.  
> 
> 
> 	
> 
> 	
> 		
> ___________________________________________________________________________ 
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
> Téléchargez cette version sur http://fr.messenger.yahoo.com
> 

-- 
Anders Logg
Research Assistant Professor
Toyota Technological Institute at Chicago
http://www.tti-c.org/logg/