← Back to team overview

dolfin team mailing list archive

Re: [Question #139887]: how can I change boundary conditions asfunction oftime?

 

Question #139887 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/139887

    Status: Open => Answered

Johan Hake proposed the following answer:
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
> ---------------------------------------------------------------------------
> -----------------

You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.