MatMechLab / AsFem

Advanced Simulation kit based on Finite Element Method (AsFem)
https://matmechlab.github.io/AsFem
GNU General Public License v3.0
180 stars 53 forks source link

Extension of CahnHilliard module #14

Closed yangbai90 closed 4 years ago

yangbai90 commented 4 years ago

The source term is required in the Cahn-Hilliard equation to automatically generate/degenerate the species due to the chemical reaction.

Thereby, the current version needs some improvements to account for the source term. Moreover, we should allow users to select the free energy expressions they like, not only be restricted to the binary-mixture cases, i.e. (c-ca)^2*(c-c^b)^2, the polynomial cases.

This should also become a good "Example" to demonstrate the phase-field modeling ability of AsFem.

Let's do it!

yangbai90 commented 4 years ago

Now the reaction source terms and the choice for different free energy is ready. The details can be found here: 380a0a43314cdc9328a565e537276f0adb26479d