mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
63 lines
1.4 KiB
Plaintext
63 lines
1.4 KiB
Plaintext
# demo - .in2d file
|
|
# geometry consists of two squares,
|
|
# the inner square is made of iron, the outer is not specified (default)
|
|
# boundary condition 1 on the outside, 2 on the interface between inner and outer square
|
|
|
|
# new .in2d geomety files ...
|
|
|
|
# start with keyword splinecurves2dv2
|
|
splinecurves2dv2
|
|
# next the refinement factor
|
|
2
|
|
|
|
# keyword points
|
|
points
|
|
|
|
# then the details:
|
|
# point nr ( need not be ordered ) --- x-coord --- y-coord --- flags
|
|
# the refinement factor is an optional flag, -ref=factor, default 1
|
|
|
|
# the first, outer square
|
|
2 1 0
|
|
1 0 0 -ref=10
|
|
3 1 1
|
|
4 0 1
|
|
|
|
# here begins the second square
|
|
6 0.9 0.1
|
|
5 0.2 0.1
|
|
7 0.9 0.9
|
|
8 0.2 0.9
|
|
|
|
# keyword segments for the segments
|
|
segments
|
|
|
|
# then the segment information
|
|
# domain in --- domain out --- number of points --- points --- flags
|
|
# again, the refinement factor is an optional flag, -ref=factor, default 1
|
|
# still on the wishlist: give names to the boundary conditions, and have a default value for non-specified bcs
|
|
# (similar to materials in subdomains)
|
|
|
|
|
|
1 0 2 1 2 -bc=1
|
|
1 0 2 2 3 -bc=1
|
|
1 0 2 3 4 -bc=1
|
|
1 0 2 4 1 -bc=1
|
|
2 1 2 5 6 -bc=2 -ref=2
|
|
2 1 2 6 7 -bc=2
|
|
2 1 2 7 8 -bc=2
|
|
2 1 2 8 5 -bc=2
|
|
|
|
|
|
# keyword for materials
|
|
materials
|
|
|
|
# subdomain nr ---- material
|
|
# works the same way as materials in 3d csg geometries,
|
|
# non-specified domains get a default value
|
|
# maximal meshsize can be given by -maxh=.. flag
|
|
|
|
1 iron -maxh=0.1
|
|
|
|
|