Convex HullΒΆ
Learning targets
- enclose one or several domains by the convex hull
- use automatically generated convex hull as computational domain
In this example we enclose two structures by their convex hull which we use as the computational domain with transparent boundary conditions.
With the Parent
declaration in convex hull definition (see layout.jcm) we select the structures for enclosure. The convex hull is enlarged by the Offset
value.
Note
All defined regions are enclosed when skipping the Parent
declaration for the convex hull.
.jcm
Input File
layout.jcm [ASCII]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Layout2D { UnitOfLength = 1 Objects { Parallelogram { Name = "Parallelogram1" Width = 4 Height = 0.8 DomainId = 2 } Parallelogram { Name = "Parallelogram2" GlobalPosition = [3 0.0] Width = 0.8 Height = 4 DomainId = 2 } Polygon { ConvexHull { Parent = "Parallelogram1,Parallelogram2" Offset = 0.4 } Priority = -1 DomainId = 1 Boundary { Class = Transparent } } } }