  Phase field method has been widely used because of its excellent ability to
simulate fracture problems. At present, the implementation process is mainly
based on commercial software, and the operation process is relatively complex.
In this paper, 2D and 3D phase field models are implemented in the open-source
finite element software package AsFem. Compared with commercial software, it is
simpler to realize phase field fracture model in AsFem. At the same time, a
robust staggered scheme and an efficient monolithic scheme can be used to solve
the displacement field and phase field sub-problem, and the transformation
process is very easy. Several examples are tested to demonstrate the
performance of the current implementation. The simulation results are in good
agreement with the previous work, which shows the feasibility and effectiveness
of implementing the phase field method in AsFem. In the future, more complex
multi-field coupled phase field fracture problems can be solved with AsFem.
