Warning: Declaration of syntax_plugin_mathpublish::handle(\$match, \$state, \$pos, &\$handler) should be compatible with DokuWiki_Syntax_Plugin::handle(\$match, \$state, \$pos, Doku_Handler \$handler) in /home/np29546/public_html/elmerice/wiki/lib/plugins/mathpublish/syntax.php on line 29

Warning: Declaration of syntax_plugin_mathpublish::render(\$mode, &\$R, \$data) should be compatible with DokuWiki_Syntax_Plugin::render(\$format, Doku_Renderer \$renderer, \$data) in /home/np29546/public_html/elmerice/wiki/lib/plugins/mathpublish/syntax.php on line 29

Warning: Cannot modify header information - headers already sent by (output started at /home/np29546/public_html/elmerice/wiki/lib/plugins/mathpublish/syntax.php:29) in /home/np29546/public_html/elmerice/wiki/inc/actions.php on line 38
solvers:mmg2d_metricintersect [Elmer/Ice Wiki]

### General Information

• Solver Fortran File: `MMG2D_MetricIntersect.F90`
• Solver Name: `ElmerIce_MeshAdapt2D(MMG2D_MetricIntersect)`
• Required Output Variable(s):
• (1) `Metric 1_2`
• Required Input Variable(s):
• (1) `Metric 1`
• (2) `Metric 2`
• Optional Output Variable(s): None
• Optional Input Variable(s): None

### General Description

This is a pseudo solver (i.e. it is not solving an equation).

This solver is used for the mesh adaptation (Mesh Adaptation) to perform the intersection of two anisotropic metric M_1 and M_2.

The intersection of two metrics M_1 and M_2 is given by (Alauzet et al., 2007):

with the matrix where the columns are the normalised eigenvectors , of and .

M_1 and M_2 can be computed using the MMG2D_MetricAniso Solver.

A variable containing the metric M_i must have 3 dofs (M_{11},M_{22},M_{12}).

### SIF contents

```Solver 6
Equation = "Metric"
Variable = -nooutput dumy

Optimize Bandwidth = False

Metric Variable Name = String "M1M2"
Metric 1 Variable Name = String "M2"
Metric 2 Variable Name = String "M1"

Exported Variable 1 = -dofs 3 "M1M2"
End

```

### Example

An example for anisotropic mesh adaptation using 2 varaibles can be found under `[ELMER_TRUNK]/elmerice/Tests/MMG2D_Aniso2`.