doc:user:geometry:user:selections
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:user:geometry:user:selections [2014/10/23 16:55] – [''Group'' Creation] joris | doc:user:geometry:user:selections [2018/01/30 18:46] (current) – papeleux | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Node selection - Groups ====== | + | ====== Node Groups ====== |
Node selections are used to apply boundary conditions ([[doc: | Node selections are used to apply boundary conditions ([[doc: | ||
Line 20: | Line 20: | ||
===== Adding nodes (simple) ===== | ===== Adding nodes (simple) ===== | ||
- | |||
groupset(number).add(GObject) | groupset(number).add(GObject) | ||
Line 26: | Line 25: | ||
groupset(number).addMeshPointsInBox(xmin, | groupset(number).addMeshPointsInBox(xmin, | ||
groupset(number).addMeshPointsFromObject(target, | groupset(number).addMeshPointsFromObject(target, | ||
+ | groupset(number).addInnerMeshPointsFromObject(target, | ||
| | ||
where | where | ||
| '' | | '' | ||
- | | '' | + | | '' |
| '' | | '' | ||
| '' | | '' | ||
- | | '' | + | | '' |
- | | '' | + | | '' |
+ | nb : addInnerMeshPointsFromObject does not add nodes on boundary of '' | ||
===== Sorting the selected nodes ===== | ===== Sorting the selected nodes ===== | ||
Line 57: | Line 58: | ||
===== Advanced features (Selectors) ===== | ===== Advanced features (Selectors) ===== | ||
- | Adding nodes from the geometric object '' | + | Adding nodes from the geometric object '' |
groupset(number).addMeshPointsFromObject(target, | groupset(number).addMeshPointsFromObject(target, | ||
Line 63: | Line 64: | ||
where '' | where '' | ||
- | * '' | + | === BoxSelector=== |
- | | + | |
- | | + | Selection |
- | | + | |
- | | + | BoxSelector(xMin, xMax, yMin, yMax, zMin, zMax) |
- | | + | |
- | | + | where |
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | === RangeSelector === | ||
+ | |||
+ | Selection | ||
+ | |||
+ | RangeSelector(lock, | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | === DistSelector === | ||
+ | |||
+ | Spherical | ||
+ | |||
+ | DistSelector (Cx, Cy, Cz, R) | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | === SectorSphericalSelector === | ||
+ | |||
+ | Selection | ||
+ | |||
+ | SectorSphericalSelector (Cx, Cy, Cz, rMin, rMax, thetaMin, thetaMax, phiMin, phiMax) | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | __Note__ : angles are computed with respect to the structural frame translated toward the center or the sphere. | ||
+ | |||
+ | === AnnealedSelector === | ||
+ | |||
+ | Selection | ||
+ | |||
+ | AnnealedSelector(lock, x, y, z, rMin, rMax, hMin, hMax) | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | gets all nodes situated from the two cylinders of axis '' | ||
+ | |||
+ | === SectorAnnealedSelector === | ||
+ | |||
+ | Selection | ||
+ | |||
+ | SectorAnnealedSelector(lock, | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | === TorrusSelector === | ||
+ | |||
+ | Selection of nodes inside a torus : | ||
+ | |||
+ | TorrusSelector(axe, | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | === EllipseSelector === | ||
+ | |||
+ | Selection within an ellipse : | ||
+ | |||
+ | EllipseSelector (lock, Cx, Cy, CZ, a, b) | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | |||
+ | === PlaneSelector === | ||
+ | |||
+ | Selection on one side of a plane : | ||
+ | |||
+ | PlaneSelector (plane, dir) | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | === BoundarySelector === | ||
+ | |||
+ | Select nodes that are on the surface of a meshed object (3D Models only) : | ||
+ | BoundarySelector () | ||
+ | |||
+ | === Boundary2DSelector === | ||
+ | |||
+ | Select nodes that are on the surface of a meshed object (2D Models only) : | ||
+ | |||
+ | Boundary2DSelector () | ||
+ | |||
+ | === InverseSelector === | ||
+ | |||
+ | Revert the effect of a selector | ||
+ | |||
+ | InverseSelector (selector) | ||
+ | |||
+ | where | ||
+ | | '' | ||
__Examples: | __Examples: | ||
Line 89: | Line 213: | ||
gets all nodes in the spherical sector of center (Cx,Cy,Cz), of minimal and maximal radii rMin and rMax, of minimal and maximal azimuth angle thetaMin and thetaMax, and of minimal and maximal elevation angle pHiMin and phiMax. | gets all nodes in the spherical sector of center (Cx,Cy,Cz), of minimal and maximal radii rMin and rMax, of minimal and maximal azimuth angle thetaMin and thetaMax, and of minimal and maximal elevation angle pHiMin and phiMax. | ||
- | __Note__ : angles are calculated | + | __Note__ : angles are computed |
+ | group.addMeshPoints(TorrusSelector(Axe(curveset(1)), | ||
+ | | ||
+ | gets all nodes in the toroidal sector defined by the revolution axis Axe(curveset(1)), | ||
+ | |||
group.addMeshPoints(AnnealedSelector(TX, | group.addMeshPoints(AnnealedSelector(TX, | ||
doc/user/geometry/user/selections.1414076147.txt.gz · Last modified: 2016/03/30 15:22 (external edit)