Prespecified Adaptation RegionsPrespecified adaptation regions give you some control over the geometry-based adaptation that cubes does by default. Its intended to give the user some useful control over the mesh generation process, and to allow expert users to impart some knowledge into the mesh generation process. As explained in the sample preSpec.c3d.cntl file, the -pre preSpecFilenamecommand line flag directs cubes to parse the preSpec file. The "BBox:" tag is used to identify the region.
Extra refinement passes for specific
components. preSpec files also allow you to specify any particular
components for which you want cubes to do an additional
refinement pass or two. This feature is mainly used to improve
resolution of SurfBC components being used in simulations with
power.
The BBox tag looks like this:
#
BBox:(int)
(float) (float) (float) (float)
(float) (float)
BBox: level Xmin Xmax
Ymin Ymax Zmin
Zmax
where levelis the number of subdivisions you want in the region defined by the minmax box.
#
XLev:'s are optional and mostly used to pre-refine SurfBCs for
simulations with power
#
(int) (int) ...
(int)
XLev: 2 2 3
8 13 # ... do 2 extra
refinement passes on comps 2, 3, 8 &
13
XLev: 1 1 4
# ... do 1 extra
refinement pass on comps 1 & 4
See a sample
preSpec file <here>.
Cubes works by successively refining an
original background mesh some number of user specified times
(entry #6 in the cubes input file,
or with the the -maxR %d command line option). When a cell falls
into a region specified by a BBox preSpec tag, that cell
is automatically refined until it undergoes at least
level subdivisions. If
the maximum number of refinement passes is less than
level, you will only get maxR
refinements in these regions. For example, if you set
level to 12, but only direct
cubes to do 9 refinement passes, then you will only get 9
refinement passes in the refinement regions.
You can specify any
number of refinement regions.
|
|