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/08/07 19:18] – 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 5: | Line 5: | ||
===== '' | ===== '' | ||
- | A'' | + | A '' |
groupset.add( Group(number) ) | groupset.add( Group(number) ) | ||
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 '' | ||
- | ===== Tri des noeuds sélectionnés (sorter) | + | ===== Sorting the selected nodes ===== |
- | Il n'est pas toujours aisé de construire la sélection des noeuds sur les seuls noeuds dont on veut disposer (sur des tests paramétriques par exemples). Il est possible | + | It is not always easy to select only the required nodes (on parametric studies for example). Therefore, it is possible |
groupset(number).selectMeshPoints(sorter, | groupset(number).selectMeshPoints(sorter, | ||
- | où | + | where |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | __Exemple:__ | + | __Example:__ |
group.addMeshPointsFromObject(sideset(1)) | group.addMeshPointsFromObject(sideset(1)) | ||
group.selectMeshPoints(SortByNo(), | group.selectMeshPoints(SortByNo(), | ||
- | Tri des noeuds par leur numero et conservation | + | These lines sort the nodes by user number and conservation |
- | ===== Utilisation avancée | + | ===== Advanced features |
- | Ajout de noeuds depuis l' | + | Adding nodes from the geometric object |
groupset(number).addMeshPointsFromObject(target, | groupset(number).addMeshPointsFromObject(target, | ||
- | où '' | + | where '' |
- | * '' | + | === BoxSelector=== |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | __Exemples:__ | + | Selection within a box : |
+ | |||
+ | BoxSelector(xMin, | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | === RangeSelector === | ||
+ | |||
+ | Selection in a given area : | ||
+ | |||
+ | RangeSelector(lock, | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | === DistSelector === | ||
+ | |||
+ | Spherical selection : | ||
+ | |||
+ | DistSelector (Cx, Cy, Cz, R) | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | === SectorSphericalSelector === | ||
+ | |||
+ | Selection in a spherical sector : | ||
+ | |||
+ | 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 selection of a ring along the '' | ||
+ | |||
+ | AnnealedSelector(lock, | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | gets all nodes situated from the two cylinders of axis '' | ||
+ | |||
+ | === SectorAnnealedSelector === | ||
+ | |||
+ | Selection of a part or a ring, defined by two angles, along the '' | ||
+ | |||
+ | 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:__ | ||
group.addMeshPointsFromObject(sideset(1), | group.addMeshPointsFromObject(sideset(1), | ||
- | récupère tous les noeuds de la face numéro | + | gets all nodes from side #1 whose '' |
group.addMeshPointsFromObject(sideset(1), | group.addMeshPointsFromObject(sideset(1), | ||
- | récupère tous les noeuds de la face numéro | + | gets all nodes from side #1 in the rectangular box defined by '' |
| | ||
- | récupère tous les noeuds situés dans la sphère de centre | + | gets all nodes situated in a sphere of center |
| | ||
- | récupère tous les nœuds dans le secteur sphérique de centre | + | gets all nodes in the spherical sector of center |
- | __Remarque__ | + | __Note__ |
+ | 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, | ||
- | récupère tous les noeuds situés entre les deux cylindres d' | + | gets all nodes situated from the two cylinders of axis '' |
group.addMeshPoints(SectorAnnealedSelector(TX, | group.addMeshPoints(SectorAnnealedSelector(TX, | ||
- | récupère tous les noeuds situés entre les deux quartier de cylindres d' | + | gets all nodes situated within two parts of cylinders of axis '' |
{{ doc: | {{ doc: |
doc/user/geometry/user/selections.1407431883.txt.gz · Last modified: 2016/03/30 15:22 (external edit)