Glyph Version 7.22.2 |
pw:: BlockExtrudedAn extruded block is a step-wise constructed prismatic volume originating from one or more pw::Face objects. It has a fixed number of prismatic layers in the computational K direction. Derives Frompw::Object pw::Entity pw::GridEntity pw::Block Summary
create
This action creates a new extruded block object. ParametersThere are no parameters. ReturnsThis action returns a new pw::BlockExtruded object. See AlsocreateFromPoints
This action, given at least one cell-type array and an extruded path of a list of lists of xyz vector values, creates an extruded block. No extruded block will be created if the cell-type array(s) define more than one face. ParametersThe following optional 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 the particular cell. For example, there are 3 vertices for each triangle. Therefore, the ‘triCellArray’ will consist of N sub-lists, where each sub-list has 3 indices representing the three vertices of the triangle. The indices are 1-based. These arrays describe the base face layer of the block.
The next two parameters are additional optional parameters, neither of which is required. They are used when creating the domain(s) for the base face of the new extruded block.
This is a required parameter
ReturnsThis action returns the newly created pw::BlockExtruded block. See AlsoExampleThis example shows how a rotated extruded block can be created from a set of points and quadrilateral connectivity. Code # Rotate a list of points an angle about an axis getPoint
This action gets the position of a block grid point. Parameters
InformationEither index or ijk_index must be specified. ReturnsThis action returns a point giving the grid point position (may be in the form “u v dbentity”). setPoint
This action sets the position of a block interior grid point. Parameters
InformationEither index or ijk_index must be specified. ReturnsThis action returns nothing. InformationBlock points are not currently db-constrained, so any database information in the point argument is converted to pure XYZ data before being stored. setPoints
This action extrudes the block along the path specified by the extrudePoints list. Parameters
ReturnsThis action returns nothing. ExampleThis example shows how a rotated extruded block can be created from a set of points and triangle connectivity. Code # Rotate a list of points an angle about an axis isInteriorIndex
This action checks to see if an index corresponds to a point in the interior of the block. Parameters
InformationEither index or ijk_index must be specified. ReturnsThis action returns true if the index is an interior point. getAdjacentIndices
This action returns the indices that are directly connected to the specified index. Parameters
InformationEither index or ijk_index must be specified. ReturnsThis action returns a list of indices representing the adjacent coordinates. The form of each index will be the same as the input form. If index is used or -linear is specified, the result will be a list of integer linear indices. If ijk_index is used and -linear is not specified, the result will be a list of ijk indices. getCellsUsingIndex
This action returns the indices that are directly connected to the specified index. Parameters
InformationEither index or ijk_index must be specified. ReturnsThis action returns a list of cell entries using the specified point. Each cell entry will be a list of point indices comprising the cell. The form of each point index will be the same as the input form. If index is used or -linear is specified, each cell entry will be a list of integer linear indices. If ijk_index is used and -linear is not specified, each cell entry will be a list of ijk indices. getPosition
This action gets the position in the defining space of the block at the given index. Parameters
ReturnsThis action returns a point giving the position on the block (may be in the form “u v dbentity”). InformationEither index or ijk_index must be specified. Even though it is not needed, the -grid switch is included here to be consistent with the other grid entity getPosition methods. The following calls are equivalent: $extblk1 getPosition -grid [list 1 2 3] See Alsopw::Block.getPosition pw::BlockStructured.getPosition pw::Connector.getPosition pw::Domain.getPosition pw::DomainStructured.getPosition getXYZ
This action gets the position of the block in model space at the given index. Parameters
ReturnsThis action returns an XYZ vector. InformationEither index or ijk_index must be specified. Even though it is not needed, the -grid switch is included here to be consistent with the other grid entity getPosition methods. The following calls are equivalent: $extblk1 getXYZ -grid 22 See Alsopw::Block.getXYZ pw::BlockStructured.getXYZ pw::Connector.getXYZ pw::Domain.getXYZ pw::DomainStructured.getXYZ getCell
This action gets the indices of the given cell. Parameters
InformationEither index or ijk_index must be specified. ReturnsThis action returns an integer list of linear point indices if the index parameter is used, or list of ijk indices if the ijk_index parameter is used. getFace
This action gets the face at the given index or computational boundary. Parameters
InformationEither index or boundary must be specified. ReturnsThis action returns a pw::FaceUnstructured object. addFace
This action adds a face to the block. Only a single face can be added to the block, and it must be added prior to extrusion. Parameters
ReturnsThis action returns nothing. canReExtrude
This action returns true if the entity can be re-extruded. Parametersnone ReturnsThis action returns a boolean value indicating if the entity can be re-extruded. ExampleThis example shows how to get a list of all entities that can be re-extruded. Code puts "Entities valid for re-extrusion:" getExtrusionSolverAttribute
This action gets the named extrusion solver attribute. Parameters
ReturnsThe action returns the actual or default value of the attribute. The returned data-type is dependent on the target attribute. See AlsosetExtrusionSolverAttribute, Generic Extrusion Solver Attributes, Translational Extrusion Solver Attributes, Path Extrusion Solver Attributes, Rotational Extrusion Solver Attributes, Normal Extrusion Solver Attributes, Spacing Extrusion Solver Attributes setExtrusionSolverAttribute
This action sets the named extrusion solver attribute. Parameters
ReturnsThis action returns nothing. See AlsogetExtrusionSolverAttribute, Generic Extrusion Solver Attributes, Translational Extrusion Solver Attributes, Path Extrusion Solver Attributes, Rotational Extrusion Solver Attributes, Normal Extrusion Solver Attributes, Spacing Extrusion Solver Attributes getExtrusionBoundaryCondition
This action gets the boundary condition at a given connector region. Parameters
ReturnsThis action returns the string name of the boundary condition, except in the case of DatabaseConstrained and AdjacentGrid. In those cases, this action returns a list containing the name of the boundary condition and the pertinent entities (pw::DatabaseEntity or pw::DomainStructured). Boundary Conditions
See AlsosetExtrusionBoundaryCondition
This action sets the boundary condition at a given connector region. Parameters
ReturnsThis action returns nothing. See AlsoMode
This gets/sets the extrusion mode of this block. This has no effect or returns the default if the block is not suitable for extrusion or re-extrusion. TypeA string with options < NormalAlgebraic | Path | Rotate | Translate >. DefaultThe default for this attribute is NormaAlgebraic. See AlsoStopAtPositiveSkewJacobian
This enables / disables the positive skew Jacobian stop condition. TypeA boolean or string with options < Default | Off > where Off or false disables the positive skew Jacobian stop condition. DefaultThe default for this attribute is true. See AlsoStopAtZeroJacobian
This enables / disables the zero Jacobian stop condition. TypeA boolean or string with options < Default | Off > where Off or false disable the zero Jacobian stop condition. DefaultThe default for this attribute is true. See AlsoStopAtNegativeSkewJacobian
This enables / disables the negative skew Jacobian stop condition. TypeA boolean or string with options < Default | Off > where Off or false disable the negative skew Jacobian stop condition. DefaultThe default for this attribute is true. See AlsoStopAtNegativeJacobian
This enables / disables the negative Jacobian stop condition. TypeA boolean or string with options < Default | Off > where Off or false disable the negative Jacobian stop condition. DefaultThe default for this attribute is true. See AlsoDirectionFlipped
This specifies whether the extrusion direction is flipped. TypeA boolean where true indicates the extrusion direction is reversed. DefaultThe default for this attribute is false. See AlsoPlaneAngleTolerance
This specifies the angle tolerance for determining when an arbitrary plane BC is considered equal to a Cartesian plane BC. TypeA string with the value < Default > or a float in the range [0.0, 90.0). DefaultThe default for this attribute is 0.0. See AlsoPlaneDeviationTolerance
This specifies the deviation tolerance for determining when an arbitrary plane BC is considered to be planar. TypeA string with the value < Default > or a float in the range [0.0, inf). DefaultThe default for this attribute is 0.0. See AlsoTranslateDirection
This gets/sets the direction vector for translate extrusion. TypeA direction vector. DefaultThe default for this attribute is (1, 0, 0). See AlsoTranslateDistance
This gets/sets the distance for translate extrusion. TypeA float indicating the total distance for the translation extrusion. The valid range is any value greater than 0.0. DefaultThe default for this attribute is 1.0. See AlsoPathConnectors
This gets/sets a list of connectors for the path. TypeA list of pw::Connector optionally preceded with a string with value < Forward | Reverse > indicating the direction of the chain of connectors. When querying, the direction is always the first entry in the list. The remaining list members are the connectors comprising the path. DefaultThe default for this attribute is an empty list. See AlsoPathMaximumSteps
This is the maximum number of steps available as the path extrusion is configured. TypeAn integer indicating the computed maximum number of avaiable path extrusion steps. InformationThis attribute is read only. See AlsoPathUseTangent
This gets/sets the flag indicating if the path extrusion should be rotated tangentally to the path connector. TypeA boolean indicating whether the path extrusion should be rotated. DefaultThe default for this attribute is true. See AlsoRotateAxisStart
This gets/sets the starting point of the rotation axis for rotate extrusion. TypeAn xyz vector for the start of the rotation axis. DefaultThe default for this attribute is (0, 0, 0). See AlsoRotateAxisEnd
This gets/sets the ending point of the rotation axis for rotate extrusion. TypeAn xyz vector for the end of the rotation axis. DefaultThe default for this attribute is (1, 0, 0). See AlsoRotateAngle
This gets/sets the angle (degrees) for rotational extrusion. TypeA float in the range [0.0, 360]. DefaultThe default for this attribute is 0.0. See AlsoNormalMaximumStepSize
This gets/sets the upper limit for the marching step size. TypeA string with the value < Default > or a float in the range [0.0, infinity) where 0.0 disables the upper limit. DefaultThe default for this attribute is 0.0. See AlsoNormalMinimumStepSize
This gets/sets a upper limit for the marching step size. TypeA string with the value < Default > or a float in the range [0.0, infinity) where 0.0 disables the upper limit. DefaultThe default for this attribute is 0.0. See AlsoNormalCornerFactor
This gets/sets a scale factor for reducing the local marching step in convex regions and increasing the marching step size in concave regions. TypeA string with the value < Default > or a float in the range [1.0, 100). DefaultThe default for this attribute is 5.0. InformationThis attribute only affects algebraic normal extrusion. See AlsoNormalDirectionRelaxation
The normals in the marching direction are smoothed locally using a LaPlace filter. This option gets/sets the relaxation factor for the filter. TypeA string with the value < Default > or a float in the range [0.0, 1.0]. DefaultThe default for this attribute is Default. InformationThis attribute only affects algebraic normal extrusion. See AlsoNormalDirectionRelaxationIterations
The normals in the marching direction are smoothed locally using a Lalace filter. This option gets/sets the number of marching iterations for the filter. TypeA string with the value < Default > or an integer in the range [0, infinity). DefaultThe default for this attribute is Default. InformationThis attribute only affects algebraic normal extrusion. See AlsoNormalStepSizeRelaxation
This gets/sets the relaxation smoothing factor. The marching step size is smoothed locally using a LaPlace filter. TypeA string with the value < Default > or a float in the range [0.0, 1.0]. DefaultThe default for this attribute is Default. InformationThis attribute only affects algebraic normal extrusion. See AlsoNormalStepSizeRelaxationIterations
This gets/sets the number of marching iterations for the LaPlace filter. The marching step size is smoothed locally using a LaPlace filter. TypeA string with the value < Default > or an integer in the range [0, infinity). DefaultThe default for this attribute is Default. InformationThis attribute only affects algebraic normal extrusion. See AlsoNormalFeatureSmoothing
This specifies whether knife edge features are smoothed. TypeA string with the value < Default > or a boolean where false diables smoothing of knife edge features. DefaultThe default for this attribute is true. See AlsoNormalQualitySmoothing
This enables/disables normal smoothing based on a quality metric. TypeA string with the value < Default > or a boolean where false disables normal quality-based smoothing. DefaultThe default for this attribute is true. See AlsoNormalInteriorOnlySmoothing
This enables/disables interior only quality based smoothing. TypeA string with the value < Default > or a boolean where false disables interior-only quality-based smoothing. DefaultThe default for this attribute is false. See AlsoNormalMaximumIterationsSmoothingNormalBlendExponentSmoothing
This specifies/retrieves the blend exponent for smoothing. A value of zero uses the local minimum cell quality metric at the node normal. A value of 2 uses the average cell quality metric at the node normal. A value in between is a blending of the two approaches. TypeA string with the value < Default > or a float in the range (0.0, 2.0). DefaultThe default for this attribute is 2.0. See AlsoSpacingMode
This gets/sets the spacing configuration for the extrusion. “Algebraic” mode uses a linear spacing for translational, rotational and path extrusions. For normal extrusions, the “Algebraic” mode spaces the grid by applying a geometric growth controlled by SpacingGrowthFactor. TypeA string with options < Algebraic | Connector | Default >. DefaultThe default for this attribute is Algebraic. See AlsoSpacingGrowthFactorSpacingConnectors
This gets/sets the collection of connector-object and subconnector-index pairs that specify how the marching step size will grow from its initial value. TypeThis attribute is a list of subconnectors where each entry is a list of pw::Connector object and integer subconnector index. If the pw::Connector only has one subconnector, the index can be omitted. The list can be optionally begin with the literal string Forward or Reverse, indicating the direction of the chain of subconnectors. This is only necessary when the list of subconnectors is comprised of a single subconnector. Otherwise, the direction can be determined from the order of the subconnector list. DefaultThe default for this attribute is an empty list. See Also |
This action creates a new extruded block object.
pw::BlockExtruded create
This action, given at least one cell-type array and an extruded path of a list of lists of xyz vector values, creates an extruded block.
pw::BlockExtruded createFromPoints ?-triangles tricellArray? ?-quadrilaterals quadCellArray? ?-splitAngle angle? ?-splitMultiLoop? extrudePoints
This action gets the position of a block grid point.
$block getPoint ?-constrained constrainedVar? < index | ijk_index >
This action sets the position of a block interior grid point.
$block setPoint < index | ijk_index > point
This action extrudes the block along the path specified by the extrudePoints list.
$block setPoints extrudePoints
This action checks to see if an index corresponds to a point in the interior of the block.
$block isInteriorIndex < index | ijk_index >
This action returns the indices that are directly connected to the specified index.
$block getAdjacentIndices ?-linear? < index | ijk_index >
This action returns the indices that are directly connected to the specified index.
$block getCellsUsingIndex ?-linear? < index | ijk_index >
This converts a block’s ijk index to a linear index.
$blk getLinearIndex ijk_index
This action gets the position in the defining space of the block at the given index.
$block getPosition ?-grid? < index | ijk_index >
This action gets the position of the block in model space at the given index.
$block getXYZ ?-grid? < index | ijk_index >
This action gets the indices of the given cell.
$block getCell < index | ijk_index >
This action gets the face at the given index or computational boundary.
$block getFace < index | boundary >
This action adds a face to the block.
$block addFace face
This action returns true if the entity can be re-extruded.
$entity canReExtrude
This action gets the named extrusion solver attribute.
$block getExtrusionSolverAttribute att_name ?value_type?
This action sets the named extrusion solver attribute.
$block setExtrusionSolverAttribute att_name att_value
This action gets the boundary condition at a given connector region.
$block getExtrusionBoundaryCondition edge_con_pair
This action sets the boundary condition at a given connector region.
$block setExtrusionBoundaryCondition edge_con_pair boundary_condition ?entity_list?
This gets/sets the extrusion mode of this block.
$block get/setExtrusionSolverAttribute Mode < NormalAlgebraic | Path | Rotate | Translate >
This specifies or disables the height stop condition.
$block get/setExtrusionSolverAttribute StopAtHeight < height | Off | Default >
This specifies or disables the max aspect ratio stop condition.
$block get/setExtrusionSolverAttribute StopAtAspectRatio < ratio | Off | Default >
This specifies or disables the min skew angle stop condition.
$block get/setExtrusionSolverAttribute StopAtSkewAngle < angle | Off | Default >
This enables / disables the positive skew Jacobian stop condition.
$block get/setExtrusionSolverAttribute StopAtPositiveSkewJacobian < Default | Off | bool_value >
This enables / disables the zero Jacobian stop condition.
$block get/setExtrusionSolverAttribute StopAtZeroJacobian < Default | Off | bool_value >
This enables / disables the negative skew Jacobian stop condition.
$block get/setExtrusionSolverAttribute StopAtNegativeSkewJacobian < Default | Off | bool_value >
This enables / disables the negative Jacobian stop condition.
$block get/setExtrusionSolverAttribute StopAtNegativeJacobian < Default | Off | bool_value >
This specifies whether the extrusion direction is flipped.
$block get/setExtrusionSolverAttribute DirectionFlipped flipped
This specifies the angle tolerance for determining when an arbitrary plane BC is considered equal to a Cartesian plane BC.
$block get/setExtrusionSolverAttribute PlaneAngleTolerance < Default | tolerance >
This specifies the deviation tolerance for determining when an arbitrary plane BC is considered to be planar.
$block get/setExtrusionSolverAttribute PlaneDeviationTolerance < Default | tolerance >
This gets/sets the direction vector for translate extrusion.
$block get/setExtrusionSolverAttribute TranslateDirection direction
This gets/sets the distance for translate extrusion.
$block get/setExtrusionSolverAttribute TranslateDistance distance
This gets/sets a list of connectors for the path.
$block get/setExtrusionSolverAttribute PathConnectors <con_list>
This is the maximum number of steps available as the path extrusion is configured.
$block getExtrusionSolverAttribute PathMaximumSteps
This gets/sets the flag indicating if the path extrusion should be rotated tangentally to the path connector.
$block get/setExtrusionSolverAttribute PathUseTangent use
This gets/sets the starting point of the rotation axis for rotate extrusion.
$block get/setExtrusionSolverAttribute RotateAxisStart begin_xyz
This gets/sets the ending point of the rotation axis for rotate extrusion.
$block get/setExtrusionSolverAttribute RotateAxisEnd end_xyz
This gets/sets the angle (degrees) for rotational extrusion.
$block get/setExtrusionSolverAttribute RotateAngle degrees
This gets/sets the size of the first marching step to value.
$block get/setExtrusionSolverAttribute NormalInitialStepSize < Default | size >
This gets/sets the upper limit for the marching step size.
$block get/setExtrusionSolverAttribute NormalMaximumStepSize < Default | size >
This gets/sets a upper limit for the marching step size.
$block get/setExtrusionSolverAttribute NormalMinimumStepSize < Default | size >
This gets/sets a scale factor for reducing the local marching step in convex regions and increasing the marching step size in concave regions.
$block get/setExtrusionSolverAttribute NormalCornerFactor factor
The normals in the marching direction are smoothed locally using a LaPlace filter.
$block get/setExtrusionSolverAttribute NormalDirectionRelaxation < Default | factor >
The normals in the marching direction are smoothed locally using a Lalace filter.
$block get/setExtrusionSolverAttribute NormalDirectionRelaxationIterations < Default | iterations >
This gets/sets the relaxation smoothing factor.
$block get/setExtrusionSolverAttribute NormalStepSizeRelaxation < Default | factor >
This gets/sets the number of marching iterations for the LaPlace filter.
$block get/setExtrusionSolverAttribute NormalStepSizeRelaxationIterations < Default | iterations >
This specifies whether knife edge features are smoothed.
$block get/setExtrusionSolverAttribute NormalFeatureSmoothing < Default | bool_value >
This enables/disables normal smoothing based on a quality metric.
$block get/setExtrusionSolverAttribute NormalQualitySmoothing < Default | bool_value >
This enables/disables interior only quality based smoothing.
$block get/setExtrusionSolverAttribute NormalInteriorOnlySmoothing < Default | bool_value >
This specifies/retrieves the maximum number of smoothing iterations.
$block get/setExtrusionSolverAttribute NormalMaximumIterationsSmoothing < Default | maxIters >
This specifies/retrieves the blend exponent for smoothing.
$block get/setExtrusionSolverAttribute NormalBlendExponentSmoothing < Default | blendExp >
This gets/sets the spacing configuration for the extrusion.
$block get/setExtrusionSolverAttribute SpacingMode < Algebraic | Connector | Default >
This specifies how the marching step size will grow from its initial value.
$block get/setExtrusionSolverAttribute SpacingGrowthFactor < Default | factor >
This gets/sets the collection of connector-object and subconnector-index pairs that specify how the marching step size will grow from its initial value.
$block get/setExtrusionSolverAttribute SpacingConnectors spacing_pairs
This action gets the position in the defining space of the block at the given index.
$block getPosition ?-grid? index
This action gets the position in the defining space of the block at the given index.
$block getPosition ?-grid? < index | ijk_index >
This action gets a position on a connector in the defining space of the connector.
$con getPosition ?< -grid | -control | -parameter | -arc | -X | -Y | -Z | -closest >? value
This action gets a position in the defining space of the domain.
$dom getPosition ?-grid? value
This action gets the position in the defining space of the domain at the given index.
$dom getPosition ?-grid? value
This action gets the position of the block in model space at the given index.
$block getXYZ ?-grid? index
This action gets the position of the block in model space at the given index.
$block getXYZ ?-grid? < index | ijk_index >
This action gets the model space position on a connector.
$con getXYZ ?< -grid | -control | -parameter | -arc | -X | -Y | -Z | -closest >? value
This action gets a position of the domain in model space.
$dom getXYZ ?-grid? value
This action gets the position of the domain in model space at the given index.
$dom getXYZ ?-grid? value