**compute_predefined_levelset#
Description#
This command is used to generate levelsets (scalar field given at nodes of the FE mesh) defining cracks with classical geometries in an xfem analysis.
In this case the discontinuity is described by 2 levelsets \(\phi\) and \(\psi\), where (see figure):
\(\phi\) is the signed distance of a node to the crack plane,
\(\psi\) is signed the distance to the crack front of the orthogonal projection of a node on the crack plane.
such that points for which \(\phi=\psi=0\) are located on the crack front, and positive \(\psi\) values correspond to nodes ahead of the front.
Syntax#
**compute_predefined_levelset
\(~\,\) *type (circular``|``elliptic``|``line)
\(~\,\) [ *rho radius ]
\(~\,\) *center c
\(~\,\) *normal (n)
\(~\,\) [ *rho2 minor_radius ]
\(~\,\) [ *direction (d) ]
\(~\,\) [ *do_fem_output ]
\(~\,\) [ *elset_name name ]
\(~\,\) [ *elset_distance dist ]
\(~\,\) [ *phi_name phi_file ]
\(~\,\) [ *psi_name psi_file ]
*typeis used to specify the crack geometry (predefined types available are:
circular,elliptic,line),- radius
is the radius (
circularcracks) or the major radius value (ellipticcracks). It has no effect forlinecracks.- (c)
is a vector defining the position of the center for
circularorellipticcracks. In the case oflinecracks, the coordinates of a point on the crack front is expected.- (n)
is a vector defining the normal to the crack plane (see figure above),
rho2is needed to specify the minor radius value for
ellipticcracks.*directiondefines a vector (d) whose meaning is the following, depending on the particular geometry:
the direction of the minor axis for an
ellipticcrack. Note that in this case (d) is expected to be orthogonal to (n) (otherwise an error occurs).- a vector parallel to the crack front for
linecracks. The sign of this vector also defines the crack propagation direction in this case, as described on the following figure: \(\psi>0\) is obtained in direction (t) = (d) \(\wedge\) (n)
- a vector parallel to the crack front for
*do_fem_outputallows the generation of FE results with \((\phi,\psi)\) values calculated on nodes of the input mesh (see the example for the iso-contours generated).
*elset_namecreates an elset (with name ename) containing elements situated within a distance of less than dist from the crack front.
*phi_nameand*psi_nameallows to redefine the names of the output ASCII files used to store the levelset values on the mesh nodes (default names are “
phi.dat” and “psi.dat”). Those files are used to define the discontinuity by the***xfem_crack_modecommand.
Example#
**compute_predefined_levelset
*type circular
*center (1.0 0.5 0.5)
*normal (0. 0. 1.0)
*rho 0.2
*do_fem_output
Fig. 5 \(\phi:\) distance to the crack plane# |
Fig. 6 \(\psi:\) distance to the crack front# |