next up previous contents
Next: sys Up: Commands Previous: surf   Contents


swep

  'swep' <set> <set> ['scal' <fx> <fy> <fz> <P0>|<div> [a] ]|
                     ['tra' <dx> <dy> <dz> <div> [a] ]|
                     ['rot' <p1> <p2> <alfa> <div> [a|&n] ]|
                     ['rot' 'x'|'y'|'z' <alfa> <div> [a|&n] ]|
                     ['rot' <p1> 'x'|'y'|'z' <alfa> <div> [a|&n] ]|
                     ['rad' <p1> <p2> <dr> <div> [a] ]|
                     ['rad' 'x'|'y'|'z'|'p'<pnt> <dr> <div> [a] ]|
                     ['rad' <p1> 'x'|'y'|'z' <dr> <div> [a] ]|
                     ['nor' <dr> <div> [a] ]|
                     ['mir' <P1> <P2> <div> [a] ]|
                     ['mir' 'x'|'y'|'z' <div> [a] ]|
                     ['mir' <P1> 'x'|'y'|'z' <div> [a] ]
This keyword is used to sweep entities into the next higher dimension. Sweeping a point will create a line, sweeping a line will create a surface and sweeping a surface will create a body. Shell elements will be expanded into Volume elements. The 'div' parameter defines how much elements will be created in the sweep direction. Existing results will be applied to the new nodes. Important: The ``trfm'' command must be used after the sweep operation and not before.

At first a copy of the first set (see seta and copy) will be created. The copy of the master-set is included in the second set. Then the connecting lines and surfaces are created and at last the bodies. The divisions of the new lines between set1 and set2 is specified with the parameter ''div'' or the default is used. Existing sets are extended by the copied entities if the last parameter includes the character ``a'' (append). Rotational sweeped lines create nurbs related surfaces if the last parameter includes the character ``n''. Several transformations are available. For example scal creates a scaled copy, the scaling factors fx, fy, fz could be chosen independently,

swep part1 part2 scal 2
swep part1 part2 scal 1 1 2 P0

tra will create a copy and will move it away by the vector dx, dy, dz and the optional parameter 'a' will assign the new entities to sets were the mother of each entity is included,

swep set1 set2 tra 10 20 30 a

nurbs related surfaces will be created if ``a'' is followed by ``n'' or a sole ``n'' is used in a rotational sweep,

swep set1 set2 rot 10 20 30 an

rot will create a copy and will move it around the axis defined by the points p1 and p2 by 'alfa' degrees (the connecting lines will be of type arc below 180 deg, above a spline),

swep set1 set2 rot p0 px 20.

or the axis of rotation is given by specifying one of the basis coordinate axes: swep set1 set2 rot x 20.

or just one point and a vector of rotation is given by specifying one of the basis coordinate axes: swep set1 set2 rot p1 x 20.

rad will create a copy and uses the same transformation options as 'rot' or will create a spherical section if just a single point is defined,

swep sphere1 sphere2 rad pP0 10.

nor will create a copy and will move it away in the direction of the averaged normal local vector. This requires information about the normal direction for each entity. Nodes will use associated element faces and geometric entities will use the element faces, surfaces or shapes which must be stored with them in the set1. It should be noted that faces from volume elements stored in set1 will be used to generate shell elements. This elements will then be extruded in normal direction into 3D elements,

swep set1 set2 nor 1.2 6 a

mir will create a mirrored copy. The mirror-plane is placed normal to the direction running from P1 to P2 and placed at P2,

swep section1 section2 mir p1 p2

as with 'rot and 'rad' additional transformation options are available:

swep section1 section2 mir P1 x

places the mirror at P1 with its normal direction in 'x' direction

swep section1 section2 mir x

Places the mirror in the origin with its normal direction in 'x' direction.


next up previous contents
Next: sys Up: Commands Previous: surf   Contents
root 2018-12-15