|
pyCAPS
pyCAPS: A Python Extension Module for CAPS
|
Defines Analysis Geometry Object. More...
Inherits object.
Public Member Functions | |
| bodies (self) | |
| Get dict of geometric bodies. | |
| save (self, filename, directory=os.getcwd(), extension=".egads", writeTess=True) | |
| Save the current geometry used by the AIM to a file. | |
| view (self, **kwargs) | |
| View the geometry associated with the analysis. | |
| attrList (self, attributeName, **kwargs) | |
| Retrieve a list of geometric attribute values of a given name ("attributeName") for the bodies loaded into the analysis. | |
| attrMap (self, getInternal=False, **kwargs) | |
| Create geometric attribution map (embeded dictionaries) for the bodies loaded into the analysis. | |
Defines Analysis Geometry Object.
| AnalysisGeometry.despmtr | ValueInSequence of ValueIn CSM design parameters |
| AnalysisGeometry.cfgpmtr | ValueInSequence of ValueIn CSM configuration parameters |
| AnalysisGeometry.conpmtr | ValueInSequence of ValueIn CSM constant parameters |
| AnalysisGeometry.outpmtr | ValueOutSequence of ValueOut CSM outputs |
| attrList | ( | self, | |
| attributeName, | |||
| ** | kwargs | ||
| ) |
Retrieve a list of geometric attribute values of a given name ("attributeName") for the bodies loaded into the analysis.
Level in which to search the bodies is determined by the attrLevel keyword argument. See analysis3.py for a representative use case.
| attributeName | Name of attribute to retrieve values for. |
| **kwargs | See below. |
Valid keywords:
| bodyIndex | Specific body in which to retrieve attribute information from. |
| attrLevel | Level to which to search the body(ies). Options: 0 (or "Body") - search just body attributes 1 (or "Face") - search the body and all the faces [default] 2 (or "Edge") - search the body, faces, and all the edges 3 (or "Node") - search the body, faces, edges, and all the nodes |
| attrMap | ( | self, | |
getInternal = False, |
|||
| ** | kwargs | ||
| ) |
Create geometric attribution map (embeded dictionaries) for the bodies loaded into the analysis.
Dictionary layout:
Dictionary layout (reverseMap = True):
| **kwargs | See below. |
| reverseMap | Reverse the attribute map (default - False). See above table for details. |
| bodies | ( | self | ) |
Get dict of geometric bodies.
| save | ( | self, | |
| filename, | |||
directory = os.getcwd(), |
|||
extension = ".egads", |
|||
writeTess = True |
|||
| ) |
Save the current geometry used by the AIM to a file.
| filename | File name to use when saving geometry file. |
| directory | Directory where to save file. Default current working directory. |
| extension | Extension type for file if filename does not contain an extension. |
| writeTess | Write tessellations to the EGADS file (only applies to .egads extension) |
| view | ( | self, | |
| ** | kwargs | ||
| ) |
View the geometry associated with the analysis.
If the analysis produces a surface tessellation, then that is shown. Otherwise the bodies are shown with default tessellation parameters. Note that the geometry must be built and will not autoamtically be built by this function.
| **kwargs | See below. |
Valid keywords:
| portNumber | Port number to start the server listening on (default - 7681). |