Path: blob/devel/elmerice/UserFunctions/Documentation/Contact.md
3203 views
User Function USF_Contact
General Information
USF Fortran File: USF_Contact.f90
USF Name: SlidCoef_Contact
Required Input Variable(s): GroundedMask, Fw, Flow Solution Loads, Normal Vector
Optional Input Variable(s): Distance
General Description
The aim of this user function is to test the contact during the non-linear iteration of the Stokes solver. This is done through the application of basal sliding. If the Grounding line is retreating, nodes can move from grounded to floating and the variable GroundedMask is updated accordingly. The contact is tested once after the solution of the non-linear iterations has slightly converged and then is kept fixed until the complete convergence of the non-linear iterations.
This user function uses the variables GroundedMask, computed by GroundedSolver, Fw, computed by GetHydrostaticLoads, the residual of the Stokes solver in Flow Solution Loads, and the Normal Vector from the ComputeNormal Solver. If the keyword Non Detachment Inland Distance has a positive value, the variable Distance computed by the Distance Solver of the Elmer distribution is also needed.
SIF contents
The required keywords in the SIF file for these user functions are:
Depending on the chosen sliding law, the corresponding parameters must be given. See the documentation for the corresponding user functions Weertman, Budd and Coulomb.
Examples
2D examples can be found in [ELMER_TRUNK]/elmerice/Tests/Contact and [ELMER_TRUNK]/elmerice/Tests/GL_MISMIP.