prisms-center / phaseField

PRISMS-PF: An Open-Source Phase-Field Modeling Framework
https://prisms-center.github.io/phaseField/
Other
229 stars 120 forks source link

Fixed issues with nonuniform Dirichlet boundary conditions #190

Closed david-montiel-t closed 1 year ago

david-montiel-t commented 1 year ago

1) Expanded the criteria to consider that the system has Dirichlet boundary conditions (BC) to when they are nonuniform. Previously, if only nonuniform Dirichlet conditions were set for a field. The code did not recognize them as Dirichlet BC and missed setting them.

2) Fixed an incomplete loop to detect Dirichlet BC in /src/matrixfree/init.cc. Previously the loop was over field variables. Currently it is over boundaries.

3) Fixed bug that caused time-dependent Dirichlet boundary conditions to be updated except when mesh refinement was applied.