Update Dirichlet boundary conditions

Hello,

I have run into an issue and hope I am simply missing something obvious. I specify Dirichlet boundary conditions using add_generalized_Dirichlet_condition_with_multipliers using the Python interface. I supply the optional argument dataname which references a pre-defined variable added with add_initialized_fem_data. This works fine for the beginning of my problem or when the boundary condition remains constant through time.

However, I would like for the boundary condition to update with time. Changing the value of the data variable using set_variable does not seem to result in a change in the applied boundary condition. Is there some other update function I need to call to get that change to propagate to the boundary condition?

Thank you,
Janine

2 Likes

Hi,

Sorry, it seems I had run into a separate issue that was causing a singular matrix and not solving at all. Once I resolved that I was able to see updates to the boundary conditions.

Thanks,
Janine