Glyph Version 7.22.2 |
pw:: BlockA block is a volume grid bounded by one or more pw::Faces. Derives Frompw::Object pw::Entity pw::GridEntity Summary
getAdjacentBlocks
This action finds blocks adjacent to a starting list of blocks. Parameters
ReturnsThis action returns the list of adjacent pw::Block objects found. InformationThe returned list will not include any blocks specified in the original blocks list. getBlocksFromDomains
This action returns a list of blocks that use the given domains. Parameters
ReturnsThis action returns a list of pw::Block objects. setSortOrder
This action sets the user specified sort order of blocks. Parameters
ReturnsThis action returns nothing. InformationAny blocks that are not in the given list, or that are created after calling this command will be placed after these entities in the sort order by the pw::Entity.sort action. See Alsodelete
This action deletes this block. Parameters
ReturnsThis action returns nothing. See AlsogetInteriorState
This action gets the interior state of this block. ParametersThere are no parameters. ReturnsThis action returns a string with options < Empty | Incomplete | Initialized | Locked | Refined >. getDimensions
This action gets the dimension of this block. ParametersThere are no parameters. ReturnsThis action returns the block dimensions as a three-element integer list. Unstructured blocks have second and third dimensions of 1: [N 1 1]. getPoint
This action gets the position of a block grid point. Parameters
ReturnsThis action returns a point giving the grid point position (may be in the form “u v dbentity”). InformationBlock points are not currently db-constrained, so this command returns only XYZ coordinates. setPoint
This action sets the position of a block interior grid point. Parameters
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. isInteriorIndex
This action checks to see if an index corresponds to a point in the interior of the block. Parameters
ReturnsThis action returns true if the index refers to an interior point. getAdjacentIndices
This action returns the indices that are directly connected to the specified index. Parameters
ReturnsThis action returns a list of integer indices representing the adjacent coordinates. getCellsUsingIndex
This action returns the indices that are directly connected to the specified index. Parameters
ReturnsThis action returns a list of cell entries using the specified point. Each cell entry is a list of integer point indices comprising the cell. 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”). InformationBlock points are not currently db-constrained, so this command returns only XYZ coordinates. 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: $blk1 getPosition -grid 5 See Alsopw::BlockStructured.getPosition pw::BlockExtruded.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. InformationEven though it is not needed, the -grid switch is included here to be consistent with the other grid entity getXYZ methods. The following calls are equivalent: $blk1 getXYZ -grid 5 See Alsopw::BlockStructured.getXYZ pw::BlockExtruded.getXYZ pw::Connector.getXYZ pw::Domain.getXYZ pw::DomainStructured.getXYZ getCellCount
This action gets the number of cells in this block. ParametersThere are no parameters. ReturnsThis action returns the integer number of cells. getFaceCount
This action gets the number of faces in this block. ParametersThere are no parameters. ReturnsThis action returns the integer number of faces. getFaces
This action gets the face list. ParametersThis action has no parameters. ReturnsThis action returns a pw::Face object list. addFace
This action adds a face to the block. Parameters
ReturnsThis action returns nothing. isValid
This action checks to see if the block has a valid face definition. ParametersThere are no parameters. ReturnsThis action returns a boolean. getIblank
This action returns the IBLANK data for a block. Parameters
ReturnsThis action returns the iblank value at the given index. ExampleCode $block ?-path path? getIblank {1 1 1} getIblankType
This action returns the IBLANK type for a block. Parameters
ReturnsThis action returns the IBLANK type. ExampleCode $block getIblankType getOversetIndexList
This action returns the list of original block indices for a given overset object type. If no parameters are given, the block indices for all non-field overset objects are returned. Parameters
ReturnsThis action returns a list of index for the given overset object types. The elements are the original block cell or point indices from the most recently imported overset grid assembly. ExampleCode $block getOversetIndexList -fringe getOversetDataDimensions
This action returns the original block point or cell dimensions used by the most recent import of overset assembly data. Parameters
ReturnsThis action returns an index representing the maximum IJK dimensions for which overset data is stored for this block. ExampleCode $block getOversetDataDimensions isOversetDataUpToDate
This action returns whether the overset data for a block is up to date. Overset data is considered out of date if it either does not exist or if the block or any of the donor blocks have been modified since the most recent import after overset grid assembly. Parameters
ReturnsThis action returns a boolean, true if there is overset data and it is up to date with respect to the block. ExampleCode $block isOversetDataUpToDate getHighOrderSolverAttribute
This action gets the named high order solver attribute. Parameters
ReturnsThis action returns the actual or default value of the named attribute. See AlsosetHighOrderSolverAttribute
This action sets the named high order solver attribute. Parameters
ReturnsThis action returns nothing. See AlsoConvergenceCostThreshold
The threshold value for the minimum curving cost smoothing function. If all mesh elements meet or exceed this value, the smoothing routine is stopped prior to reaching the specified number of smoothing passes. TypeA float in the range [0.0, 1.0]. DefaultThe default for this attribute is set using the current value of ConvergenceCostThreshold (Default). See AlsoDeviationThreshold
The maximum threshold for deviation. This is used both for surface deviation and for deviation between adjacent elements of different orders. TypeA float in the range (0.0, 1.0]. DefaultThe default for this attribute is set using the current value of DeviationThreshold (Default). See AlsoFreezeSurfaceNodes
Controls which linear and inserted and projected, high-order surface nodes can be moved during smoothing. The inserted, high-order surface nodes are always projected to their surfaces as needed. TypeA string one of None, Linear, or All. where,
DefaultThe default for this attribute is set using the current value of FreezeSurfaceNodes (Default). See AlsoPolynomialDegreeMin
Specifies a minimum polynomial degree for mixed order mesh elevation. This value must be less than or equal to PolynomialDegreeMax. TypeA string one of Q1, Q2, Q3, or Q4. DefaultThe default for this attribute is set using the current value of PolynomialDegreeMin (Default). See AlsoPolynomialDegreeMax
Specifies the polynomial degree for constant order mesh elevation or the maximum polynomial degree for mixed order mesh elevation. This value must be greater than or equal to PolynomialDegreeMin. TypeA string one of Q2, Q3, or Q4. DefaultThe default for this attribute is set using the current value of PolynomialDegreeMax (Default). See AlsoStepSizeRelaxationFactor
The step size factor used when smoothing the high-order nodes. TypeA float in the range [0.0, 0.5]. DefaultThe default for this attribute is set using the current value of StepSizeRelaxationFactor (Default). See AlsoConvergenceCostThreshold (Default)
The default minimum curving cost threshold value assigned to a block when it is created. TypeA float in the range [0.0, 1.0]. DefaultThe default value is 0.8. See AlsoDeviationThreshold (Default)
The default deviation threshold value assigned to a block when it is created. TypeA float in the range (0.0, 1.0]. DefaultThe default value is 0.1. See AlsoFreezeSurfaceNodes (Default)
The default freeze method value assigned to a block when it is created. TypeA string one of None, Linear, or All. where,
DefaultThe default value is Linear. See AlsoPolynomialDegreeMin (Default)
The default minimum polynomial degree value assigned to a block when it is created. This value must be less than or equal to PolynomialDegreeMax (Default). TypeA string one of Q1, Q2, Q3, or Q4. DefaultThe default value is Q2. See AlsoPolynomialDegreeMax (Default)
The default max polynomial degree value assigned to a block when it is created. This value must be greater than or equal to PolynomialDegreeMin (Default). TypeA string one of Q2, Q3, or Q4. DefaultThe default value is Q2. See AlsoStepSizeRelaxationFactor (Default)
The default step size factor value assigned to a block when it is created. TypeA float in the range [0.0, 0.5]. DefaultThe default value is 0.05. See AlsogetOversetData
This action returns overset data of the given type at the specified index. If the overset object type at the given index is not valid for the requested type, then an error is returned. Parameters
ReturnsThis action returns a single value or a list of string, float, integer and/or list of other values representing the overset data at the specified index. See the description of the structure of the return values in the corresponding type description. See AlsoExampleCode $block getOversetData Volume $index Volume
Return the volume for an overset data object. TypeA float, valid for fringe, hole and orphan objects. See AlsoDonor
Return the donor information for an overset fringe object. TypeDonor information is a list of
Donor information is valid only for fringe objects. DonorCandidateList
Return the donor candidate information for an overset fringe or orphan object. TypeDonor candidate information is a list of donor information. See Donor for the description of a donor in list form. Donor information is valid for fringe and orphan objects. |
This action finds blocks adjacent to a starting list of blocks.
pw::Block getAdjacentBlocks ?-all? blocks
This action returns a list of blocks that use the given domains.
pw::Block getBlocksFromDomains domains
This action sets the user specified sort order of blocks.
pw::Block setSortOrder blocks
This action deletes this block.
$block delete ?-force? ?-domains? ?-connectors?
This action initializes the interior points of this block.
$block initialize
This action gets the interior state of this block.
$block getInteriorState
This action gets the dimension of this block.
$block getDimensions
This action gets the position of a block grid point.
$block getPoint ?-constrained constrainedVar? index
This action sets the position of a block interior grid point.
$block setPoint index point
This action checks to see if an index corresponds to a point in the interior of the block.
$block isInteriorIndex index
This action returns the indices that are directly connected to the specified index.
$block getAdjacentIndices ?-linear? index
This action returns the indices that are directly connected to the specified index.
$block getCellsUsingIndex ?-linear? index
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 of the block in model space at the given index.
$block getXYZ ?-grid? index
This action gets the number of cells in this block.
$block getCellCount
This action gets the indices of the given cell.
$block getCell index
This action gets the average edge length of the given cell.
$block getCellAverageEdgeLength index
This action gets the centroid of the given cell.
$block getCellCentroid index
This action gets the volume of the given cell.
$block getCellVolume index
This action gets the number of faces in this block.
$block getFaceCount
This action gets the face at the given index.
$block getFace index
This action gets the face list.
$block getFaces
This action adds a face to the block.
$block addFace face
This action removes the last face added to this block.
$block removeLastFace
This action checks to see if the block has a valid face definition.
$block isValid
This action clears overset grid assembly data from the block.
$block clearOversetData
This action returns the IBLANK data for a block.
$block getIblank ?-path path? index
This action returns the IBLANK type for a block.
$block getIblankType ?-path path?
This action returns the list of original block indices for a given overset object type.
$block getOversetIndexList ?-path path? ?-fringe? ?-hole? ?-orphan?
This action returns the original block point or cell dimensions used by the most recent import of overset assembly data.
$block getOversetDataDimensions ?-path path?
This action returns whether the overset data for a block is up to date.
$block isOversetDataUpToDate ?-path path?
This action gets the named high order solver attribute.
$block getHighOrderSolverAttribute att_name
This action sets the named high order solver attribute.
$block setHighOrderSolverAttribute att_name att_value
The threshold value for the minimum curving cost smoothing function.
$block get/setHighOrderSolverAttribute ConvergenceCostThreshold value
The maximum threshold for deviation.
$block get/setHighOrderSolverAttribute DeviationThreshold value
Controls which linear and inserted and projected, high-order surface nodes can be moved during smoothing.
$block get/setHighOrderSolverAttribute FreezeSurfaceNodes value
Specifies a minimum polynomial degree for mixed order mesh elevation.
$block get/setHighOrderSolverAttribute PolynomialDegreeMin value
Specifies the polynomial degree for constant order mesh elevation or the maximum polynomial degree for mixed order mesh elevation.
$block get/setHighOrderSolverAttribute PolynomialDegreeMax value
The step size factor used when smoothing the high-order nodes.
$block get/setHighOrderSolverAttribute StepSizeRelaxationFactor value
The default minimum curving cost threshold value assigned to a block when it is created.
pw::Block get/setDefault ConvergenceCostThreshold value
The default deviation threshold value assigned to a block when it is created.
pw::Block get/setDefault DeviationThreshold value
The default freeze method value assigned to a block when it is created.
pw::Block get/setDefault FreezeSurfaceNodes value
The default minimum polynomial degree value assigned to a block when it is created.
pw::Block get/setDefault PolynomialDegreeMin value
The default max polynomial degree value assigned to a block when it is created.
pw::Block get/setDefault PolynomialDegreeMax value
The default step size factor value assigned to a block when it is created.
pw::Block get/setDefault StepSizeRelaxationFactor value
This action returns overset data of the given type at the specified index.
$block getOversetData ?-path path? <Volume | VertexList | Donor | DonorCandidateList> index
Return the volume for an overset data object.
$block getOversetData ?-path path? Volume index
Return the list of vertices for an overset data object.
$block getOversetData ?-path path? VertexList index
Return the donor information for an overset fringe object.
$block getOversetData ?-path path? Donor index
Return the donor candidate information for an overset fringe or orphan object.
$block getOversetData DonorCandidateList index
This action sorts the given entities.
pw::Entity sort entities
This action sets the user specified sort order of domains.
pw::Domain setSortOrder domains
This action deletes the given entities.
pw::Entity delete entities
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 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 | 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 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