dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #20562
Re: [Question #139887]: how can I change boundary conditions as function of time?
Question #139887 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/139887
Status: Open => Answered
Krishna Garikipati proposed the following answer:
But, it was working before. It depends on what you have changed.
---Krishna
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.