[overture] How to set boundary condition as "sin(4*pi*x)*sin(4*pi*y)"

  • From: ztdepyahoo <ztdepyahoo@xxxxxxx>
  • To: overture@xxxxxxxxxxxxx
  • Date: Sat, 12 Oct 2019 09:28:52 +0800 (CST)

Professor Henshaw:
     I have learn the Overture for a while with the serial version. Now  I 
tried to solve the 3D heat diffusstion equation with sin(4*pi*x)*sin(4*pi*y) as 
the exact equation. I don't want to use the periodic BC type. But how to set 
the boudary condition as "sin(4*pi*x)*sin(4*pi*y)". 
   It seems that     
"u.applyBoundaryCondition(component,BCTypes::dirichlet,BCTypes::allBoundaries,1.);
 " only apply the constant value bc. 
Regards

Other related posts: