Glyph Version 7.22.2 |
pw:: DomainUnstructuredAn unstructured domain is a watertight collection of edge-connected surface elements (triangle, quadrilateral, etc.) bounded by one or more pw::Edges, none of which can be degenerate (pole). Derives Frompw::Object pw::Entity pw::GridEntity pw::Domain Summary
create
This action creates a new unstructured domain object. Parametersnone ReturnsThis action returns a new pw::DomainUnstructured object. ExampleIn this example, an unstructured domain is created using 4 existing connectors. For an unstructured domain, all connectors are added to the same edge object. Code set edge(1) [pw::Edge create] Output dom-1 See AlsocreateOnDatabase
This creates new unstructured domain objects on the given database entities. Parameters
ReturnsThis action returns a list of new pw::DomainUnstructured objects. InformationThis command supports progress updates. ExampleThis example automatically creates unstructured domains on the database entities already existent within the file. The -joinDomains parameter is used to indicate that domains will be joined for a turning angle of 60 degrees. Code set dbEnts [pw::Database getAll] Output The total number of grid points is 5543. createFromConnectors
This action creates new unstructured domain objects from the given connectors. Parameters
ReturnsThis action returns a list of new pw::DomainUnstructured objects. InformationThis command supports progress updates. NotesWhile this command will produce identical results when run with the exact same input, it may produce different results for slight variations in the input connectors. The domains may be created in a different order or may be created with different orientations. Use the explicit domain building routines (pw::Edge.create, pw::DomainUnstructured.create, pw::Edge.addConnector, and pw::Domain.addEdge commands) to build the domain in a controlled manner. If this command is run inside of a Create pw::Mode, it will only be able to assemble domains from entities that were created within the same pw::Mode. If entities created outside of the pw::Mode are also included, the assembly will fail. Instead, use explicit assembly by creating the pw::Edge objects directly. ExampleThis example automatically creates unstructured domains from the list of connectors provided. The -reject parameter is used to specify which connectors were unused. Code set cons [pw::Grid getAll -type pw::Connector] Output dom-1 createFromPoints
This action, given a list of point values (XYZ or database- constrained) and at least one cell-type array, creates a new unstructured domain. ParametersThe following cell array parameters (at least one of which is required) are each a list of lists. The sub-lists represent indices into the points list for each vertex of a particular cell. For example, there are 3 vertices for each triangle. Therefore, the ‘triCellArray’ will consist of a number of sub-lists, where each contains 3 indices representing the vertices of a triangle.
ReturnsThis action constructs and returns an unstructured domain from a list of point values and triangle/quad cells. If the new domain matches an existing one, the existing domain will be returned. ExampleThis example creates an unstructured domain from a list of triangles and quads from a given list of points. Code set verts [list {15.0 17.0 10.0} {15.0 16.0 10.0} {15.0 15.0 10.0} Output Cell Count 36 join
This action joins as many of the given unstructured domains together as possible. Parameters
ReturnsThis action returns a list of the pw::DomainUnstructured objects that were joined. InformationThis command supports progress updates. ExampleThis example joins as many unstructured domains as possible. The -reject parameter is used to specify which domains were not joined. Code set doms [pw::Grid getAll -type pw::Domain] Output 3 domains were joined. qualifyEdges
This action checks if a list of edges would be valid for defining an unstructured domain. Parameters
ReturnsThis action returns a boolean, which is true if this is a valid set of edges. ExampleThis example checks to see if the edge object created is valid for defining an unstructured domain. Code set edge(1) [pw::Edge create] Output 0 getAutoCompleteHint
This action gets a list of connectors that will close an edge to be used for an unstructured domain. It will attempt to close the loop by adding connectors to either end of the edge until it either closes or a branch is encountered. Parameters
ReturnsThis action returns a list of two lists of pw::Connector objects. InformationThe first list in the return value is a list of connectors to insert at the front of the edge definition (such that the first connector should be inserted at the beginning, the second connector should be inserted next at the beginning, etc.). The second list in the return value is a list of connectors to append to the edge definition. Either may be an empty list. ExampleThis example is used to find which connectors will close an edge in order for it to be used for an unstructured domain. The Tcl commmand lassign is used to split the list that is returned. Code set hint [pw::DomainUnstructured getAutoCompleteHint $edge(1)] Output (empty string) getDomainsFromDatabase
This action gets a list of domains that are constrained to the given databases. Parameters
ReturnsThis action returns a list of pw::Domain objects. ExampleThis example shows how to get a list of constrained unstructured domains from a given quilt and shell. $shell(1) and $qlt(1) are referencing an existing shell and quilt. Code set doms [pw::DomainUnstructured getDomainsFromDatabase [list $qlt(1) $shell(1)]] Algorithm (Default)
This default is the meshing algorithm of an unstructured domain when it is created. TypeA string with options < Delaunay | AdvancingFront | AdvancingFrontOrtho | ThinSurfaceInterpolation >. DefaultThe default value of this attribute is Delaunay. See AlsoExampleThis example shows how to set and get the default algorithm for unstructured domains created within a script. Code pw::DomainUnstructured setDefault Algorithm AdvancingFront Output AdvancingFront IsoCellType (Default)
This default attribute controls what type of cells a domain will contain in the isotropic region (all cells if T-Rex is not applied) after generation. TypeA string with one of the values < Triangle | TriangleQuad >. Triangle indicates that generated cells in the isotropic region (all cells when T-Rex is not applied) will be stored as triangles upon completion. TriangleQuad indicates that isotropic cells will be stored in a quad-dominant fashion, generally containing both triangle and quadrilateral cell types. DefaultThe default value of this attribute is Triangle. See AlsoExampleThis example shows how to set and get the default option to store generated cells as triangles for unstructured domains created within a script. Code pw::DomainUnstructured setDefault IsoCellType Triangle Output Triangle BoundaryDecay (Default)
This default is the boundary decay factor of an unstructured domain when it is created. This default is being replaced by pw::GridEntity.SizeFieldDecay and will be deprecated soon. Getting or setting this default is the same as getting or setting the pw::GridEntity.SizeFieldDecay default. Higher values of this attribute indicate a slower progression of cell sizes toward the domain inteior (more, smaller cells). Lower values indicate a more rapid progression (less, larger cells) TypeA float in the range [0, 1]. DefaultThe default value of this attribute is 0.5. ExampleThis example shows how to set and get the default boundary decay factor for unstructured domains created within a script. Code pw::DomainUnstructured setDefault BoundaryDecay 0.7 Output 0.7 TRexCellType (Default)
This default attribute contains what type of cells a T-Rex generated domain will contain after generation. TypeA string with the options < Triangle | TriangleQuad >. Triangle indicates that generated cells in the anisotropic (T-Rex) region will be stored as triangles upon completion. TriangleQuad indicates that anisotropic cells will be stored in a quad-dominant fashion, generally containing both triangle and quadrilateral cell types. DefaultThe default value of this attribute is Triangle. See AlsoExampleThis example shows how to set and get the default option to store T-Rex generated cells as triangles for unstructured domains created within a script. Code pw::DomainUnstructured setDefault TRexCellType Triangle Output Triangle EdgeMaximumLength (Default)
This default is the maximum edge length of an unstructured domain when it is created. TypeA string with the options < Automatic | Boundary | TRexBoundary | NotApplied > or a float in the range (0, infinity). DefaultThe default value of this attribute is Automatic. See AlsoExampleThis example shows how to set and get the default maximum edge length for unstructured domains created within a script. Code pw::DomainUnstructured setDefault EdgeMaximumLength 50 Output 50.0 EdgeMinimumLength (Default)
This default is the minimum edge length of an unstructured domain when it is created. TypeA string with the options < Automatic | Boundary | TRexBoundary | NotApplied > or a float in the range (0, infinity). DefaultThe default value of this attribute is Automatic. See AlsoExampleThis example shows how to set and get the default minimum edge length for unstructured domains created within a script. Code pw::DomainUnstructured setDefault EdgeMinimumLength 10 Output 10.0 NormalMaximumDeviation (Default)
This default is the maximum angle of normal deviation of an unstructured domain when it is created. TypeA float in the range [0, 180). 0 means do not restrict normal deviation. DefaultThe default value of this attribute is 0. See AlsoExampleThis example shows how to set and get the default maximum angle of normal deviation for unstructured domains created within a script. Code pw::DomainUnstructured setDefault NormalMaximumDeviation 15 Output 15.0 SurfaceMaximumDeviation (Default)
This default is the maximum distance of geometric deviation of an unstructured domain when it is created. TypeA float in the range [0, infinity). 0 means do not restrict surface deviation. DefaultThe default value of this attribute is 0. See AlsoExampleThis example shows how to set and get the default maximum distance of geometric deviation for unstructured domains created within a script. Code pw::DomainUnstructured setDefault SurfaceMaximumDeviation .001 Output 0.001 QuadMaximumIncludedAngle (Default)
This default is the maximum included angle in degrees at a corner of a quad in an unstructured domain when it is created. TypeA float in the range (90, 180). DefaultThe default value of this attribute is 150.0. See AlsoExampleThis example shows how to set and get the default quad maximum included angle for unstructured domains created within a script. Code pw::DomainUnstructured setDefault QuadMaximumIncludedAngle 140.0 Output 140.0 QuadMaximumWarpAngle (Default)
This default is the maximum warp (dihedral) angle in degrees between the two tris comprising a quad in an unstructured domain when it is created. TypeA float in the range (0, 90). DefaultThe default value of this attribute is 30.0. See AlsoExampleThis example shows how to set and get the default maximum quad warp angle for unstructured domains created within a script. Code pw::DomainUnstructured setDefault QuadMaximumWarpAngle 60.0 Output 60.0 TRexMaximumLayers (Default)
This default is the maximum number of T-Rex layers of an unstructured domain when it is created. TypeAn integer in the range [0, infinity), where 0 means that there should be no TRex layers. DefaultThe default value of this attribute is 0. See AlsoTRexFullLayers (Default)
This default is the minimum number of fully structured TRex layers of the domain. TypeAn integer in the range [0, infinity), where 0 means that there should be no minimum fully structured TRex layers. DefaultThe default value of this attribute is 0. See AlsoTRexGrowthRate (Default)
This default is the growth rate of TRex layers of an unstructured domain when it is created. TypeA float in the range [1.0, infinity). DefaultThe default value of this attribute is 1.2. See AlsoTRexIsotropicHeight (Default)
This default is the scale factor to be applied to the local isotropic height at which T-Rex stops layer growth via deformation. When set to 1.0, anisotropic cell growth continues at each vertex until one of the tets below the vertex reaches its isotropic height. When a value other that 1.0 is selected, the isotropic height criteria is multiplied by the value, meaning that it is possible to stop vertex advancement prior (value < 1) or beyond (value> 1) true isotropy. TypeA float in the range (0.0, infinity). DefaultThe default value of this attribute is 1.0. See AlsoTRexPushAttributes (Default)
This default sets the option for pushing TRex attributes onto the connectors of domain when a new domain is created. TypeA boolean, where true means that TRex attributes (initial spacing and growth rate or schedule) are pushed down onto the connectors. DefaultThe default value of this attribute is false. See AlsoTRexSpacingSmoothing (Default)
This default is the number of smoothing sweeps to apply to the initial spacing values of TRex layers of the domain. TypeAn integer in the range [0, infinity), where 0 means no smoothing is applied to the initial spacing values. DefaultThe default value of this attribute is 10. See AlsoTRexSpacingRelaxationFactor (Default)
This default is the relaxation factor of smoothing sweeps to apply to the intial spacing values of TRex layers for the domain when it is created. TypeA float in the range [0.0, 1.0), where 0 means no smoothing is applied to the initial spacing values. DefaultThe default value of this attribute is 0.7. See AlsoInitializeInterior
This attribute indicates, if true the interior points are inserted when the domain is initialized or re-initialized; if false interior points will not be automatically generated. TypeA boolean where true indicates that the interior should be initialized, and false indicates that only boundary triangulation should be done. DefaultThe default value of this attribute is true. ExampleThis example shows how to set and get the InitializeInterior attribute for unstructured domains created within a script. Code pw::DomainUnstructured setInitializeInterior false Output 0 getPerimeterPointCount
This action gets the number of grid points on the perimeter of the entity. The first points of an unstructured domain are the perimeter points. Parametersnone ReturnsThis action returns the number of perimeter points. ExampleThis example shows how to get the number of perimeter points for an unstructured domain. $dom(1) is referencing an existing domain. Code puts [$dom(1) getPerimeterPointCount] Output 40 getStructuredLink
This action gets the underlying structured domain this domain is linked to. A link is created via the pw::DomainStructured.triangulate command. Parametersnone ReturnsThis action returns a pw::DomainStructured object if the domain is linked. If the domain is not linked to a structured domain, the result will be an empty string. ExampleThis example shows how to create an unstructured domain linked to a structured domain, and how to retrieve the structured domain from the unstructured domain. Code puts "Creating an unstructured domain linked to [$sdom getName]" Output Creating an unstructured domain linked to dom-1 getTRexCellCount
This action gets the number of T-Rex cells in the domain generated by the last run of the solver. Note that there is no distinction between non-recombinable and recombinable anisotropic cells. Parametersnone ReturnsThis action returns the number of anisotropic (T-Rex) cells. ExampleThis example shows how to get the number of T-Rex cells for an unstructured domain. $dom(1) is referencing an existing domain. Code puts [$dom(1) getTRexCellCount] Output 82 getTRexTriCellCount
This action gets the number of T-Rex triangular cells in the domain generated by the last run of the solver. Note that there is no distinction between non-recombinable and recombinable anisotropic cells. Parametersnone ReturnsThis action returns the number of anisotropic (T-Rex) cells. ExampleThis example shows how to get the number of T-Rex cells for an unstructured domain. $dom(1) is referencing an existing domain. Code puts [$dom(1) getTRexTriCellCount] Output 82 getTRexQuadCellCount
This action gets the number of T-Rex quadrilateral cells in the domain generated by the last run of the solver. Note that there is no distinction between non-recombinable and recombinable anisotropic cells. Parametersnone ReturnsThis action returns the number of anisotropic (T-Rex) cells. ExampleThis example shows how to get the number of T-Rex cells for an unstructured domain. $dom(1) is referencing an existing domain. Code puts [$dom(1) getTRexQuadCellCount] Output 82 getTRexFullLayerCount
This action gets the number of T-Rex full layers in the domain generated by the last run of the solver. This may be different than the user-specified amount in the solver attributes Parametersnone ReturnsThis action returns the number of T-Rex full layers. getTRexTotalLayerCount
This action gets the number of T-Rex total layers in the domain generated by the last run of the solver. This may be different than the user-specified amount in the solver attributes Parametersnone ReturnsThis action returns the number of T-Rex total layers. getTRexMatchConnectorCount
This action gets the number of match connectors emanating from the adjacent grid/wall BC conditions within this domain. Parameters
ReturnsThis action returns the number of connectors. getTRexMatchInitialSpacing
This action gets the minimum, average, and maximum initial spacing of the match connectors connected to the adj grid/wall BCs of this domain. Parametersnone ReturnsThis action returns a vector of the minimum, average, and maximum of the initial spacings. If there are no match connectors, 0.0 will be returned for each of these values ExampleThis example shows how to get the initial spacing on match connectors from an unstructured domain. $dom(1) is referencing an existing domain. Code puts [$dom(1) getTRexMatchInitialSpacing] Output [0.0100 0.0123 0.0200] getTRexMatchGrowthRate
This action gets the minimum, average, and maximum growth rates of the match connectors connected to the adj grid/wall BCs of this domain. Parametersnone ReturnsThis action returns a vector of the minimum, average, and maximum of the growth rates. If there are no match connectors, 0.0 will be returned for each of these values ExampleThis example shows how to get the average growth rate on match connectors from an unstructured domain. $dom(1) is referencing an existing domain. Code puts [$dom(1) getTRexMatchGrowthRate] Output [1.0100 1.0123 1.0200] getTRexMatchLayerCount
This action gets the minimum, average, and maximum layer count of the match connectors connected to the adj grid/wall BCs of this domain. Parametersnone ReturnsThis action returns a vector of the minimum, average, and maximum of the layer counts. If there are no match connectors, 0.0 will be returned for each of these values ExampleThis example shows how to get the average initial spacing on match connectors from an unstructured domain. $dom(1) is referencing an existing domain. Code puts [$dom(1) getTRexMatchLayerCount] Output [10.0 20.0 30.0] project
This action projects this domain onto one or more database entities. Parameters
ReturnsThis action returns nothing. See Alsopw::Domain.getDefaultProjectDirection ExampleThis example shows how to project a domain linearly along the Z axis onto the given quilt. $dom(1) and $qlt(1) are referencing an existing domain and quilt. Code $dom(1) project -type Linear -direction "0 0 1" $qlt(1) join
This action joins the given domain to this domain; for joining multiple domains construct a pw::FaceUnstructured object. Parameters
ReturnsThis action returns nothing. ExampleThis example shows how to join two unstructured domains. $dom(1) and $dom(2) are referencing existing domains. Code $dom(1) join $dom(2) triangulate
This action creates a new unstructured domain by triangulating the quads in this domain. The new domain is a copy whose attributes are the same as this domain, with the CellType and TRexCellType solver attributes set to TriangleQuad. It is an error to triangulate an unstructured domain that does not contain quad elements. Parameters
ReturnsThis action returns a pw::DomainUnstructured object. flipOrientation
This action flips the orientation of this domain. A domain used in a baffle face can not be flipped. Parametersnone ReturnsThis action returns nothing. ExampleThis example shows how to flip the orientation of an unstructured domain. $dom(1) is referencing an existing domain. Code $dom(1) flipOrientation alignOrientation
This action aligns the normal orientation of the given domains with this domain. If any domains in the given list are not topologically connected to this domain, they will be ignored. An error is raised if a domain in a baffle face is specified in the list of domains. Parameters
ReturnsThis action returns nothing. ExampleThis example shows how to align the orientation of several unstructured domains with $dom(1). $dom(1), $dom(2) and $dom(3) are referencing existing domains. Code $dom(1) alignOrientation [list $dom(2) $dom(3)] getSolvedAlgorithm
This action gets the algorithm that was used when initializing the interior of the domain. Parametersnone ReturnsThis action returns a string with possible values < Delaunay | AdvancingFront | AdvancingFrontOrtho | ThinSurfaceInterpolation | NotSolved >. See the unstructured solver attribute Algorithm for more information on the different algorithms. NotSolved indicates that the domain is uninitialized. ExampleThis example shows how to get the solved algoritm. $dom(1) is referencing an existing domain. Code $dom(1) getSolvedAlgorithm Output Delaunay getSurfaceEdgeMinimumLength
This action gets the calculated minimum surface edge length based on triangluar area of the cells. Parametersnone ReturnsThis action returns the minimum surface edge length. ExampleThis example shows how to get the minimum surface edge length for an unstructured domain. $dom(1) is referencing an existing domain. Code puts [$dom(1) getSurfaceEdgeMinimumLength] Output 1.0344963221899095 getSurfaceEdgeMaximumLength
This action gets the calculated maximum surface edge length based on triangluar area of the cells. Parametersnone ReturnsThis action returns the maximum surface edge length. ExampleThis example shows how to get the maximum surface edge length for an unstructured domain. $dom(1) is referencing an existing domain. Code puts [$dom(1) getSurfaceEdgeMaximumLength] Output 2.013040874595685 getBoundaryEdgeMinimumLength
This action gets the minimum boundary edge length. Parametersnone ReturnsThis action returns the minimum boundary edge length. ExampleThis example shows how to get the minimum boundary edge length for an unstructured domain. $dom(1) is referencing an existing domain. Code puts [$dom(1) getBoundaryEdgeMinimumLength] Output 1.4729734060253794 getBoundaryEdgeMaximumLength
This action gets the maximum boundary edge length. Parametersnone ReturnsThis action returns the maximum boundary edge length. ExampleThis example shows how to get the maximum boundary edge length for an unstructured domain. $dom(1) is referencing an existing domain. Code puts [$dom(1) getBoundaryEdgeMaximumLength] Output 1.4907229247565557 getUnstructuredSolverAttribute
This action gets the named unstructured solver attribute. Parameters
ReturnsThis action returns the actual or default value of the attribute. ExampleThis example shows how to set and get the default and actual values of the unstructured solver attribute: normal maximum deviation. $dom(1) is referencing an existing domain. Code pw::DomainUnstructured setDefault NormalMaximumDeviation 10.0 Output 15.0 See AlsosetUnstructuredSolverAttribute
This action sets the named unstructured solver attribute. Parameters
ReturnsThis action returns nothing. ExampleThis example shows how to set the unstructured solver attribute: maximum edge length. $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute EdgeMaximumLength Boundary See AlsoAlgorithm
This attribute is the algorithm to use when initializing the interior of the domain. TypeA string with options < Delaunay | AdvancingFront | AdvancingFrontOrtho | ThinSurfaceInterpolation >. Algorithms are differentiated in the manner in which they place interior grid points. The Delaunay method inserts points at the circumsphere centroid of existing triangles, later smoothing the position to improve cell quality. The AdvancingFront method inserts points adjacent to the (advancing) boundary at positions that form nearly equilateral triangles with the front edge. The AdvancingFrontOrtho method inserts grid point at positions normal to the front edge, generally resulting in two right angle triangles. The ThinSurfaceInterpolation algorithm uses a psuedo-structured approach to generating interior points and is best suited for roughly quadrilateral domains with similar dimensions on opposing sides. DefaultThe default value of this attribute is set using the current value of the default Algorithm (Default). See AlsoExampleThis example shows how to set and get the unstructured solver Algorithm attribute. $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute Algorithm Delaunay Output Delaunay IsoCellType
This attribute controls what type of cells a domain will contain in the isotropic region (all cells if T-Rex is not applied) after generation. TypeA string with one of the values < Triangle | TriangleQuad >. Triangle indicates that generated cells in the isotropic region (all cells when T-Rex is not applied) will be stored as triangles upon completion. TriangleQuad indicates that isotropic cells will be stored in a quad-dominant fashion, generally containing both triangle and quad cell types. DefaultThe default value of this attribute is set using the current value of the default IsoCellType (Default). See AlsoExampleThis example shows how to set and get the unstructured solver IsoCellType attribute. $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute IsoCellType TriangleQuad Output TriangleQuad ShapeConstraint
This attribute is the shape constraint of the unstructured domain. TypeA string with one of the values < Free | Database > or an explicit list of pw::DatabaseEntity objects. Database indicates that the constraint(s) will be derived from the domain’s pw::Edges (pw::Connectors). DefaultThe default value of this attribute is Free or Database, depending on the connectors used in constructing this domain. ExampleThis example shows how to set and get the unstructured solver ShapeConstraint attributes. $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute ShapeConstraint Free Output Free ShapeProjection
This attribute is the shape projection method when constrained to database entities. TypeA string with options < Closest | Linear > or an explicit normal vector for linear projection. When Linear is specified the projection uses the domain’s default projection direction, which can be queried with pw::Domain.getDefaultProjectDirection. DefaultThe default value of this attribute is Closest. See Alsopw::Domain.getDefaultProjectDirection ExampleThis example shows how to set and get the unstructured solver ShapeProjection attribute. $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute ShapeProjection Linear Output Linear EdgeMaximumLength
This attribute is the maximum edge length of the domain. TypeA string with options < Automatic | Boundary | TRexBoundary | NotApplied > or a float in the range (0, infinity). DefaultThe default value of this attribute is set using the current value of the default EdgeMaximumLength (Default). See AlsoExampleThis example shows how to set and get the unstructured solver EdgeMaximumLength attribute. $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute EdgeMaximumLength 2.5 Output 2.5 EdgeMinimumLength
This attribute is the minimum edge length of the domain. TypeA string with options < Automatic | Boundary | TRexBoundary | NotApplied > or a float in the range (0, infinity). DefaultThe default value of this attribute is set using the current value of the default EdgeMinimumLength (Default). See AlsoExampleThis example shows how to set and get the unstructured solver EdgeMinimumLength attribute. $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute EdgeMinimumLength Boundary Output Boundary NormalMaximumDeviation
This attribute is the maximum angle of normal deviation of the domain. TypeA float in the range [0, 180), where 0 means do not restrict normal deviation. DefaultThe default value of this attribute is set using the current value of the default NormalMaximumDeviation (Default). See AlsoNormalMaximumDeviation (Default) ExampleThis example shows how to set and get the unstructured solver NormalMaximumDeviation attribute. $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute NormalMaximumDeviation 10 Output 10.0 SurfaceMaximumDeviation
This attribute is the maximum distance of geometric deviation of the domain. TypeA float in the range [0, infinity), where 0 means do not restrict surface deviation. DefaultThe default value of this attribute is set using the current value of the default SurfaceMaximumDeviation (Default). See AlsoSurfaceMaximumDeviation (Default) ExampleThis example shows how to set and get the unstructured solver SurfaceMaximumDeviation attribute. $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute SurfaceMaximumDeviation .01 Output 0.01 QuadMaximumIncludedAngle
This attribute is the maximum included angle in degrees at a corner of a quad in the domain. TypeA float in the range (90, 180). DefaultThe default value of this attribute is set using the current value of the default QuadMaximumIncludedAngle (Default), typically 174.0 degrees. See AlsoQuadMaximumIncludedAngle (Default) ExampleThis example shows how to set and get the unstructured solver QuadMaximumIncludedAngle attribute. $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute QuadMaximumIncludedAngle 160 Output 160.0 QuadMaximumWarpAngle
This attribute is the maximum warp (dihedral) angle in degrees between the two tris comprising a quad in the domain. TypeA float in the range (0, 90). DefaultThe default value of this attribute is set using the current value of the default QuadMaximumWarpAngle (Default). See AlsoQuadMaximumWarpAngle (Default) ExampleThis example shows how to set and get the unstructured solver QuadMaximumWarpAngle attribute. $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute QuadMaximumWarpAngle 30 Output 30.0 SwapCellsWithNoInteriorPoints
This attribute is the flag which controls whether triangle cells should swap diagonals with a neighboring triangle cell if it contains no interior points. If this is set to true, the unstructured solver will attempt to swap diagonals of triangle cells in order to ensure at least one interior point, although this is not guaranteed for domains with a coarse interior or for cells without a neighboring triangle that has at least one interior point. TypeA boolean, where true means to swap cell edges for triangle cells that have no interior points. DefaultThe default value of this attribute is false. AlignCellsToSources
This attribute is the flag which controls whether cells should be aligned to source curves. This only has an effect when the domain is constrained to database entities, and those same database entities have source curves constrained to them. Also, this only affects the isotropic cells and not the TRex cells. TypeA boolean, where true means to align cell edges to source curves. DefaultThe default value of this attribute is true. TRexMaximumLayers
This attribute is the maximum number of TRex layers of the domain. TypeAn integer in the range [0, infinity), where 0 means do not grow TRex layers. DefaultThe default value of this attribute is 0. See AlsoExampleThis example shows how to set and get the unstructured solver TRexMaximumLayers attribute. $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute TRexMaximumLayers 20 Output 20 TRexFullLayers
This attribute is the minimum number of fully structured TRex layers of the domain. TypeAn integer in the range [0, infinity), where 0 means there is no minimum number of fully structured TRex layers. DefaultThe default value of this attribute is 0. See AlsoExampleThis example shows how to set and get the unstructured solver TRexFullLayers attribute. $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute TRexFullLayers 10 Output 10 TRexGrowthRate
This attribute is the growth rate of TRex layers for the domain. TypeA float in the range [1.0, infinity). DefaultThe default value of this attribute is 1.2. See AlsoExampleThis example shows how to set and get the unstructured solver TRexGrowthRate $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute TRexGrowthRate 1.1 Output 1.1 TRexGrowthProfile
This attribute specifies the growth rate for each anisotropic layer. TypeA list of float values indicating the growth rate to apply at each layer in the anisotropic region of the domain to compute the height of the next layer. Each float in the list must be greater than zero. If this attribute is specified as a non-empty list, the TRexGrowthRate attribute is ignored. If the length of this list is less than the prescribed number of layers for the domain, the last element is used as the growth rate for all subsequent layers. DefaultThe default value of this attribute is no growth profile, indicating that the scalar TRexGrowthRate value be used for all layer height calculations. TRexIsotropicHeight
This attribute specifies the scale factor to be applied to the local isotropic height at which T-Rex stops layer growth via deformation. When set to 1.0, anisotropic cell growth continues at each vertex until one of the tets below the vertex reaches its isotropic height. When a value other that 1.0 is selected, the isotropic height criteria is multiplied by the value, meaning that it is possible to stop vertex advancement prior (value < 1) or beyond (value> 1) true isotropy. TypeA float in the range (0.0, infinity). DefaultThe default value of this attribute is 1.0. See AlsoExampleThis example shows how to set and get the unstructured solver TRexIsotropicHeight attribute. $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute TRexIsotropicHeight 1.1 Output 1.1 TRexPushAttributes
This attribute is the flag for pushing TRex attributes onto the connectors of this domain. TypeA boolean, where true means that TRex attributes (initial spacing and growth rate or profile) are pushed down onto the connectors. DefaultThe default value of this attribute is false. See AlsoExampleThis example shows how to set and get the unstructured solver TRexPushAttributes attribute. $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute TRexPushAttributes true Output 1 TRexSpacingSmoothing
This attribute is the number of smoothing sweeps to apply to the initial spacing values of TRex layers of the domain. TypeAn integer in the range [0, infinity), where 0 means no smoothing is applied to the initial spacing values. DefaultThe default value of this attribute is 3. See AlsoTRexSpacingSmoothing (Default) ExampleThis example shows how to set and get the unstructured solver TRexSpacingSmoothing attribute. $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute TRexSpacingSmoothing 0 Output 0 TRexSpacingRelaxationFactor
This attribute is the relaxation factor of smoothing sweeps to apply to the intial spacing values of TRex layers for the domain. TypeA float in the range [0.0, 1.0), where 0 means no smoothing is applied to the initial spacing values. DefaultThe default value of this attribute is 0.7. See AlsoTRexSpacingRelaxationFactor (Default) ExampleThis example shows how to set and get the unstructured solver TRexSpacingRelaxationFactor attribute. $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute \ Output 0.5 TRexCellType
This attribute controls what type of cells a T-Rex generated domain will contain in the anisotropic region after generation. TypeA string with the options < Triangle | TriangleQuad >. Triangle indicates that generated cells in the anisotropic (T-Rex) region will be stored as triangles upon completion. TriangleQuad indicates that anisotropic cells will be stored in a quad-dominant fashion, generally containing both triangle and quad cell types. DefaultThe default value of this attribute is set using the current value of the default TRexCellType. See AlsoExampleThis example shows how to set and get the unstructured solver TRexCellType attribute. $dom(1) is referencing an existing domain. Code $dom(1) setUnstructuredSolverAttribute TRexCellType TriangleQuad Output TriangleQuad |
This action creates a new unstructured domain object.
pw::DomainUnstructured create
This creates new unstructured domain objects on the given database entities.
pw::DomainUnstructured createOnDatabase ?-merge tolerance? ?-splitConnectors split_angle? ?-joinConnectors join_con_angle? ?-joinDomains join_dom_angle? ?-parametricConnectors mode? ?-reject rejectVar? entities
This action creates new unstructured domain objects from the given connectors.
pw::DomainUnstructured createFromConnectors ?-manifold? ?-solid? ?-reject rejectVar? connectors
This action, given a list of point values (XYZ or database- constrained) and at least one cell-type array, creates a new unstructured domain.
pw::DomainUnstructured createFromPoints ?-triangles triCellArray? ?-quadrilaterals quadCellArray? ?-splitAngle angle? ?-splitMultiloop? points
This action joins as many of the given unstructured domains together as possible.
pw::DomainUnstructured join ?-reject rejectVar? domains
This action checks if a list of edges would be valid for defining an unstructured domain.
pw::DomainUnstructured qualifyEdges edges
This action gets a list of connectors that will close an edge to be used for an unstructured domain.
pw::DomainUnstructured getAutoCompleteHint edge
This action gets a list of domains that are constrained to the given databases.
pw::DomainUnstructured getDomainsFromDatabase ?-exclusive? database
This default is the meshing algorithm of an unstructured domain when it is created.
pw::DomainUnstructured get/setDefault Algorithm algorithm
This default attribute controls what type of cells a domain will contain in the isotropic region (all cells if T-Rex is not applied) after generation.
pw::DomainUnstructured get/setDefault IsoCellType type
This default is the boundary decay factor of an unstructured domain when it is created.
pw::DomainUnstructured get/setDefault BoundaryDecay value
This default attribute contains what type of cells a T-Rex generated domain will contain after generation.
pw::DomainUnstructured get/setDefault TRexCellType type
This default is the maximum edge length of an unstructured domain when it is created.
pw::DomainUnstructured get/setDefault EdgeMaximumLength value
This default is the minimum edge length of an unstructured domain when it is created.
pw::DomainUnstructured get/setDefault EdgeMinimumLength value
This default is the maximum angle of normal deviation of an unstructured domain when it is created.
pw::DomainUnstructured get/setDefault NormalMaximumDeviation value
This default is the maximum distance of geometric deviation of an unstructured domain when it is created.
pw::DomainUnstructured get/setDefault SurfaceMaximumDeviation value
This default is the maximum included angle in degrees at a corner of a quad in an unstructured domain when it is created.
pw::DomainUnstructured get/setDefault QuadMaximumIncludedAngle value
This default is the maximum warp (dihedral) angle in degrees between the two tris comprising a quad in an unstructured domain when it is created.
pw::DomainUnstructured get/setDefault QuadMaximumWarpAngle value
This default is the maximum number of T-Rex layers of an unstructured domain when it is created.
pw::DomainUnstructured get/setDefault TRexMaximumLayers layers
This default is the minimum number of fully structured TRex layers of the domain.
pw::DomainUnstructured get/setDefault TRexFullLayers layers
This default is the growth rate of TRex layers of an unstructured domain when it is created.
pw::DomainUnstructured get/setDefault TRexGrowthRate growth_rate
This default is the scale factor to be applied to the local isotropic height at which T-Rex stops layer growth via deformation.
pw::DomainUnstructured get/setDefault TRexIsotropicHeight value
This default sets the option for pushing TRex attributes onto the connectors of domain when a new domain is created.
pw::DomainUnstructured get/setDefault TRexPushAttributes push
This default is the number of smoothing sweeps to apply to the initial spacing values of TRex layers of the domain.
pw::DomainUnstructured get/setDefault TRexSpacingSmoothing smooth
This default is the relaxation factor of smoothing sweeps to apply to the intial spacing values of TRex layers for the domain when it is created.
pw::DomainUnstructured get/setDefault TRexSpacingRelaxationFactor factor
This attribute indicates, if true the interior points are inserted when the domain is initialized or re-initialized; if false interior points will not be automatically generated.
pw::DomainUnstructured get/setInitializeInterior init
This action gets the number of grid points on the perimeter of the entity.
$dom getPerimeterPointCount
This action gets the underlying structured domain this domain is linked to.
$dom getStructuredLink
This action gets the number of T-Rex cells in the domain generated by the last run of the solver.
$dom getTRexCellCount
This action gets the number of T-Rex triangular cells in the domain generated by the last run of the solver.
$dom getTRexTriCellCount
This action gets the number of T-Rex quadrilateral cells in the domain generated by the last run of the solver.
$dom getTRexQuadCellCount
This action gets the number of T-Rex full layers in the domain generated by the last run of the solver.
$dom getTRexFullLayerCount
This action gets the number of T-Rex total layers in the domain generated by the last run of the solver.
$dom getTRexTotalLayerCount
This action gets the number of match connectors emanating from the adjacent grid/wall BC conditions within this domain.
$dom getTRexMatchConnectorCount ?-nodeCount nodeCountVar?
This action gets the minimum, average, and maximum initial spacing of the match connectors connected to the adj grid/wall BCs of this domain.
$dom getTRexMatchInitialSpacing
This action gets the minimum, average, and maximum growth rates of the match connectors connected to the adj grid/wall BCs of this domain.
$dom getTRexMatchGrowthRate
This action gets the minimum, average, and maximum layer count of the match connectors connected to the adj grid/wall BCs of this domain.
$dom getTRexMatchLayerCount
This action removes all of the domain’s edges.
$dom removeEdges ?-preserve?
This action projects this domain onto one or more database entities.
$dom project ?-type proj_type? ?-direction direction? ?-center center? ?-axis point normal? ?-interior? ?dbentities?
This action creates a new unstructured domain by triangulating the quads in this domain.
$dom triangulate ?method?
This action flips the orientation of this domain.
$dom flipOrientation
This action aligns the normal orientation of the given domains with this domain.
$dom alignOrientation domains
This action gets the algorithm that was used when initializing the interior of the domain.
$dom getSolvedAlgorithm
This action gets the calculated minimum surface edge length based on triangluar area of the cells.
$dom getSurfaceEdgeMinimumLength
This action gets the calculated maximum surface edge length based on triangluar area of the cells.
$dom getSurfaceEdgeMaximumLength
This action gets the minimum boundary edge length.
$dom getBoundaryEdgeMinimumLength
This action gets the maximum boundary edge length.
$dom getBoundaryEdgeMaximumLength
This action gets the named unstructured solver attribute.
$dom getUnstructuredSolverAttribute att_name ?value_type?
This action sets the named unstructured solver attribute.
$dom setUnstructuredSolverAttribute att_name att_value
This attribute is the algorithm to use when initializing the interior of the domain.
$dom get/setUnstructuredSolverAttribute Algorithm < Delaunay | AdvancingFront | AdvancingFrontOrtho | ThinSurfaceInterpolation >.
This attribute controls what type of cells a domain will contain in the isotropic region (all cells if T-Rex is not applied) after generation.
$dom get/setUnstructuredSolverAttribute IsoCellType type
This attribute is the shape constraint of the unstructured domain.
$dom get/setUnstructuredSolverAttribute ShapeConstraint < constraint | db_list >
This attribute is the shape projection method when constrained to database entities.
$dom get/setUnstructuredSolverAttribute ShapeProjection < method | normal >
This attribute is the maximum edge length of the domain.
$dom get/setUnstructuredSolverAttribute EdgeMaximumLength value
This attribute is the minimum edge length of the domain.
$dom get/setUnstructuredSolverAttribute EdgeMinimumLength value
This attribute is the maximum angle of normal deviation of the domain.
$dom get/setUnstructuredSolverAttribute NormalMaximumDeviation value
This attribute is the maximum distance of geometric deviation of the domain.
$dom get/setUnstructuredSolverAttribute SurfaceMaximumDeviation value
This attribute is the maximum included angle in degrees at a corner of a quad in the domain.
$dom get/setUnstructuredSolverAttribute QuadMaximumIncludedAngle value
This attribute is the maximum warp (dihedral) angle in degrees between the two tris comprising a quad in the domain.
$dom get/setUnstructuredSolverAttribute QuadMaximumWarpAngle value
This attribute is the flag which controls whether triangle cells should swap diagonals with a neighboring triangle cell if it contains no interior points.
$dom get/setUnstructuredSolverAttribute SwapCellsWithNoInteriorPoints value
This attribute is the flag which controls whether cells should be aligned to source curves.
$dom get/setUnstructuredSolverAttribute AlignCellsToSources value
This attribute is the maximum number of TRex layers of the domain.
$dom get/setUnstructuredSolverAttribute TRexMaximumLayers value
This attribute is the minimum number of fully structured TRex layers of the domain.
$dom get/setUnstructuredSolverAttribute TRexFullLayers value
This attribute is the growth rate of TRex layers for the domain.
$dom get/setUnstructuredSolverAttribute TRexGrowthRate value
This attribute specifies the growth rate for each anisotropic layer.
$domain get/setUnstructuredSolverAttribute TRexGrowthProfile profile
This attribute specifies the scale factor to be applied to the local isotropic height at which T-Rex stops layer growth via deformation.
$dom get/setUnstructuredSolverAttribute TRexIsotropicHeight value
This attribute is the flag for pushing TRex attributes onto the connectors of this domain.
$dom get/setUnstructuredSolverAttribute TRexPushAttributes value
This attribute is the number of smoothing sweeps to apply to the initial spacing values of TRex layers of the domain.
$dom get/setUnstructuredSolverAttribute TRexSpacingSmoothing value
This attribute is the relaxation factor of smoothing sweeps to apply to the intial spacing values of TRex layers for the domain.
$dom get/setUnstructuredSolverAttribute TRexSpacingRelaxationFactor value
This attribute controls what type of cells a T-Rex generated domain will contain in the anisotropic region after generation.
$dom get/setUnstructuredSolverAttribute TRexCellType value
This action creates a new edge object.
pw::Edge create
This action adds a connector to the end of this edge.
$edge addConnector connector
This action adds an edge to the domain.
$dom addEdge edge
This attribute is the size field decay factor used as the decay when a size field is generated for this entity.
$entity get/setSizeFieldDecay decay
This action creates an unstructured domain by triangulating this domain.
$dom triangulate ?-link? ?-unbalanced option? ?method?
This action gets the default projection direction for this domain.
$dom getDefaultProjectDirection