← Back to team overview

dolfin team mailing list archive

Re: [Question #139887]: how can I change boundary conditions as function of time?

 

Not sure what you want to achieve. Do you want to change the actual boundary 
domain as time changes or the value of a Neumann, Robin or Dirichlet boundary 
condition for a fixed boundary domain:

Johan


On Saturday January 1 2011 19:46:26 Sungick Kim wrote:
> New question #139887 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/139887
> 
> It seems to me that It's not changing as time, t increases.
> Can you give me any tips to make it work?
> Thank you.
> 
> ---------------------------------------------------------------------------
> ----------------- BC = compile_subdomains("x[0] < t + 5*DOLFIN_EPS &&
> on_boundary")
> 
> # Parameters for time stepping
> T  = 10.0
> dt = 0.1
> t  = 0.0
> 
> while t < T:
> 
>     t += dt
>     # solve problem
> ---------------------------------------------------------------------------
> -----------------



Follow ups

References