Page 1 of 1

Add or remove BCs at a specific time in diffusion framework

PostPosted: Mon Sep 12, 2016 6:35 pm
by weixinli
This post is similar to viewtopic.php?f=24&t=135

Thanks to the post by Roman, we know it's possible to add BCs at a later phase by using
Code: Select all
Read `FileName' atTime 10. ms
Read `FileName' atStep 10000


However, in the diffusion framework, BCs need to be specified through the command
Code: Select all
DiffusionBoundaryCondition 'BCName'
at the input of DiffusionProblem. How can we add new BCs in the diffusion framework after the simulation starts running?

Re: Add or remove BCs at a specific time in diffusion framew

PostPosted: Mon Sep 12, 2016 7:18 pm
by zhouxinwei
The following two commands are added in the boundary condition definition:

Code: Select all
ActivateAtRealTime 1 hours
DeactivateAtRealTime 10 hours


The code is updated in GitLab.