Commit 4e206862 authored by Christophe Geuzaine's avatar Christophe Geuzaine

Attractor -> Distance

parent 555105e5
......@@ -140,6 +140,8 @@ codes in the contrib/ directory, each governed by their own license:
* contrib/gmm copyright (C) 2002-2008 Yves Renard;
* contrib/hxt - Copyright (C) 2017-2018 - Universite catholique de Louvain.
* contrib/kbipack copyright (C) 2005 Saku Suuriniemi;
* contrib/MathEx based in part on the work of the SSCILIB Library, copyright (C)
......
......@@ -20,19 +20,19 @@ Line(1) = {1,2}; Line(2) = {2,3}; Line(3) = {3,4}; Line(4) = {4,1};
Curve Loop(5) = {1,2,3,4}; Plane Surface(6) = {5};
// Say we would like to obtain mesh elements with size lc/30 near curve 1 and
// Say we would like to obtain mesh elements with size lc/30 near curve 2 and
// point 5, and size lc elsewhere. To achieve this, we can use two fields:
// "Attractor", and "Threshold". We first define an Attractor field (Field[1])
// on points 5 and on curve 1. This field returns the distance to point 5 and to
// (100 equidistant points on) curve 1.
Field[1] = Attractor;
// "Distance", and "Threshold". We first define an Distance field (Field[1])
// on points 5 and on curve 2. This field returns the distance to point 5 and to
// (100 equidistant points on) curve 2.
Field[1] = Distance;
Field[1].NodesList = {5};
Field[1].NNodesByEdge = 100;
Field[1].EdgesList = {2};
// We then define a Threshold field, which uses the return value of the
// Attractor Field[1] in order to define a simple change in element size around
// the attractors (i.e., around point 5 and curve 1)
// We then define a Threshold field, which uses the return value of the Distance
// Field[1] in order to define a simple change in element size depending on the
// computed distances
//
// LcMax - /------------------
// /
......@@ -40,7 +40,7 @@ Field[1].EdgesList = {2};
// /
// LcMin -o----------------/
// | | |
// Attractor DistMin DistMax
// Attractor DistMin DistMax
Field[2] = Threshold;
Field[2].IField = 1;
Field[2].LcMin = lc / 30;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment