Global actions of the application
pw:: | Global actions of the application |
Static Actions | |
getVersion | This action gets the program and version of the application. |
checkForDuplicates | This action checks if loading the given file would result in duplicate named entities. |
checkForMissingReferences | This action checks if loading the given file would result in missing references. |
checkCAEUnsupportedEntities | This action checks for the number of unsupported entities that will be ignored or deleted if the file is loaded. |
load | This action loads the entities and settings from the native file. |
save | This action saves the current entities and settings to the native file format. |
isModified | This action checks if the entities or settings have been modified since the last save. |
clearModified | This action resets the flags that track whether or not modifications have occurred. |
getProjectName | This action returns the project name which includes the file path and the filename of the currently associated file. |
isEmpty | This action checks if there are no entities. |
begin | This action begins a mode in the application. |
setClipboard | This action sets the given list of entities to be the contents of the application clipboard. |
clearClipboard | Clear the contents of the application clipboard. |
isClipboardEmpty | This action checks if the application clipboard contains any entities. |
getClipboardCount | This action returns the number of items explicitly copied to the clipboard. |
reset | Reset the settings of the application |
getCAESolverNames | This action gets the names of the available CAE solvers. |
getCAEUnsupportedEntities | This action gets the existing entities unsupported by a CAE solver and dimension. |
isValidDimension | This action determines if the given dimension is supported by a CAE solver. |
isValidElement | This action determines if the given element type is supported by a CAE solver. |
isValidElementTopology | This action determines if the given element topology type is supported by a CAE solver. |
setCAESolver | This action sets the current CAE solver. |
getCAESolver | This action gets the name of the current CAE solver. |
setCAESolverDimension | This action sets the current CAE solver dimension. |
getCAESolverDimension | This action gets the dimension of the current CAE solver. |
areCAESolverVariablesSupported | This action returns whether settable variables are supported by the current CAE solver. |
getCAESolverAttributeNames | This action gets the available CAE solver attribute names. |
getCAESolverAttribute | This action gets the named CAE solver attribute. |
setCAESolverAttribute | This action sets the named CAE solver attribute. |
addCAESolverAttribute | This action adds the named attribute to the current CAE solver. |
getCAESolverAttributeDefinition | This action gets the definition of a CAE solver attribute. |
getFileTypes | This action gets the available filetype ids. |
getFileTypeAttributeNames | This action gets the named file type attribute. |
getFileTypeAttribute | This action gets the named file type attribute. |
getRuntimeAttributeNames | This action gets the available runtime attribute names. |
getRuntimeAttribute | This action gets the value of the named runtime attribute. |
getRuntimeAttributeDefinition | This action gets the definition of a runtime attribute. |
setOversetAssembler | This action sets the current overset assembler. |
getOversetAssembler | This action gets the name of the current overset assembler. |
areOversetBCsCompatible | This action return whether overset boundary conditions are compatible between the current assembler and another |
getOversetAssemblerNames | This action gets the names of the available overset assemblers. |
isValidOversetDimension | This action determines if the given dimension is supported by an overset assembler. |
getOversetAssemblerAttribute | This action gets the named overset assembler attribute. |
export | This action exports CAE data in a format specific to the currently selected analysis software. |
getXYZ | This action gets the 3D position of the given point or grid coordinate. |
combine | This action combines two points or grid coordinates in different ways. |
getEntity | This action gets the entity of the given point or grid coordinate. |
getDescription | This action gets the description of the given point or grid coordinate. |
getUndoList | This action returns the list of undo levels available. |
getRedoList | This action returns the list of redo levels available. |
undo | This action undoes one step. |
resetUndoLevels | This action resets the undo levels. |
redo | This action redoes one step. |
markUndoLevel | This action saves an undo checkpoint. |
exit | This action shuts down the full application immediately, without any prompts to the user to warn about unsaved data. |
isInteractive | Check to see if the Pointwise application is running in interactive mode with a GUI as opposed to being run in a Tcl batch interpreter. |
getAllCommandNames | This action returns the names of all supported glyph commands. |
setVerbosity | This command controls the level of text output of the application. |
getVerbosity | This command reports the current level of filtering for text output by the application. |
Static Attributes | |
UndoMaximumLevels | This sets/gets the maximum number of undo levels maintained. |
GridPreference | This attribute is the grid preference of the application. |
CAE Solver Common Attributes | |
FileExtensions | This gets the extensions of files exported for the CAE solver. |
FileDestination | This gets the type of file destination that is expected by the current CAE when calling the pw::Application.export command. |
AllowedFileFormats | This gets the allowed file formats when exporting for the CAE solver. |
AllowedDataPrecision | This gets the allowed data precision when exporting for the CAE solver. |
AllowedFileByteOrder | This gets the allowed file byte order when exporting for the CAE solver. |
AllowedExportConditionsOnly | This gets a boolean flag that indicates whether the CAE solver allows export of the conditions data without having to export the grid data. |
AllowedVolumeConditions | This returns a boolean flag that indicates whether the CAE solver supports the volume conditions. |
ImplementationMethod | This gets the method used for the implementation of the exporter. |
AllowedExportMirroring | This returns a boolean flag that indicates whether the CAE solver supports setting an export mirror plane. |
AllowedElements | This gets a list of the element types supported by the CAE solver. |
AllowedElementTopologies | This gets a list of the element topologies supported by the CAE solver. |
MaxMeshPolynomialDegree | Returns an integer specifying the maximum mesh elevation polynomial degree supported by the current CAE solver. |
MeshLinkSupported | This returns a boolean flag that indicates whether the current CAE solver supports the export of MeshLink files. |
CAE Solver Attributes for {ADS/ | |
Title | Case Name. |
CAE Solver Attributes for {ADS/ | |
Title | Case Name. |
CAE Solver Attributes for CFL3D | |
ProjectDescription | The grid project description written to the inp file. |
CAE Solver Attributes for CGNS | |
CGNS. | Specifies the exported file’s internal storage type. |
CGNS. | Units of length. |
CGNS. | Specifies how condition data is written to the file. |
CAE Solver Attributes for CMSoft-Aero | |
LoggingLevel | Controls message logging level. |
CAE Solver Attributes for Cobalt | |
GridFileExtension | Sets the file extension used for Cobalt grid files. |
CAE Solver Attributes for {EXODUS II} | |
BlockNumberScheme | The block id numbering scheme. |
LogVerbosity | Controls vebosity of export logging to the message window. |
MaxCacheSize | Set the max cache size (MB). |
CAE Solver Attributes for Edge | |
ExportPriority | Controls the export method. |
CAE Solver Attributes for Fidelity | |
CGNS. | Specifies the exported file’s internal storage type. |
CGNS. | Units of length. |
CGNS. | Specifies how condition data is written to the file. |
CAE Solver Attributes for {Fidelity PBS} | |
CellExport | Controls the export of cell sets and zones. |
FaceExport | Controls the export of face sets and zones. |
PointPrecision | Controls the export of face sets and zones. |
SideBCExport | Controls how BCs are assigned to the top and base boundaries for 2D export. |
Thickness | Offset distance for 2D export. |
CAE Solver Attributes for FrontFlow | |
ExportPriority | Controls the exporter’s priority. |
CAE Solver Attributes for GASP | |
CGNS. | Specifies the exported file’s internal storage type. |
CGNS. | Units of length. |
CGNS. | Specifies how condition data is written to the file. |
CAE Solver Attributes for Gambit | |
BcType | Specify the BC export format. |
Dim2PointFormat | Controls the 2-D point export format. |
CAE Solver Attributes for Gmsh | |
ExportGmshFileFormat | Choose to export as Gmsh file Version 2 or Version 4. |
CAE Solver Attributes for {Gridgen Generic} | |
ExportVCs | Controls the export of volume conditions. |
CAE Solver Attributes for {INCA v2} | |
Compressibility | Flow compressibility. |
CAE Solver Attributes for Kestrel | |
ExportAVMeshFileVersion | Choose to export as AVMesh file Version 1 or 2. |
FileContactInfo | File contact informtion. |
FileDescription | File description. |
MeshCoordinateSystem | Mesh coordinate system. |
MeshDescription | Mesh description. |
MeshName | Mesh name. |
MeshReferenceArea | Reference area for force/moment calculation. |
MeshReferenceLength | Reference length for Reynolds number. |
MeshReferencePointDescription | Reference point description. |
MeshReferencePointX | Reference point X coordinate. |
MeshReferencePointY | Reference point Y coordinate. |
MeshReferencePointZ | Reference point Z coordinate. |
MeshScale | Mesh global scale. |
MeshUnits | Mesh dimensional units. |
CAE Solver Attributes for NPARC | |
Mach | Mach number. |
NPARC. | NPARC BC style. |
NPARC. | NPARC file version. |
CAE Solver Attributes for NSU3D | |
MaxCacheSize | Set the max cache size (MB). |
CAE Solver Attributes for OpenFOAM | |
CellExport | Controls the export of cell sets and zones. |
FaceExport | Controls the export of face sets and zones. |
PointPrecision | Controls the export of face sets and zones. |
SideBCExport | Controls how BCs are assigned to the top and base boundaries for 2D export. |
Thickness | Offset distance for 2D export. |
CAE Solver Attributes for TAU | |
DataModel | Controls the underlying NetCDF data model used by TAU export. |
Thickness | Offset distance for 2D export. |
CAE Solver Attributes for Tecplot | |
VariableMethodFor2D | Controls how the XYZ variables are exported for 2D grids. |
CAE Solver Attributes for {Thermal Desktop} | |
ShellOrientation | Default PSHELL orientation. |
ShellThickness | Default PSHELL Thickness. |
WideFormat | Export using wide column format. |
CAE Solver Attributes for UGRID | |
ExtensionType | File name extension type. |
CAE Solver Attributes for UMCPSEG | |
CreateLog | Controls generation of a log file for debugging. |
CAE Solver Attributes for USM3D | |
MaxSegmentSize | Maximum size of a connectivity segment in bytes. |
CAE Solver Attributes for {WIND (structured)} | |
Units | Grid dimensional units. |
CAE Solver Attributes for {WIND (unstructured)} | |
Units | Grid dimensional units. |
Overset Assembler Attributes | |
AssemblyAllowed | This gets the flag that indicates whether the current overset assembler allows overset grid assembly. |
AllowedBoundaryConditions | This gets the flag that indicates whether the current overset assembler allows boundary conditions. |
AllowedVolumeConditions | This gets the flag that indicates whether the current overset assembler allows volume conditions. |
AllowedCollarBoundaryConditions | This gets the flag that indicates whether the current overset assembler allows collar boundary conditions. |
File Type Common Attributes | |
Name | This gets the file type name. |
Key | This gets the file type unique key. |
Mode | This gets the file type IO modes that support this attribute. |
Destination | This gets the IO destination that is expected by the file type. |
Extensions | This gets the valid file type extensions. |
Filters | This gets the glob filters used to identify filenames supported by this file type. |
Description | This gets the file type description. |
CanCheckValidFile | Returns 1 if file type supports file validation. |
CanImportConditions | Returns 1 if file type supports BC/VC import. |
Runtime Attributes | |
AppMachine | Application machine architecture. |
AppName | Application name. |
AppNameAndVersion | Application name and version. |
AppVersion | Application version. |
AppVersionCandidate | Application candidate version number. |
AppVersionMajor | Application major version number. |
AppVersionMinor | Application minor version number. |
AppVersionRelease | Application release version number. |
DirAppPlugins | Application plugins directory. |
DirAppPublic | Application public directory. |
DirPublicPlugins | Public plugins directory. |
DirSysAppPublic | System application public directory. |
DirSysTemp | System temporary directory. |
DirSysUserHome | User home directory. |
DirSysUserPrivate | User private directory. |
DirSysUserPublic | User public directory. |
pw::Application getVersion
This action gets the program and version of the application.
None
This action returns a string describing the version of the application.
Code
pw::Application getVersion
Output
Pointwise V16.04R1
pw::Application checkForDuplicates ?-rules ruleVar? filename
This action checks if loading the given file would result in duplicate named entities.
ruleVar | This parameter is the variable name to store the boolean result when checking for duplicate rules. For rules, a duplicate is defined as a pair of rules that either have the same function and operand but different values, or have the same function but conflicting operands and values. |
filename | This parameter is the full path and name string of the file to load. |
This action returns a boolean, which is true if there are duplicates.
This command supports progress updates.
Code
pw::Application checkForDuplicates -rules result "C:\test.pw" puts $result
Output
1 0
pw::Application checkForMissingReferences ?-local? filename
This action checks if loading the given file would result in missing references.
-local | This optional flag is a notification that only entities within the file will be considered for satisfying references. |
filename | This paramenter is the full path and name string of the file to load. |
This action returns a boolean, which is true if there are missing references.
This command supports progress updates.
Code
pw::Application checkForMissingReferences "C:\test.pw"
Output
0
pw::Application checkCAEUnsupportedEntities ?-ignoreCAESolver? fileName
This action checks for the number of unsupported entities that will be ignored or deleted if the file is loaded.
-ignoreCAESolver | This optional flag is a notification to not use CAE Solver settings from the file. |
fileName | This parameter is the full path and name string of the file to load. |
This action returns the number of unsupported entities.
If you have -ignoreCAESolver it gets the number of ents in the file that are not supported by the current CAE solver and dimension, and if you don’t have the flag, it gets the number of existing ents that are not supported by the file’s CAE solver and dimension.
Code
pw::Application checkCAEUnsupportedEntities -ignoreCAESolver "C:\test.pw"
Output
2
pw::Application load ?-ignoreCAESolver? ?-environment? ?-rules < KeepOld | KeepNew | KeepBoth >? filename
This action loads the entities and settings from the native file.
-ignoreCAESolver | This optional flag is a notification to not use CAE Solver settings from the file. |
-environment | This optional flag loads a file’s environment. File settings are loaded (e.g. defaults, views, rules, etc.), but grid and database entities are not loaded. |
-rules option | This optional parameter controls which set of rules are kept. If option is KeepOld, the rules in the file are discarded. If option is KeepNew, the rules in the file replace the existing rules. If option is KeepBoth, both sets of rules are kept which may lead to conflicting or duplicate rules that will have to be sorted out manually. The default option is KeepOld. If there are no rules in the current project, then the KeepNew option is used regardless of the specified option. |
filename | This parameter is the full path and name string of the file to load. |
This action returns nothing.
This command supports progress updates.
Code
pw::Application load -rules KeepNew "C:\test.pw"
pw::Application save ?-compress level? ?-noOverwrite? ?< -entities ents | -environment >? filename
This action saves the current entities and settings to the native file format.
-compress level | This optional parameter sets the integer file compression level; [0, 9], default 0. |
-noOverwrite | This optional flag is a notification to not save if filename already exists. |
-entities | An optional list of entities to be saved. Only the specified entities and any entities on which they depend are saved. When using this option, the entities must be from the same framework. |
-environment | This optional flag saves the the current environment. File settings are saved (e.g. defaults, views, rules, etc.), but grid and database entities are not saved. |
filename | This parameter is the full path and name string of the file to save. |
This action returns nothing.
This command supports progress updates.
For “-compress level”, 0 = no compression, 1 = minimum, and 9 = maximum. Higher levels of compression take longer to save.
Code
pw::Application save -noOverwrite "test.pw"
pw::Application isModified
This action checks if the entities or settings have been modified since the last save.
None
This action returns a boolean, which is true if there have been modifications.
Code
pw::Application isModified
Output
1
pw::Application getProjectName
This action returns the project name which includes the file path and the filename of the currently associated file. The project name is set when a native file is loaded or saved. It is cleared when the application is reset.
None
This action returns a string.
pw::Application.save pw::Application.load pw::Application.reset
pw::Application isEmpty
This action checks if there are no entities.
None
This action returns a boolean, which is true if there are no current entities.
Code
pw::Application isEmpty
Output
0
pw::Application begin ?-mode_specific_flags? mode ?entities?
This action begins a mode in the application.
-mode_specific_flags | Some modes support modifier flags. See the usage page for each mode to see the available flags. |
mode | This parameter is the mode keyword; < Create | Modify | Copy | Paste | Merge | Dimension | EllipticSolver | UnstructuredSolver | VoxelSolver | ExtrusionSolver | ReExtrusionSolver | ProjectLoader | DatabaseImport | DatabaseExport | GridImport | GridExport | CaeExport | SourceImport | SpacingSync | NamedSpacings | SurfaceFit | DatabaseQuilter | DatabaseMesher | VolumeMesher >. |
entities | This parameter is a list of entities relevant to the mode; default is an empty list. |
This action returns a new pw::Mode object.
This command supports progress updates when mode is Paste.
Code
set mode [pw::Application begin Create] puts [$mode getType]
Output
pw::Creator
pw::Application setClipboard entity_list
This action sets the given list of entities to be the contents of the application clipboard. The entities are copied in their current state and are not available for usage until pasted using the pw::Application begin Paste command. Note that when writing a script that uses copying, if the copied data is not meant to be left on the clipboard for use outside of the script, one should use the pw::Copier mode instead of setClipboard.
entity_list | This parameter is a list of pw::Entity or pw::Spacing objects, or a single pw::Entity or pw::Spacing object. |
This action returns nothing.
This command supports progress updates.
When pw::Spacing objects are copied to the clipboard, all spacing objects with non-zero values are retained.
For objects that have a zero value, they may be modified or ignored as follows. If the spacing object is associated with a dimensioned connector, the actual grid spacing value will be used as the spacing value. If the spacing object is not associated with a dimensioned connector and other spacing objects that do have either an explicit or implicit non-zero value are included in the copy operation, then the zero value spacing objects will be ignored. Finally, if only zero value spacing objects are specified, they will be copied as is. Note that pasting the zero spacing object will effective erase any specified spacing values on the selected targets of the paste operation.
Code
# Copy 2 connectors to the clipboard pw::Application setClipboard [list $con $con2] puts "Clipboard size (a): [$pw::Application getClipboardCount]" # Copy a the beginning spacing of a connector's second # subconnector to the clipboard set spacing1 [[$con getDistribution 1] getBeginSpacing] pw::Application setClipboard $spacing1 puts "Clipboard size (b): [$pw::Application getClipboardCount]" # Copy 2 non-zero spacings and 1 zero spacing to the clipboard set spacing2 [[$con getDistribution 1] getEndSpacing] set zeroSpace [pw::SpacingExplicit create] pw::Application setClipboard [list $spacing1 $spacing2 $zeroSpace] puts "Clipboard size (c): [$pw::Application getClipboardCount]" # Copy a single zero-value spacing to the clipboard pw::Application setClipboard [list $zeroSpace] puts "Clipboard size (d): [$pw::Application getClipboardCount]"
Output
Clipboard size (a): 2 Clipboard size (b): 1 Clipboard size (c): 2 Clipboard size (d): 1
pw::Application isClipboardEmpty
This action checks if the application clipboard contains any entities.
There are no parameters.
This action returns a boolean, true if the clipboard does not contain any entities.
Code
pw::Application isClipboardEmpty
Output
1
pw::Application getClipboardCount ?-type type_string?
This action returns the number of items explicitly copied to the clipboard.
-type type_string | If specified, this option filters the result to count only the entities of the specified type. If no type is specified, then the total count is returned. Note that the total is the count of entities that were explicitly added to the clipboard (e.g., if a single domain is pasted, the count will return 1 for just the domain -- the domain’s connectors will not be counted). |
This action returns an integer value representing the number of entities copied to the clipboard.
Code
pw::Application setClipboard $domain set nc [pw::Application getClipboardCount -type pw::Connector] set nd [pw::Application getClipboardCount -type pw::Domain] set total [pw::Application getClipboardCount] puts "Total clipboard items: $total" puts "Clipboard connectors : $nc" puts "Clipboard domains : $nd"
Output
Total clipboard items: 1 Clipboard connectors : 0 Clipboard domains : 1
pw::Application reset ?-keep keep_list? ?reset_list?
Reset the settings of the application
-keep keep_list | This optional parameter is a list of keywords that represent the settings that should be kept and not reset. Valid keywords are < Attributes | CAE | Overset | Clipboard | Database | Defaults | Display | Grid | Layers | Rules | AttributeDictionaries | ExamineFilters | Sources | Tolerances >. If a setting is listed here, it will override it being listed in the reset list. |
reset_list | This optional parameter is a list of keywords that represent the settings that should be reset. Valid keywords are < Attributes | CAE | Clipboard | Database | Defaults | Display | Grid | Layers | Rules | AttributeDictionaries | ExamineFilters | Sources | Tolerances >. The default value for this parameter is a list including all keywords. |
This action returns nothing.
This command supports progress updates.
Code
pw::Application reset -keep [list Clipboard Defaults]
pw::Application getCAESolverNames
This action gets the names of the available CAE solvers.
There are no parameters.
This action returns a string list of CAE solver names.
Code
set solverNames [pw::Application getCAESolverNames] foreach solverName $solverNames { puts "> Solver: '$solverName'" }
Output
Solver: 'Altair/AcuSolve' Solver: 'ADPAC' Solver: 'ANSYS CFX' Solver: 'ANSYS FLUENT' Solver: 'CFD++' Solver: 'CFDSHIP-IOWA' Solver: 'CFL3D' Solver: 'CGNS' ...snip... Solver: 'UGRID' Solver: 'USM3D' Solver: 'VSAERO' Solver: 'VSAEROhybrid' Solver: 'WIND (structured)' Solver: 'WIND (unstructured)'
pw::Application getCAEUnsupportedEntities name dimension
This action gets the existing entities unsupported by a CAE solver and dimension.
name | This parameter is a CAE solver name string and must be a name returned by getCAESolverNames. |
dimension | This parameter is the dimension an integer; [2, 3]. |
This action returns a list of pw::GridEntity objects.
Code
set unsupEnt [pw::Application getCAEUnsupportedEntities VSAERO 2] set unsupEntNames {} foreach ent $unsupEnt { lappend unsupEntNames [$ent getName] } puts $unsupEntNames
Output
dom-1 dom-2 dom-3 dom-4 dom-5 dom-6 dom-7 dom-8 blk-1
pw::Application isValidDimension name dim
This action determines if the given dimension is supported by a CAE solver.
name | This parameter is a CAE solver name string and must be a name returned by getCAESolverNames. |
dim | This parameter is the integer dimension; [2,3]. |
This action returns a boolean, true if dimension is valid.
Code
pw::Application isValidDimension VSAERO 3
Output
0
pw::Application isValidElement name type
This action determines if the given element type is supported by a CAE solver.
name | This parameter is a CAE solver name string and must be a name returned by getCAESolverNames. |
type | This parameter is an element type string; < Line | Triangle | Quadrilateral | Tetrahedral | Hexahedral | Pyramid | Wedge >. |
This action returns a boolean, true if the element type is valid.
Code
pw::Application isValidElement VSAERO Pyramid
Output
0
pw::Application isValidElementTopology name type
This action determines if the given element topology type is supported by a CAE solver.
name | This parameter is a CAE solver name string and must be a name returned by getCAESolverNames. |
type | This parameter is an element topology type string; < Structured | Unstructured | Prismatic >. |
This action returns a boolean, true if the element topology type is valid.
Code
pw::Application isValidElementTopology VSAERO Unstructured
Output
0
pw::Application setCAESolver name ?dimension?
This action sets the current CAE solver.
name | This parameter is a CAE solver name string and must be a name returned by getCAESolverNames. |
dimension | This parameter is the integer dimension of the solver. The default is 3. |
This action returns nothing.
The list of valid CAE solver names will change as new solvers are added and custom CAE plugins are loaded. getCAESolverNames will return a string list of available CAE solver names.
Code
pw::Application setCAESolver NSAERO
pw::Application getCAESolver
This action gets the name of the current CAE solver.
There are no parameters.
This action returns a string, the current CAE solver name.
Code
pw::Application getCAESolver
Output
NSAERO
pw::Application setCAESolverDimension dimension
This action sets the current CAE solver dimension.
dimension | This parameter is the integer dimension of the solver. The default is 3. |
This action returns nothing.
Code
pw::Application setCAESolverDimension 3
pw::Application getCAESolverDimension
This action gets the dimension of the current CAE solver.
There are no parameters.
This action returns an integer, the current CAE solver dimension (2 or 3).
Code
pw::Application getCAESolverDimension
Output
3
pw::Application areCAESolverVariablesSupported
This action returns whether settable variables are supported by the current CAE solver.
There are no parameters.
This action returns true if the solver has variables that can be set, or false if not.
Code
pw::Application areCAESolverVariablesSupported
Output
true
pw::Application getCAESolverAttributeNames ?-group < All | IO | *CAE* >? ?-fullname? ?-regex? ?pattern?
This action gets the available CAE solver attribute names.
-group name | This optional string flag signifies that only attributes in the named group should be returned. If All, attribute names from all groups are returned. |
-fullname | This optional flag forces all returned attribute names to be in their full Group.Name format. By default, only each attribute’s Name is returned without the Group. prefix. |
-regex | This optional flag signifies that the given pattern should be considered a regular expression pattern rather than a glob pattern. |
pattern | This optional parameter is the string pattern used to filter the returned attribute names. If a pattern is not given, all group appropriate attribute names are returned. |
A string list of the matching CAE solver attribute names.
<CAE Solver Attributes>
Code
puts [pw::Application getCAESolverAttributeNames] puts "" puts [pw::Application getCAESolverAttributeNames "Allowed*Conditions"] puts "" puts [pw::Application getCAESolverAttributeNames -fullname "Allowed*Conditions"] puts "" puts [pw::Application getCAESolverAttributeNames -group CAE] puts "" puts [pw::Application getCAESolverAttributeNames -fullname -regex "(c|a)t"]
Output
AllowedFileFormats AllowedDataPrecision AllowedExportConditionsOnly AllowedBoundaryConditions AllowedVolumeConditions FileExtensions FileDestination {Combine Anisotropic Cells} Structured AllowedBoundaryConditions AllowedVolumeConditions IO.AllowedBoundaryConditions IO.AllowedVolumeConditions {Combine Anisotropic Cells} Structured IO.AllowedFileFormats IO.AllowedDataPrecision IO.FileDestination CAE.Structured
pw::Application getCAESolverAttribute attribute_name
This action gets the named CAE solver attribute.
attribute_name | This parameter is the attribute name string. |
This action returns the attribute value.
The return value data-type depends on the attribute being retrieved.
<CAE Solver Attributes>
pw::Application setCAESolverAttribute ?-create? attribute_name value
This action sets the named CAE solver attribute.
-create | This optional flag forces an attribute to be created if it does not already exist. |
attribute_name | This parameter is the attribute name string. The attribute must exist unless -create is specified. |
value | This parameter is the new attribute value. |
This action returns nothing.
If attribute_name does not exist an error will be triggered unless -create is specified.
If attribute_name already exists -create is silently ignored and the value will be assigned.
Attributes created this way will be “auto typed”. That is, the type is inferred from the value provided. For example, “4.5” will be Real, “7” will be UInt, “-7” will be Int, etc.
pw::Application addCAESolverAttribute group name type access desc val range
This action adds the named attribute to the current CAE solver.
All parameters must be present and in the order specified.
group | The attribute group name. Must be CAE or an empty string. |
name | The attribute’s name string. |
type | The attribute’s data type string. One of Bool, Int, UInt, String, Real, Enum, StringList, EnumList. |
access | The attribute’s access specification string. Combination of: R, W (R=read, W=write). |
desc | The attribute’s description string. |
val | The attribute’s default/initial value. Value must be consistent with the attribute type. |
range | A string representing the attribute’s valid range specification. Range specifications are type-specific (see below). If no range is given, the attribute can assume any machine valid value. |
This action returns nothing.
Bool | Logical true/false value |
Int | Signed integer value |
Uint | Unsigned integer value |
Real | Floating point value |
String | A text string value |
StringList | A collection of String values |
Enum | A string value with an associated integer value. The string must be one of a predefined set of valid string values. |
EnumList | A collection of Enum values |
R | Attribute value is readable |
W | Attribute value is writable |
D | Attribute value is deletable |
pattern[ minLen maxLen]
where,
pattern | A regular expression (regex) or a glob expression pattern. This pattern is used to validate string values. A regex pattern is delimited with slash characters (/regexPattern/). A glob pattern is delimited with colon characters (:globPattern:). |
minLen | The smallest valid string length (>= 0). |
maxLen | The largest valid string length (>= minLen). Use +Inf for an unlimited string length. |
example,
The regex pattern “/^hello.*!$/” and the glob pattern “:hello*!:” will allow strings starting with “hello”, followed by zero or more characters, and ending with “!”. Some valid strings include “hello world!”, “hello!”, and “hello!!!”.
[@<sepChar>]name[=int][<sepChar>name[=int]...]
where,
@<sepChar> | The optional separator-char declaration. The character following the ‘@’ is the separator. If not present, the separator defaults to the ‘|’ character. |
name[=val] | The enumerator item name and the optional integer value that corresponds to this name. If val is not specified for an name, it assumes the value of the previous name plus 1. If there is no previous name, it is assigned to 0 by default. Each name MUST be unique within an enum definition. However, val values may be repeated. |
enum example 1,
The follwing 2 Enums are equivalent. The first enum uses the default ‘|’ (vbar) separator character. The second uses a custom ‘,’ (comma) separator character.
up|down=6|left|right=10|upLeft|upRight|downLeft=6|downRight @,up,down=6,left,right=10,upLeft,upRight,downLeft=6,downRight
up=0, down=6, left=7, right=10, upLeft=11, upRight=12, downLeft=6, downRight=7
enum example 2,
The follwing 2 Enums are NOT equivalent.
A,B|C,D|E,F produces “A,B”=0, “C,D”=1, “E,F”=2 @,A,B|C,D|E,F produces “A”=0, “B|C”=1 “D|E”=2 “F”=3
The Bool range format is the same as the Enum range format. However, for Bool, each item’s value is interpreted as a logical true or false. The names defined in the range are added to the standard “string to boolean” name mappings.
The standard “string to boolean” mappings are;
All integer values are mapped as expected. That is, 0 is mapped to false and all other non-zero integer values are mapped to true.
example,
This range will cast the strings “true,yes,accept,bad” to true and “false,no,reject,bad” to false.
”accept=1|reject=0|good=1|bad=0”
minVal maxVal[ typicalMinVal typicalMaxVal]
where,
minVal | The smallest valid value or -Inf to allow any machine valid value less than maxVal. |
maxVal | The largest valid value or +Inf to allow any machine valid value greater than minVal. |
typicalMinVal | The smallest value that is typically used for this attribute where “minVal <= typicalMinVal < typicalMaxVal”. |
typicalMaxVal | The largest value that is typically used for this attribute where “typicalMinVal < typicalMaxVal <= maxVal”. |
pattern[ minLen maxLen[ minCount maxCount]]
where,
pattern minLen maxLen - See the String Range Format for details.
minCount | The smallest number of string items required (>= 0). |
maxCount | The largest number of string items allowed (>= minLen). Use +Inf for an unlimited number of items. |
{EnumRange}[ minCount maxCount]
where,
EnumRange | See the Enum Range Format for details. |
minCount | The smallest number of enum items required (>= 0). |
maxCount | The largest number of enum items allowed (>= minLen). Use +Inf for an unlimited number of items. |
Code
proc addAttr { name type val {range {}} {access RW} } { set desc "$type attribute $name" pw::Application addCAESolverAttribute CAE $name $type $access $desc $val $range } pw::Application reset addAttr iAttr Int -5 {-10 10} addAttr uAttr UInt 5 addAttr rAttr Real 1.1 {0.0 +Inf 1.0 3.0} addAttr sAttr1 String "str3" {/str[0-9]/ 4 4} addAttr sAttr2 String "val!" {:v*: 0 +Inf} addAttr eAttr1 Enum "e00" {e00|e01|e02|e03} addAttr eAttr2 Enum "e03" {@,e00,e01,e02,e03} addAttr slAtt1 StringList "str3|str7|str9" {/str[0-9]/ 4 4 1 5} addAttr slAtt2 StringList "victor|vicky|vlad" {:v*: 0 +Inf 1 5} addAttr elAttr EnumList "e00|e03|e01" {{e00|e01|e02|e03} 1 5} set fmt "| %-7.7s | %-10.10s | %-17.17s | %-22.22s | %-2.2s | %-28.28s |" set hr [string repeat "-" 50] puts [format $fmt "name" "type" "default" "range" "rw" "description"] puts [format $fmt $hr $hr $hr $hr $hr $hr] set names [pw::Application getCAESolverAttributeNames] foreach name $names { set defn [pw::Application getCAESolverAttributeDefinition $name] lassign $defn group name type access desc default range puts [format $fmt $name $type $default $range $access $desc] }
Output
| name | type | default | range | rw | description | | ------- | ---------- | ----------------- | ---------------------- | -- | ---------------------------- | | iAttr | Int | -5 | -10 10 | RW | Int attribute iAttr | | uAttr | UInt | 5 | | RW | UInt attribute uAttr | | rAttr | Real | 1.1 | 0.0 +Inf 1.0 3.0 | RW | Real attribute rAttr | | sAttr1 | String | str3 | /str[0-9]/ 4 4 | RW | String attribute sAttr1 | | sAttr2 | String | val! | :v*: 0 +Inf | RW | String attribute sAttr2 | | eAttr1 | Enum | e00 | e00|e01|e02|e03 | RW | Enum attribute eAttr1 | | eAttr2 | Enum | e03 | @,e00,e01,e02,e03 | RW | Enum attribute eAttr2 | | slAtt1 | StringList | str3|str7|str9 | /str[0-9]/ 4 4 1 5 | RW | StringList attribute slAtt1 | | slAtt2 | StringList | victor|vicky|vlad | :v*: 0 +Inf 1 5 | RW | StringList attribute slAtt2 | | elAttr | EnumList | e00|e03|e01 | {e00|e01|e02|e03} 1 5 | RW | EnumList attribute elAttr |
pw::Application getCAESolverAttributeDefinition ?-rangeNamesOnly? attribute_name
This action gets the definition of a CAE solver attribute.
-rangeNamesOnly | This optional flag strips ordinal values from the returned Enum, EnumList and Bool range definitions. This option is silently ignored for all other attribute types. |
attribute_name | The string attribute name. |
This action returns the attribute definition which will be a list containing 7 items: “group name type access desc default range”.
pw::Application.addCAESolverAttribute for details.
Code
pw::Application reset proc addCaeAttribute { name type val range } { set desc "Testing '$type' attribute" pw::Application addCAESolverAttribute CAE $name $type RW $desc $val $range } proc putDefn { def } { lassign $def group name type access desc value range puts " group = '$group'" puts " name = '$name'" puts " type = '$type'" puts " access = '$access'" puts " desc = '$desc'" puts " value = '$value'" puts " range = '$range'" puts "" } addCaeAttribute test Enum {Element Side} {Element Side=22|Node=33} puts "RANGE WITH ORDINALS" putDefn [pw::Application getCAESolverAttributeDefinition test] puts "RANGE WITH NAMES ONLY" putDefn [pw::Application getCAESolverAttributeDefinition test -rangeNamesOnly]
Output
RANGE WITH ORDINALS group = 'CAE' name = 'test' type = 'Enum' access = 'RW' desc = 'Testing 'Enum' attribute' value = 'Element Side' range = 'Element Side=22|Node=33' RANGE WITH NAMES ONLY group = 'CAE' name = 'test' type = 'Enum' access = 'RW' desc = 'Testing 'Enum' attribute' value = 'Element Side' range = 'Element Side|Node'
pw::Application getFileTypes ?-mode < DatabaseImporter | DatabaseExporter | GridImporter | GridExporter >? ?-file filename?
This action gets the available filetype ids.
-mode io_mode | This optional string flag signifies that only filetypes that are compatible with the named io_mode should be returned. At this time, only the GridImporter mode is supported. If not specified, all filetype ids are returned. |
-file filename | This optional string flag will restrict the returned filetype ids those whose filters match the filename. If there are multiple matches, the filetype id with the “best” match will be first in the returned list. See <getFileTypeAttribute Filters>. |
A string list of filetype ids.
getFileTypeAttribute, getFileTypeAttributeNames
Code
proc putsFileTypes { filename } { set ftypes [pw::Application getFileTypes -file $filename] puts "" puts "The file $filename matches file types: [list $ftypes]" foreach fileType $ftypes { set filters [pw::Application getFileTypeAttribute $fileType Filters] puts " $fileType Filters: [list $filters]" } } proc putsFilterMap {} { set allFilters [dict create] foreach fileType [pw::Application getFileTypes] { foreach filter [pw::Application getFileTypeAttribute $fileType Filters] { dict lappend allFilters [string tolower $filter] $fileType } } set wd1 [string length [set hdr1 {Filter}]] set wd2 [string length [set hdr2 {Associated Import File Types}]] dict for {filter fileTypes} $allFilters { if { $wd1 < [string length $filter] } { set wd1 [string length $filter] } if { $wd2 < [string length $fileTypes] } { set wd2 [string length $fileTypes] } } set fmt "| %-${wd1}.${wd1}s | %-${wd2}.${wd2}s |" puts {} puts [format $fmt $hdr1 $hdr2] puts [format $fmt [string repeat - $wd1] [string repeat - $wd2]] foreach filter [lsort -ascii [dict keys $allFilters]] { puts [format $fmt $filter [dict get $allFilters $filter]] } } puts [pw::Application getFileTypes] puts [pw::Application getFileTypes -mode GridImporter] catch {pw::Application getFileTypes -mode GridExporter} err puts [string trim $err] putsFileTypes /path/to/grid.cgns putsFileTypes /path/to/points putsFileTypes /path/to/grid.b8.ugrid putsFileTypes /path/to/grid.grd putsFilterMap
Output
CFD++ CFX CGNS FUN3D ...snip... UCD UGRID VRML Xpatch CFD++ CFX CGNS FUN3D ...snip... UCD UGRID VRML Xpatch ERROR: usage (argument 3): pw::Application getFileTypes -mode GridExporter is not supported yet. The file /path/to/grid.cgns matches file types: CGNS CGNS Filters: *.cgns The file /path/to/points matches file types: OpenFOAM OpenFOAM Filters: {faces owner neighbour points} The file /path/to/grid.b8.ugrid matches file types: {FUN3D UGRID} FUN3D Filters: *.b8.ugrid UGRID Filters: *.ugrid The file /path/to/grid.grd matches file types: {Fluent CFX GridPro Network3D} Fluent Filters: {*.cas *.GRD} CFX Filters: *.grd GridPro Filters: *.grd Network3D Filters: *.grd | Filter | Associated Import File Types | | ----------- | ---------------------------- | | *.b8.ugrid | FUN3D | | *.bin | CFD++ | | *.bin.* | CFD++ | | *.cas | Fluent | | *.cgns | CGNS | | *.dat | Segment | | *.dem | DEM | | *.facet | Xpatch | | *.gg | Gridgen | | *.grd | CFX Fluent GridPro Network3D | | *.grp | CFD++ | | *.nas | Nastran | | *.net | Network | | *.p3d | PLOT3D | | *.pat | Patran | | *.precrunch | CRUNCH | | *.stl | STL | | *.su2 | SU2 | | *.ucd | UCD | | *.ugrid | UGRID | | *.uns | FVUNS FVUNS30 | | *.vrml | VRML | | *.wrl | VRML | | *.x | PLOT3D | | *.xyz | PLOT3D | | faces | OpenFOAM | | neighbour | OpenFOAM | | owner | OpenFOAM | | points | OpenFOAM |
pw::Application getFileTypeAttributeNames filetype_id
This action gets the named file type attribute.
filetype_id | The filetype id string. Must be one of the values returned by pw::Application getFileTypes. |
A string list of attribute names.
getFileTypes, getFileTypeAttribute
Code
foreach fileType [pw::Application getFileTypes] { puts "" puts "File Type: $fileType" foreach attrName [pw::Application getFileTypeAttributeNames $fileType] { set val [pw::Application getFileTypeAttribute $fileType $attrName] puts [format " %-17.17s = %s" $attrName $val] } }
Output (edited)
File Type: CGNS Name = CGNS Key = 0 Mode = GridImporter Destination = Filename Extensions = cgns Filters = *.cgns Description = CGNS Volume and Surface Grid CanCheckValidFile = 0 File Type: OpenFOAM Name = OpenFOAM Key = 2882339216 Mode = GridImporter Destination = Folder Extensions = Filters = faces owner neighbour points Description = OpenFOAM grid importer CanCheckValidFile = 0 File Type: VRML Name = VRML Key = 21 Mode = GridImporter Destination = Filename Extensions = wrl vrml Filters = *.wrl *.vrml Description = VRML Unstructured Surface Grid CanCheckValidFile = 0
pw::Application getFileTypeAttribute filetype_id attribute_name
This action gets the named file type attribute.
filetype_id | The filetype id string. Must be one of the values returned by pw::Application getFileTypes. |
attribute_name | The attribute name string. Must be one of the values returned by pw::Application getFileTypeAttributeNames. |
This action returns the attribute value.
The return value data-type depends on the attribute being retrieved.
getFileTypes, getFileTypeAttributeNames
See example in getFileTypeAttributeNames and getFileTypes.
pw::Application getRuntimeAttributeNames ?-regex? ?pattern?
This action gets the available runtime attribute names.
-regex | This optional flag signifies that the given pattern should be considered a regular expression pattern rather than a glob pattern. |
pattern | This optional parameter is the string pattern used to filter the returned attribute names. If a pattern is not given, all runtime attribute names are returned. |
A string list of the matching runtime attribute names.
Code
proc dumpAttrs { args } { set names [pw::Application getRuntimeAttributeNames {*}$args] if { 0 == [llength $names] } { puts "No runtime attributes found matching '$args'" puts "" return } set maxWd 20 set maxWd2 20 foreach name $names { if { [string length $name] > $maxWd } { set maxWd [string length $name] } set val [pw::Application getRuntimeAttribute $name] if { [string length $val] > $maxWd2 } { set maxWd2 [string length $val] } } set fmt "| %-${maxWd}.${maxWd}s | %-6.6s | %-3.3s | %-${maxWd2}.${maxWd2}s | %-10.10s |" set dash [string repeat - [expr {$maxWd + $maxWd2}]] puts "Runtime attributes matching '$args'" puts [format $fmt Name Type RW Value Range] puts [format $fmt $dash $dash $dash $dash $dash] foreach name $names { set val [pw::Application getRuntimeAttribute $name] set def [pw::Application getRuntimeAttributeDefinition $name] lassign $def group name type access desc defVal range puts [format $fmt $name $type $access $val $range] } puts "" } dumpAttrs dumpAttrs App* dumpAttrs -regex Mac|Minor dumpAttrs *QQQ* # will fail if { [catch {pw::Application getRuntimeAttribute} err] } { puts $err puts "" } # will fail if { [catch {pw::Application getRuntimeAttribute XXXX} err] } { puts $err puts "" }
Output
Runtime attributes matching '' | Name | Type | RW | Value | Range | | -------------------- | ------ | --- | --------------------------------------------------------------------------------- | ---------- | | AppName | String | R | Pointwise | | | AppVersion | String | R | V18.1 | | | AppNameAndVersion | String | R | Pointwise V18.1 | | | AppVersionMajor | UInt | R | 18 | | | AppVersionMinor | UInt | R | 1 | | | AppVersionRelease | UInt | R | 1 | | | AppVersionCandidate | UInt | R | 0 | | | AppMachine | String | R | Win64 | | | AppType | String | R | Debug | | | DirSysUserHome | String | R | C:\Users\dgarlisch\ | | | DirSysUserPrivate | String | R | \\filehost\home\dgarlisch\Documents\ | | | DirSysUserPublic | String | R | C:\Users\Public\Documents\ | | | DirAppPublic | String | R | C:\ProgramData\Pointwise\ | | | DirAppPlugins | String | R | C:\dgarlisch\p4\dgarlisch_aerostar\gridgen\pointwise_rc\dist\win64\plugins\debug\ | | | DirPublicPlugins | String | R | C:\ProgramData\Pointwise\plugins\debug\ | | | DirSysTemp | String | R | C:\Users\DGARLI~1\AppData\Local\Temp\ | | | DirSysAppPublic | String | R | C:\ProgramData\ | | Runtime attributes matching 'App*' | Name | Type | RW | Value | Range | | -------------------- | ------ | --- | -------------------- | ---------- | | AppName | String | R | Pointwise | | | AppVersion | String | R | V18.1 | | | AppNameAndVersion | String | R | Pointwise V18.1 | | | AppVersionMajor | UInt | R | 18 | | | AppVersionMinor | UInt | R | 1 | | | AppVersionRelease | UInt | R | 1 | | | AppVersionCandidate | UInt | R | 0 | | | AppMachine | String | R | Win64 | | | AppType | String | R | Debug | | Runtime attributes matching '-regex Mac|Minor' | Name | Type | RW | Value | Range | | -------------------- | ------ | --- | -------------------- | ---------- | | AppVersionMinor | UInt | R | 1 | | | AppMachine | String | R | Win64 | | No runtime attributes found matching '*QQQ*' ERROR: usage (argument 2): pw::Application getRuntimeAttribute attribute_name ERROR: Attribute does not exist: 'XXXX'
pw::Application getRuntimeAttribute attribute_name
This action gets the value of the named runtime attribute.
attribute_name | The attribute name string. Must be one of the values returned by pw::Application getRuntimeAttributeNames. |
This action returns the attribute value.
The return value data-type depends on the attribute being retrieved.
See example in getRuntimeAttributeNames.
pw::Application getRuntimeAttributeDefinition ?-rangeNamesOnly? attribute_name
This action gets the definition of a runtime attribute.
-rangeNamesOnly | This optional flag strips ordinal values from the returned Enum, EnumList and Bool range definitions. This option is silently ignored for all other attribute types. |
attribute_name | The string attribute name. |
This action returns the attribute definition which will be a list containing 7 items: “group name type access desc default range”.
See example in getRuntimeAttributeNames.
pw::Application setOversetAssembler name
This action sets the current overset assembler.
name | This parameter is a overset assembler name string and must be a name returned by getOversetAssemblerNames and must be valid for the current CAE dimension. |
This action returns nothing.
The list of valid overset assembler names will change as new assemblers are added and custom overset assemblers are loaded. Use getOversetAssemblerNames to determine available assembler names.
pw::Application getOversetAssembler
This action gets the name of the current overset assembler.
There are no parameters.
This action returns a string, the current overset assembler name.
pw::Application areOversetBCsCompatible name
This action return whether overset boundary conditions are compatible between the current assembler and another
name | This parameter is a overset assembler name string and must be a name returned by getOversetAssemblerNames. |
This action returns a boolean indicating if the overset boundary conditions are compatible between the current assembler and the specified one.
pw::Application getOversetAssemblerNames ?dimension?
This action gets the names of the available overset assemblers.
dimension | this optional parameter is an integer representing the CAE dimension for which valid overset assembler names will be returned; [2,3]. If not specified, the current CAE dimension will be used. |
This action returns a string list of overset assembler names for the given dimension.
pw::Application isValidOversetDimension name dim
This action determines if the given dimension is supported by an overset assembler.
name | This parameter is a string specifying an overset assembler name. It must be a name returned by getOversetAssemblerNames. |
dim | This parameter is the integer dimension; [2,3]. |
This action returns a boolean, true if dimension is valid.
pw::Application getOversetAssemblerAttribute attribute_name
This action gets the named overset assembler attribute.
attribute_name | This parameter is the attribute name string. |
This action returns the attribute value.
The return value data-type depends on the attribute being retrieved.
pw::Application export ?-format file_format? ?-precision fp_precision? ?-noOverwrite? ?-output data_type? ents filename
This action exports CAE data in a format specific to the currently selected analysis software. For analysis software that allows export of boundary condition data only, set the output_data to Conditions.
-format file_format | This optional parameter is the file format string of the exported file; < ASCII | Binary | Unformatted >. |
-precision fp_precision | This optional parameter is the floating point precision string of the exported file; < Single | Double >. |
-noOverwrite | This optional flag is a notification to not export if filename already exists. |
-output data_type | This optional parameter is the data to export string; < All | Conditions >. |
ents | This parameter is a list of pw::Domain objects to export in 2D mode or a list of pw::Block objects to export in 3D mode. |
filename | This parameter is a string that is the path, path and basename, or path and filename for the export of CAE data. |
This command supports progress updates.
This action is “all or nothing.” It does not allow you to handle error recovery. If you need more fine-grained control over the export process, use a pw::CaeExporter I/O mode.
This action returns nothing.
begin, pw::IOMode, pw::CaeExporter
Code
set block [pw::Grid getByName "blk-1"] pw::Application export -noOverwrite $block "C:\test.cgns"
pw::Application getXYZ < point | coord >
This action gets the 3D position of the given point or grid coordinate.
point | This parameter is a point. |
coord | This parameter is a grid coord. |
This action returns an xyz vector.
Code
pw::Application getXYZ [list 2 5 $dom]
Output
0.833333333333333 3.3333333333333326 0.0
pw::Application combine < -X | -Y | -Z | -U | -V > < point1 | coord1 > < point2 | coord2 >
This action combines two points or grid coordinates in different ways.
-X | This optional flag is a notification to combine the X value from the first point/coordinate with the Y and Z values from the second point/coordinate. |
-Y | This optional flag is a notification to combine the Y value from the first point/coordinate with the X and Z values from the second point/coordinate. |
-Z | This optional flag is a notification to combine the Z value from the first point/coordinate with the X and Y values from the second point/coordinate. |
-U | This optional flag is a notification to combine the U value from the first point/coordinate with the V value from the second point/coordinate, if the input is not db constrained an error occurs. |
-V | This optional flag is a notification to combine the V value from the first point/coordinate with the U value from the second point/coordinate, if the input is not db constrained an error occurs. |
point1 | This parameter is a point. |
coord1 | This parameter is a grid coord. |
point2 | This parameter is another point. |
point2 | This parameter is another grid coord. |
This action returns a point.
Code
pw::Application combine -Z [list 1 1 1] [list 2 2 2]
Output
2.0 2.0 1.0
pw::Application getEntity < point | coord >
This action gets the entity of the given point or grid coordinate.
point | This parameter is a point. |
coord | This parameter is a grid coord. |
This action returns a pw::Entity object.
If the given point is not database constrained or a valid grid coordinate, an error will occur. The point cannot be in model space since an xyz vector is not connected to specific entities.
Code
set ent [pw::Application getEntity [list 2 5 $dom]] puts [$ent getName]
Output
dom-1
pw::Application getDescription < point | coord >
This action gets the description of the given point or grid coordinate.
point | This parameter is a point. |
coord | This parameter is a grid coord. |
This action returns a string giving the entity name and coordinates.
If a point in model space is used, the same xyz vector is returned since there is not a connection to an entity associated with it.
Code
pw::Application getDescription [list 5 $con]
Output
con-1 5
pw::Application getUndoList
This action returns the list of undo levels available.
There are no parameters.
This action returns a string list of undo checkpoint labels.
The labels correspond to the names passed into markUndoLevel. The number of labels indicates the number of undo steps available. The first label is the first available undo operation.
Code
pw::Application getUndoList
Output
pw::Application getRedoList
This action returns the list of redo levels available.
There are no parameters.
This action returns a string list of undo checkpoint labels.
The labels correspond to the names passed into markUndoLevel. The number of labels indicates the number of redo steps available. The first label is the first available redo operation.
Code
pw::Application getRedoList
Output
pw::Application undo
This action undoes one step.
There are no parameters.
This action returns a boolean, true if successful.
Code
pw::Application undo
Output
1
pw::Application redo
This action redoes one step.
There are no parameters.
This action returns a boolean, true if successful.
Code
pw::Application redo
Output
1
pw::Application markUndoLevel name
This action saves an undo checkpoint.
name | This parameter is the description string for the undo level. |
This action returns nothing.
Code
pw::Application markUndoLevel CreateDomain
pw::Application exit ?code?
This action shuts down the full application immediately, without any prompts to the user to warn about unsaved data.
code | This optional parameter is an integer exit code, which will be returned by the application as it exits. The default is 0. |
This action returns nothing.
pw::Application isInteractive
Check to see if the Pointwise application is running in interactive mode with a GUI as opposed to being run in a Tcl batch interpreter.
There are no parameters.
This function returns true if the application is being run in interactive mode.
Code
pw::Application isInteractive
Output
1
pw::Application getAllCommandNames
This action returns the names of all supported glyph commands.
This action has no parameters.
This action returns a list of string objects.
pw::Application setVerbosity level
This command controls the level of text output of the application.
level | This parameter controls how text output is filtered. The available options are < All | Debug | Info | Warning | Error | None >. The listed levels decrease in the amount of text allowed through from left to right, with All providing no filtering and None suppressing all extraneous text output. The default level is Info. Note that this does not change the filtering options in the Messages window in the interactive application and only applies within the current script. |
This action returns nothing.
Code
pw::Application setVerbosity Error
pw::Application get/setUndoMaximumLevels levels
This sets/gets the maximum number of undo levels maintained.
This attribute is of type integer with the range [0, infinity); 0 disabling undo.
The default for this attribute is 0 when run in batch mode. When run interactively, the default value is specified by the user preferences.
Code
pw::Application setUndoMaximumLevels 15
pw::Application get/setGridPreference < Structured | Unstructured >
This attribute is the grid preference of the application.
This attribute is of type string with values < Structured | Unstructured >.
The default for this attribute is Structured.
Code
pw::Application setGridPreference Unstructured
pw::Application getCAESolverAttribute FileExtensions
This gets the extensions of files exported for the CAE solver.
This attribute is a list of strings.
This attribute is read only.
pw::Application getCAESolverAttribute FileDestination
This gets the type of file destination that is expected by the current CAE when calling the pw::Application.export command.
This attribute is of type string; < Filename | Basename | Folder >.
This attribute is read only.
pw::Application getCAESolverAttribute AllowedFileFormats
This gets the allowed file formats when exporting for the CAE solver.
This attribute is a string list containing one or more of < ASCII | Binary | Unformatted >.
This attribute is read only.
pw::Application getCAESolverAttribute AllowedDataPrecision
This gets the allowed data precision when exporting for the CAE solver.
This attribute is a string list containing one or more of < Single | Double >.
This attribute is read only.
pw::Application getCAESolverAttribute AllowedFileByteOrder
This gets the allowed file byte order when exporting for the CAE solver.
This attribute is a string list containing one or more of < BigEndian | LittleEndian >.
This attribute is read only.
pw::Application getCAESolverAttribute AllowedExportConditionsOnly
This gets a boolean flag that indicates whether the CAE solver allows export of the conditions data without having to export the grid data. This can be accomplished by using the -output Conditions parameter for the pw::Application.export command.
This attribute is of type boolean.
This attribute is read only.
pw::Application getCAESolverAttribute AllowedVolumeConditions
This returns a boolean flag that indicates whether the CAE solver supports the volume conditions. If it does not, volume conditions cannot be created.
This attribute is of type boolean.
This attribute is read only.
pw::Application getCAESolverAttribute ImplementationMethod
This gets the method used for the implementation of the exporter.
This attribute is of type string; < Plugin | Builtin | Legacy >.
This attribute is read only.
pw::Application getCAESolverAttribute AllowedExportMirroring
This returns a boolean flag that indicates whether the CAE solver supports setting an export mirror plane. If it does not, a mirror plane cannot be defined.
This attribute is of type boolean.
This attribute is read only.
pw::Application getCAESolverAttribute AllowedElements
This gets a list of the element types supported by the CAE solver.
This attribute is a string list containing one or more of < Line | Triangle | Quadrilateral | Tetrahedral | Hexahedral | Pyramid | Wedge >.
This attribute is read only.
Code
set solvers {USM3D TACOMA OpenFOAM SCRYU} foreach solver $solvers { pw::Application setCAESolver $solver puts "$solver: [pw::Application getCAESolverAttribute AllowedElements]" }
Output
USM3D: Line Triangle Tetrahedral TACOMA: Line Quadrilateral Hexahedral OpenFOAM: Line Triangle Quadrilateral Tetrahedral Hexahedral Pyramid Wedge SCRYU: Line Triangle Quadrilateral Hexahedral Wedge
pw::Application getCAESolverAttribute AllowedElementTopologies
This gets a list of the element topologies supported by the CAE solver.
This attribute is a string list containing one or more of < Structured | Unstructured | Prismatic >.
This attribute is read only.
Code
set solvers {USM3D TACOMA OpenFOAM SCRYU} foreach solver $solvers { pw::Application setCAESolver $solver puts "$solver: [pw::Application getCAESolverAttribute AllowedElementTopologies]" }
Output
USM3D: Unstructured TACOMA: Structured OpenFOAM: Structured Unstructured Prismatic SCRYU: Structured Prismatic
pw::Application getCAESolverAttribute MaxMeshPolynomialDegree
Returns an integer specifying the maximum mesh elevation polynomial degree supported by the current CAE solver.
This attribute is of type integer.
This attribute is read only.
If 1, this CAE solver does not support mesh elevation.
If > 1, mesh elevation is supported up to the specified polynomial degree.
Code
pw::Application setCAESolver CGNS set maxPolyDegree [pw::Application getCAESolverAttribute MaxMeshPolynomialDegree] if { 1 == $maxPolyDegree } { puts "Current solver does not support mesh elevation." } else { puts "Current solver support mesh elevation up to $maxPolyDegree." }
Output
Current solver support mesh elevation up to 4.
Code
set solvers {CGNS USM3D TACOMA OpenFOAM} foreach solver $solvers { pw::Application setCAESolver $solver set $max [pw::Application getCAESolverAttribute MaxMeshPolynomialDegree] if { 1 == $max } { set msg "Does not support high order meshes." } else { set msg "Supports high order meshes up to degree $maxPolyDegree." } puts "$solver: $msg" }
Output
CGNS: Supports high order meshes up to degree 4. USM3D: Does not support high order meshes. TACOMA: Does not support high order meshes. OpenFOAM: Does not support high order meshes.
pw::Application getCAESolverAttribute MeshLinkSupported
This returns a boolean flag that indicates whether the current CAE solver supports the export of MeshLink files.
This attribute is of type boolean.
This attribute is read only.
Code
set solvers {CGNS OpenFOAM NASA/FUN3D Kestrel} foreach solver $solvers { foreach dimty {2 3} { if { [catch {pw::Application setCAESolver $solver $dimty} msg] } { set msg [string trim $msg] } elseif { [pw::Application getCAESolverAttribute MeshLinkSupported] } { set msg "Supports MeshLink export." } else { set msg "Does not support MeshLink export." } puts "$solver ${dimty}-D: $msg" } puts "" }
Output
CGNS 2-D: Does not support MeshLink export. CGNS 3-D: Supports MeshLink export. OpenFOAM 2-D: Does not support MeshLink export. OpenFOAM 3-D: Does not support MeshLink export. NASA/FUN3D 2-D: Invalid dimension for given CAE solver NASA/FUN3D 3-D: Supports MeshLink export. Kestrel 2-D: Does not support MeshLink export. Kestrel 3-D: Supports MeshLink export.
pw::Application get/setCAESolverAttribute Title value
Case Name.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: /^.+$/. Default value {}.
pw::Application get/setCAESolverAttribute Title value
Case Name.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: /^.+$/. Default value {}.
pw::Application get/setCAESolverAttribute ProjectDescription value
The grid project description written to the inp file.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: {:*: 0 77}. Default value {}.
pw::Application get/setCAESolverAttribute CGNS.FileType value
Specifies the exported file’s internal storage type.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < adf | hdf5 >.
pw::Application get/setCAESolverAttribute CGNS.Units value
Units of length.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < UserDefined | Meters | Centimeters | Millimeters | Feet | Inches >.
pw::Application get/setCAESolverAttribute CGNS.UseFamilyConditions value
Specifies how condition data is written to the file.
The attribute type is boolean.
This attribute supports Read/Write access. Default value true.
pw::Application get/setCAESolverAttribute LoggingLevel value
Controls message logging level.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < None | Error | Warning | Info >.
pw::Application get/setCAESolverAttribute GridFileExtension value
Sets the file extension used for Cobalt grid files. Do not enter a leading period.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: /^[^.][.\w]+$/. Default value grd.
pw::Application get/setCAESolverAttribute BlockNumberScheme value
The block id numbering scheme.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < IdOnly | IdWithType | IdAuto >.
pw::Application get/setCAESolverAttribute LogVerbosity value
Controls vebosity of export logging to the message window.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < Off | On >.
pw::Application get/setCAESolverAttribute MaxCacheSize value
Set the max cache size (MB). Use 0 to auto-size the cache.
The attribute type is integer.
This attribute supports Read/Write access. This attribute has the range: {0 2048}. Default value 0.
pw::Application get/setCAESolverAttribute ExportPriority value
Controls the export method.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < MaxSpeed | MinMemory >.
pw::Application get/setCAESolverAttribute CGNS.FileType value
Specifies the exported file’s internal storage type.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < adf | hdf5 >.
pw::Application get/setCAESolverAttribute CGNS.Units value
Units of length.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < UserDefined | Meters | Centimeters | Millimeters | Feet | Inches >.
pw::Application get/setCAESolverAttribute CGNS.UseFamilyConditions value
Specifies how condition data is written to the file.
The attribute type is boolean.
This attribute supports Read/Write access. Default value false.
pw::Application get/setCAESolverAttribute CellExport value
Controls the export of cell sets and zones.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < None | Sets | Zones | SetsAndZones >.
pw::Application get/setCAESolverAttribute FaceExport value
Controls the export of face sets and zones.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < None | Sets | Zones | SetsAndZones >.
pw::Application get/setCAESolverAttribute PointPrecision value
Controls the export of face sets and zones.
The attribute type is integer.
This attribute supports Read/Write access. This attribute has the range: {4 16}. Default value 16.
pw::Application get/setCAESolverAttribute SideBCExport value
Controls how BCs are assigned to the top and base boundaries for 2D export.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < Unspecified | Single | BaseTop | Multiple >.
pw::Application get/setCAESolverAttribute Thickness value
Offset distance for 2D export.
The attribute type is float.
This attribute supports Read/Write access. This attribute has the range: {0.0 +Inf}. Default value 0.0.
pw::Application get/setCAESolverAttribute ExportPriority value
Controls the exporter’s priority.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < MaxSpeed | MinMemory >.
pw::Application get/setCAESolverAttribute CGNS.FileType value
Specifies the exported file’s internal storage type.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < adf | hdf5 >.
pw::Application get/setCAESolverAttribute CGNS.Units value
Units of length.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < UserDefined | Meters | Centimeters | Millimeters | Feet | Inches >.
pw::Application get/setCAESolverAttribute CGNS.UseFamilyConditions value
Specifies how condition data is written to the file.
The attribute type is boolean.
This attribute supports Read/Write access. Default value true.
pw::Application get/setCAESolverAttribute BcType value
Specify the BC export format.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < Element | Node >.
pw::Application get/setCAESolverAttribute Dim2PointFormat value
Controls the 2-D point export format.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < XY | XYZ >.
pw::Application get/setCAESolverAttribute ExportGmshFileFormat value
Choose to export as Gmsh file Version 2 or Version 4.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < Version2 | Version4 >. Default value {}.
pw::Application get/setCAESolverAttribute ExportVCs value
Controls the export of volume conditions.
The attribute type is boolean.
This attribute supports Read/Write access. Default value false.
pw::Application get/setCAESolverAttribute Compressibility value
Flow compressibility.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < compressible | incompressible >.
pw::Application get/setCAESolverAttribute ExportAVMeshFileVersion value
Choose to export as AVMesh file Version 1 or 2.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < Version1 | Version2 >.
pw::Application get/setCAESolverAttribute FileContactInfo value
File contact informtion.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: {:*: 0 128}. Default value {}.
pw::Application get/setCAESolverAttribute FileDescription value
File description.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: {:*: 0 128}. Default value {Mesh exported from Pointwise}.
pw::Application get/setCAESolverAttribute MeshCoordinateSystem value
Mesh coordinate system.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < xByUzL | xByRzU | xFyRzD >.
pw::Application get/setCAESolverAttribute MeshDescription value
Mesh description.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: {:*: 0 128}. Default value {Pointwise Mesh 1}.
pw::Application get/setCAESolverAttribute MeshName value
Mesh name.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: {:*: 0 128}. Default value PointwiseMesh1.
pw::Application get/setCAESolverAttribute MeshReferenceArea value
Reference area for force/moment calculation.
The attribute type is float.
This attribute supports Read/Write access. This attribute has the range: {0 1e+16 1 1000}. Default value 1.
pw::Application get/setCAESolverAttribute MeshReferenceLength value
Reference length for Reynolds number.
The attribute type is float.
This attribute supports Read/Write access. This attribute has the range: {0 1e+16 1e-08 100}. Default value 1.
pw::Application get/setCAESolverAttribute MeshReferencePointDescription value
Reference point description.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: {:*: 0 128}. Default value origin.
pw::Application get/setCAESolverAttribute MeshReferencePointX value
Reference point X coordinate.
The attribute type is float.
This attribute supports Read/Write access. This attribute has the range: {-1e+16 1e+16 -1e+16 1e+16}. Default value 0.
pw::Application get/setCAESolverAttribute MeshReferencePointY value
Reference point Y coordinate.
The attribute type is float.
This attribute supports Read/Write access. This attribute has the range: {-1e+16 1e+16 -1e+16 1e+16}. Default value 0.
pw::Application get/setCAESolverAttribute MeshReferencePointZ value
Reference point Z coordinate.
The attribute type is float.
This attribute supports Read/Write access. This attribute has the range: {-1e+16 1e+16 -1e+16 1e+16}. Default value 0.
pw::Application get/setCAESolverAttribute MeshScale value
Mesh global scale.
The attribute type is float.
This attribute supports Read/Write access. This attribute has the range: {1e-08 1e+16 0.1 100}. Default value 1.
pw::Application get/setCAESolverAttribute MeshUnits value
Mesh dimensional units.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < in | ft | m | cm >.
pw::Application get/setCAESolverAttribute Mach value
Mach number.
The attribute type is float.
This attribute supports Read/Write access. This attribute has the range: {0.0 +Inf 0.0 30.0}. Default value 1.2.
pw::Application get/setCAESolverAttribute NPARC.BcStyle value
NPARC BC style.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < namelist | formatted >.
pw::Application get/setCAESolverAttribute NPARC.Version value
NPARC file version.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < version.2 | version.3 >.
pw::Application get/setCAESolverAttribute MaxCacheSize value
Set the max cache size (MB). Use 0 to auto-size the cache.
The attribute type is integer.
This attribute supports Read/Write access. This attribute has the range: {0 2048}. Default value 1024.
pw::Application get/setCAESolverAttribute CellExport value
Controls the export of cell sets and zones.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < None | Sets | Zones | SetsAndZones >.
pw::Application get/setCAESolverAttribute FaceExport value
Controls the export of face sets and zones.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < None | Sets | Zones | SetsAndZones >.
pw::Application get/setCAESolverAttribute PointPrecision value
Controls the export of face sets and zones.
The attribute type is integer.
This attribute supports Read/Write access. This attribute has the range: {4 16}. Default value 16.
pw::Application get/setCAESolverAttribute SideBCExport value
Controls how BCs are assigned to the top and base boundaries for 2D export.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < Unspecified | Single | BaseTop | Multiple >.
pw::Application get/setCAESolverAttribute Thickness value
Offset distance for 2D export.
The attribute type is float.
This attribute supports Read/Write access. This attribute has the range: {0.0 +Inf}. Default value 0.0.
pw::Application get/setCAESolverAttribute DataModel value
Controls the underlying NetCDF data model used by TAU export.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < NetCDF_Classic | NetCDF_64bit | NetCDF4_HDF5 >.
pw::Application get/setCAESolverAttribute Thickness value
Offset distance for 2D export.
The attribute type is float.
This attribute supports Read/Write access. This attribute has the range: {0 +Inf}. Default value 1.0.
pw::Application get/setCAESolverAttribute VariableMethodFor2D value
Controls how the XYZ variables are exported for 2D grids.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < AsDesigned | Always3D >.
pw::Application get/setCAESolverAttribute ShellOrientation value
Default PSHELL orientation.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < NormalsOut | NormalsIn >.
pw::Application get/setCAESolverAttribute ShellThickness value
Default PSHELL Thickness.
The attribute type is float.
This attribute supports Read/Write access. This attribute has the range: {0 9e+12}. Default value 0.
pw::Application get/setCAESolverAttribute WideFormat value
Export using wide column format.
The attribute type is boolean.
This attribute supports Read/Write access. Default value false.
pw::Application get/setCAESolverAttribute ExtensionType value
File name extension type.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < Simple | Detailed >.
pw::Application get/setCAESolverAttribute CreateLog value
Controls generation of a log file for debugging.
The attribute type is boolean.
This attribute supports Read/Write access. Default value false.
pw::Application get/setCAESolverAttribute MaxSegmentSize value
Maximum size of a connectivity segment in bytes.
The attribute type is integer.
This attribute supports Read/Write access. This attribute has the range: {100000 2000000000}. Default value 1000000000.
pw::Application get/setCAESolverAttribute Units value
Grid dimensional units.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < meters | centimeters | millimeters | feet | inches >.
pw::Application get/setCAESolverAttribute Units value
Grid dimensional units.
The attribute type is string.
This attribute supports Read/Write access. This attribute has the range: < meters | centimeters | millimeters | feet | inches >.
pw::Application getOversetAssemblerAttribute AssemblyAllowed
This gets the flag that indicates whether the current overset assembler allows overset grid assembly.
This attribute is of type boolean.
This attribute is read only.
pw::Application getOversetAssemblerAttribute AllowedBoundaryConditions
This gets the flag that indicates whether the current overset assembler allows boundary conditions.
This attribute is of type boolean.
This attribute is read only.
pw::Application getOversetAssemblerAttribute AllowedVolumeConditions
This gets the flag that indicates whether the current overset assembler allows volume conditions.
This attribute is of type boolean.
This attribute is read only.
pw::Application getOversetAssemblerAttribute AllowedCollarBoundaryConditions
This gets the flag that indicates whether the current overset assembler allows collar boundary conditions.
This attribute is of type boolean.
This attribute is read only.
pw::Application getFileTypeAttribute filetype_id Name
This gets the file type name.
This attribute is a string.
This attribute is read only.
pw::Application getFileTypeAttribute filetype_id Key
This gets the file type unique key.
This attribute is a integer with the range [0, infinity).
This attribute is read only.
pw::Application getFileTypeAttribute filetype_id Mode
This gets the file type IO modes that support this attribute.
This attribute is a list of strings; <DatabaseImporter | DatabaseExporter | GridImporter | GridExporter | SourcesImporter>
This attribute is read only.
pw::Application getFileTypeAttribute filetype_id Extensions
This gets the valid file type extensions.
This attribute is a list of strings.
This attribute is read only.
pw::Application getFileTypeAttribute filetype_id Filters
This gets the glob filters used to identify filenames supported by this file type.
This attribute is a list of strings.
This attribute is read only.
pw::Application getFileTypeAttribute filetype_id Description
This gets the file type description.
This attribute is a string.
This attribute is read only.
pw::Application getFileTypeAttribute filetype_id CanCheckValidFile
Returns 1 if file type supports file validation.
This attribute is a boolean.
This attribute is read only.
pw::Application getFileTypeAttribute filetype_id CanImportConditions
Returns 1 if file type supports BC/VC import.
This attribute is a boolean.
This attribute is read only.
This action gets the program and version of the application.
pw::Application getVersion
This action checks if loading the given file would result in duplicate named entities.
pw::Application checkForDuplicates ?-rules ruleVar? filename
This action checks if loading the given file would result in missing references.
pw::Application checkForMissingReferences ?-local? filename
This action checks for the number of unsupported entities that will be ignored or deleted if the file is loaded.
pw::Application checkCAEUnsupportedEntities ?-ignoreCAESolver? fileName
This action loads the entities and settings from the native file.
pw::Application load ?-ignoreCAESolver? ?-environment? ?-rules < KeepOld | KeepNew | KeepBoth >? filename
This action saves the current entities and settings to the native file format.
pw::Application save ?-compress level? ?-noOverwrite? ?< -entities ents | -environment >? filename
This action checks if the entities or settings have been modified since the last save.
pw::Application isModified
This action resets the flags that track whether or not modifications have occurred.
pw::Application clearModified
This action returns the project name which includes the file path and the filename of the currently associated file.
pw::Application getProjectName
This action checks if there are no entities.
pw::Application isEmpty
This action begins a mode in the application.
pw::Application begin ?-mode_specific_flags? mode ?entities?
This action sets the given list of entities to be the contents of the application clipboard.
pw::Application setClipboard entity_list
Clear the contents of the application clipboard.
pw::Application clearClipboard
This action checks if the application clipboard contains any entities.
pw::Application isClipboardEmpty
This action returns the number of items explicitly copied to the clipboard.
pw::Application getClipboardCount ?-type type_string?
Reset the settings of the application
pw::Application reset ?-keep keep_list? ?reset_list?
This action gets the names of the available CAE solvers.
pw::Application getCAESolverNames
This action gets the existing entities unsupported by a CAE solver and dimension.
pw::Application getCAEUnsupportedEntities name dimension
This action determines if the given dimension is supported by a CAE solver.
pw::Application isValidDimension name dim
This action determines if the given element type is supported by a CAE solver.
pw::Application isValidElement name type
This action determines if the given element topology type is supported by a CAE solver.
pw::Application isValidElementTopology name type
This action sets the current CAE solver.
pw::Application setCAESolver name ?dimension?
This action gets the name of the current CAE solver.
pw::Application getCAESolver
This action sets the current CAE solver dimension.
pw::Application setCAESolverDimension dimension
This action gets the dimension of the current CAE solver.
pw::Application getCAESolverDimension
This action returns whether settable variables are supported by the current CAE solver.
pw::Application areCAESolverVariablesSupported
This action gets the available CAE solver attribute names.
pw::Application getCAESolverAttributeNames ?-group < All | IO | *CAE* >? ?-fullname? ?-regex? ?pattern?
This action gets the named CAE solver attribute.
pw::Application getCAESolverAttribute attribute_name
This action sets the named CAE solver attribute.
pw::Application setCAESolverAttribute ?-create? attribute_name value
This action adds the named attribute to the current CAE solver.
pw::Application addCAESolverAttribute group name type access desc val range
This action gets the definition of a CAE solver attribute.
pw::Application getCAESolverAttributeDefinition ?-rangeNamesOnly? attribute_name
This action gets the available filetype ids.
pw::Application getFileTypes ?-mode < DatabaseImporter | DatabaseExporter | GridImporter | GridExporter >? ?-file filename?
This action gets the named file type attribute.
pw::Application getFileTypeAttributeNames filetype_id
This action gets the named file type attribute.
pw::Application getFileTypeAttribute filetype_id attribute_name
This action gets the available runtime attribute names.
pw::Application getRuntimeAttributeNames ?-regex? ?pattern?
This action gets the value of the named runtime attribute.
pw::Application getRuntimeAttribute attribute_name
This action gets the definition of a runtime attribute.
pw::Application getRuntimeAttributeDefinition ?-rangeNamesOnly? attribute_name
This action sets the current overset assembler.
pw::Application setOversetAssembler name
This action gets the name of the current overset assembler.
pw::Application getOversetAssembler
This action return whether overset boundary conditions are compatible between the current assembler and another
pw::Application areOversetBCsCompatible name
This action gets the names of the available overset assemblers.
pw::Application getOversetAssemblerNames ?dimension?
This action determines if the given dimension is supported by an overset assembler.
pw::Application isValidOversetDimension name dim
This action gets the named overset assembler attribute.
pw::Application getOversetAssemblerAttribute attribute_name
This action exports CAE data in a format specific to the currently selected analysis software.
pw::Application export ?-format file_format? ?-precision fp_precision? ?-noOverwrite? ?-output data_type? ents filename
This action gets the 3D position of the given point or grid coordinate.
pw::Application getXYZ < point | coord >
This action combines two points or grid coordinates in different ways.
pw::Application combine < -X | -Y | -Z | -U | -V > < point1 | coord1 > < point2 | coord2 >
This action gets the entity of the given point or grid coordinate.
pw::Application getEntity < point | coord >
This action gets the description of the given point or grid coordinate.
pw::Application getDescription < point | coord >
This action returns the list of undo levels available.
pw::Application getUndoList
This action returns the list of redo levels available.
pw::Application getRedoList
This action undoes one step.
pw::Application undo
This action resets the undo levels.
pw::Application resetUndoLevels
This action redoes one step.
pw::Application redo
This action saves an undo checkpoint.
pw::Application markUndoLevel name
This action shuts down the full application immediately, without any prompts to the user to warn about unsaved data.
pw::Application exit ?code?
Check to see if the Pointwise application is running in interactive mode with a GUI as opposed to being run in a Tcl batch interpreter.
pw::Application isInteractive
This action returns the names of all supported glyph commands.
pw::Application getAllCommandNames
This command controls the level of text output of the application.
pw::Application setVerbosity level
This command reports the current level of filtering for text output by the application.
pw::Application getVerbosity
This sets/gets the maximum number of undo levels maintained.
pw::Application get/setUndoMaximumLevels levels
This attribute is the grid preference of the application.
pw::Application get/setGridPreference < Structured | Unstructured >
This gets the extensions of files exported for the CAE solver.
pw::Application getCAESolverAttribute FileExtensions
This gets the type of file destination that is expected by the current CAE when calling the pw::Application.export command.
pw::Application getCAESolverAttribute FileDestination
This gets the allowed file formats when exporting for the CAE solver.
pw::Application getCAESolverAttribute AllowedFileFormats
This gets the allowed data precision when exporting for the CAE solver.
pw::Application getCAESolverAttribute AllowedDataPrecision
This gets the allowed file byte order when exporting for the CAE solver.
pw::Application getCAESolverAttribute AllowedFileByteOrder
This gets a boolean flag that indicates whether the CAE solver allows export of the conditions data without having to export the grid data.
pw::Application getCAESolverAttribute AllowedExportConditionsOnly
This returns a boolean flag that indicates whether the CAE solver supports the volume conditions.
pw::Application getCAESolverAttribute AllowedVolumeConditions
This gets the method used for the implementation of the exporter.
pw::Application getCAESolverAttribute ImplementationMethod
This returns a boolean flag that indicates whether the CAE solver supports setting an export mirror plane.
pw::Application getCAESolverAttribute AllowedExportMirroring
This gets a list of the element types supported by the CAE solver.
pw::Application getCAESolverAttribute AllowedElements
This gets a list of the element topologies supported by the CAE solver.
pw::Application getCAESolverAttribute AllowedElementTopologies
Returns an integer specifying the maximum mesh elevation polynomial degree supported by the current CAE solver.
pw::Application getCAESolverAttribute MaxMeshPolynomialDegree
This returns a boolean flag that indicates whether the current CAE solver supports the export of MeshLink files.
pw::Application getCAESolverAttribute MeshLinkSupported
Case Name.
pw::Application get/setCAESolverAttribute Title value
The grid project description written to the inp file.
pw::Application get/setCAESolverAttribute ProjectDescription value
Specifies the exported file’s internal storage type.
pw::Application get/setCAESolverAttribute CGNS.FileType value
Units of length.
pw::Application get/setCAESolverAttribute CGNS.Units value
Specifies how condition data is written to the file.
pw::Application get/setCAESolverAttribute CGNS.UseFamilyConditions value
Controls message logging level.
pw::Application get/setCAESolverAttribute LoggingLevel value
Sets the file extension used for Cobalt grid files.
pw::Application get/setCAESolverAttribute GridFileExtension value
The block id numbering scheme.
pw::Application get/setCAESolverAttribute BlockNumberScheme value
Controls vebosity of export logging to the message window.
pw::Application get/setCAESolverAttribute LogVerbosity value
Set the max cache size (MB).
pw::Application get/setCAESolverAttribute MaxCacheSize value
Controls the export method.
pw::Application get/setCAESolverAttribute ExportPriority value
Controls the export of cell sets and zones.
pw::Application get/setCAESolverAttribute CellExport value
Controls the export of face sets and zones.
pw::Application get/setCAESolverAttribute FaceExport value
Controls the export of face sets and zones.
pw::Application get/setCAESolverAttribute PointPrecision value
Controls how BCs are assigned to the top and base boundaries for 2D export.
pw::Application get/setCAESolverAttribute SideBCExport value
Offset distance for 2D export.
pw::Application get/setCAESolverAttribute Thickness value
Specify the BC export format.
pw::Application get/setCAESolverAttribute BcType value
Controls the 2-D point export format.
pw::Application get/setCAESolverAttribute Dim2PointFormat value
Choose to export as Gmsh file Version 2 or Version 4.
pw::Application get/setCAESolverAttribute ExportGmshFileFormat value
Controls the export of volume conditions.
pw::Application get/setCAESolverAttribute ExportVCs value
Flow compressibility.
pw::Application get/setCAESolverAttribute Compressibility value
Choose to export as AVMesh file Version 1 or 2.
pw::Application get/setCAESolverAttribute ExportAVMeshFileVersion value
File contact informtion.
pw::Application get/setCAESolverAttribute FileContactInfo value
File description.
pw::Application get/setCAESolverAttribute FileDescription value
Mesh coordinate system.
pw::Application get/setCAESolverAttribute MeshCoordinateSystem value
Mesh description.
pw::Application get/setCAESolverAttribute MeshDescription value
Mesh name.
pw::Application get/setCAESolverAttribute MeshName value
Reference area for force/moment calculation.
pw::Application get/setCAESolverAttribute MeshReferenceArea value
Reference length for Reynolds number.
pw::Application get/setCAESolverAttribute MeshReferenceLength value
Reference point description.
pw::Application get/setCAESolverAttribute MeshReferencePointDescription value
Reference point X coordinate.
pw::Application get/setCAESolverAttribute MeshReferencePointX value
Reference point Y coordinate.
pw::Application get/setCAESolverAttribute MeshReferencePointY value
Reference point Z coordinate.
pw::Application get/setCAESolverAttribute MeshReferencePointZ value
Mesh global scale.
pw::Application get/setCAESolverAttribute MeshScale value
Mesh dimensional units.
pw::Application get/setCAESolverAttribute MeshUnits value
Mach number.
pw::Application get/setCAESolverAttribute Mach value
NPARC BC style.
pw::Application get/setCAESolverAttribute NPARC.BcStyle value
NPARC file version.
pw::Application get/setCAESolverAttribute NPARC.Version value
Controls the underlying NetCDF data model used by TAU export.
pw::Application get/setCAESolverAttribute DataModel value
Controls how the XYZ variables are exported for 2D grids.
pw::Application get/setCAESolverAttribute VariableMethodFor2D value
Default PSHELL orientation.
pw::Application get/setCAESolverAttribute ShellOrientation value
Default PSHELL Thickness.
pw::Application get/setCAESolverAttribute ShellThickness value
Export using wide column format.
pw::Application get/setCAESolverAttribute WideFormat value
File name extension type.
pw::Application get/setCAESolverAttribute ExtensionType value
Controls generation of a log file for debugging.
pw::Application get/setCAESolverAttribute CreateLog value
Maximum size of a connectivity segment in bytes.
pw::Application get/setCAESolverAttribute MaxSegmentSize value
Grid dimensional units.
pw::Application get/setCAESolverAttribute Units value
This gets the flag that indicates whether the current overset assembler allows overset grid assembly.
pw::Application getOversetAssemblerAttribute AssemblyAllowed
This gets the flag that indicates whether the current overset assembler allows boundary conditions.
pw::Application getOversetAssemblerAttribute AllowedBoundaryConditions
This gets the flag that indicates whether the current overset assembler allows collar boundary conditions.
pw::Application getOversetAssemblerAttribute AllowedCollarBoundaryConditions
This gets the file type name.
pw::Application getFileTypeAttribute filetype_id Name
This gets the file type unique key.
pw::Application getFileTypeAttribute filetype_id Key
This gets the file type IO modes that support this attribute.
pw::Application getFileTypeAttribute filetype_id Mode
This gets the IO destination that is expected by the file type.
pw::Application getFileTypeAttribute filetype_id Destination
This gets the valid file type extensions.
pw::Application getFileTypeAttribute filetype_id Extensions
This gets the glob filters used to identify filenames supported by this file type.
pw::Application getFileTypeAttribute filetype_id Filters
This gets the file type description.
pw::Application getFileTypeAttribute filetype_id Description
Returns 1 if file type supports file validation.
pw::Application getFileTypeAttribute filetype_id CanCheckValidFile
Returns 1 if file type supports BC/VC import.
pw::Application getFileTypeAttribute filetype_id CanImportConditions
Application machine architecture.
pw::Application getRuntimeAttribute AppMachine
Application name.
pw::Application getRuntimeAttribute AppName
Application name and version.
pw::Application getRuntimeAttribute AppNameAndVersion
Application version.
pw::Application getRuntimeAttribute AppVersion
Application candidate version number.
pw::Application getRuntimeAttribute AppVersionCandidate
Application major version number.
pw::Application getRuntimeAttribute AppVersionMajor
Application minor version number.
pw::Application getRuntimeAttribute AppVersionMinor
Application release version number.
pw::Application getRuntimeAttribute AppVersionRelease
Application plugins directory.
pw::Application getRuntimeAttribute DirAppPlugins
Application public directory.
pw::Application getRuntimeAttribute DirAppPublic
Public plugins directory.
pw::Application getRuntimeAttribute DirPublicPlugins
System application public directory.
pw::Application getRuntimeAttribute DirSysAppPublic
System temporary directory.
pw::Application getRuntimeAttribute DirSysTemp
User home directory.
pw::Application getRuntimeAttribute DirSysUserHome
User private directory.
pw::Application getRuntimeAttribute DirSysUserPrivate
User public directory.
pw::Application getRuntimeAttribute DirSysUserPublic