... | ... | @@ -507,12 +507,12 @@ VRectangle bound = new VRectangle(-0.1, -0.1, 2.2, 2.2); |
|
|
// distance function d that defines a disc with radius 1 at (1,1).
|
|
|
IDistanceFunction d = p -> Math.sqrt((p.getX() - 1) * (p.getX() - 1) + (p.getY() - 1) * (p.getY() - 1)) - 1.0;
|
|
|
|
|
|
// define edge length function h by using d
|
|
|
IEdgeLengthFunction h = p -> 1.0 + 5.0 * Math.abs(d.apply(p));
|
|
|
|
|
|
// define h0
|
|
|
double h0 = 0.1;
|
|
|
|
|
|
// define edge length function h by using d
|
|
|
IEdgeLengthFunction h = p -> h0 + 0.5 * Math.abs(d.apply(p));
|
|
|
|
|
|
// define the EikMesh generator
|
|
|
PEikMeshGen<EikMeshPoint, Double, Double> meshImprover = new PEikMeshGen<>(
|
|
|
d, h, h0, bound, (x, y) -> new EikMeshPoint(x, y, false));
|
... | ... | |