## div

   'div'  |
<defdiv>|
<line> [<division>]|
<set>  [<division>]|
['mult'|'div' <factor-div> <factor-bias>]|
['auto' <node-dist> <angle> <elem-ratio>]

This keyword can be used to re-define the default division of lines:

div 4

The div keyword works on a line or a set of lines (see qadd). The division controls the number of nodes created when the geometry is meshed (see elty and mesh). For example,

div all 4

attaches the division of 4 to all lines. With the keyword mult or div in combination with a value, it is possible to multiply or divide already assigned divisions:

div all mult 2.

Or in case you need a starting-point for the individual divisions you can use the option auto with the optional parameters node-dist and angle. Node-dist is the maximum allowed distance between nodes and angle is the maximum allowed angle defined by three sequential nodes. If one parameter is not fulfilled then the division is halved until the requirements are fulfilled. Default values are defined in the file cgx.h and can be listed with

div

without parameters

div all auto

uses the defaults. The following example sets them expicidly:

div all auto 2. 10. 0.5

will use a maximum element lenght of 2., the angle between successive nodes is less than 10 degree and the minimum element is only half of the maximum-length as long as the length of the line is sufficient. It should be noted that it could make sense to use different values for different sets.