4.1.1.2.1.11. pyfem.elements.PhaseField module

class PhaseField(elnodes, props)[source]

Bases: Element

strain2matrix(strain)[source]

Gives the strain in matrix format.

getDecompEnergy(strain)[source]

Decomposes the Energy in a positive part due to tension and a negative part due to compression.

getTangentStiffness(elemdat)[source]

Calculates the tangent stiffness matrix and the internal force vector of the PhaseField model.

getInternalForce(elemdat)[source]

Returns the internal force vector of the PhaseField model.

commit(elemdat)[source]

Copies the new history parameters (maximum internal energy for each integration point) to the old history parameters.

getBmatrix(dphi)[source]

Calculates the B-matrix (eps = B * u) vfor the mechanical part of the PhaseField model. The dimensions of the B-matrix are determined by the rank of the problem and the length of the matrix containing derivatives of the shape functions (dphi)

splitDofIDs(n)[source]

Routine to split the dof IDs in two groups, one for the displacement degrees of freedom, the second for the phase field degres of freedom. n is the number of degrees of freedom in this model