[Getdp] Dirichlete Boundary condition

Christophe Geuzaine geuzaine at acm.caltech.edu
Wed May 14 06:11:21 CEST 2003


Lin Ji wrote:
> Dear Christophe,
>     How can we implement Dirichelete boundary condition for wave equation
> in GetDP? In this case, the boundary condition is time dependent. Can we
> still put it as a constraint? Thanks a lot.
> 

Yes: you just have to use the "TimeFunction" field to specify the time
dependence, e.g.,

Function{
  Fct[] = 1;
  TimeFct[] = Exp[-$Time^2] * Cos[2*Pi*200e6*$Time];
}

Constraint {
  { Name f ;
    Case {
      { Region Dirichlet; Value Fct[]; TimeFunction TimeFct[]; }
    }
  }
}

Christophe

-- 
Christophe Geuzaine

Tel: (626) 395-4552    http://www.geuz.org
Fax: (626) 578-0124    mailto:geuzaine at acm.caltech.edu