Abaqus Session

Session commands are used to create objects that are not stored with the model; for example, viewports and display groups. Abaqus/CAE retains Session objects only for the duration of the session; they are not saved when the model database is saved.

Classes

Session

class Session[源代码]

基类:AnimationSession, CanvasSession, DisplayGroupSession, FieldReportSession, JobSession, OdbSession, PathSession, XYSession

The Session object has no constructor. Abaqus creates the session member when a session is started.

备注

This object can be accessed by:

session

Public Data Attributes:

Inherited from SessionBase

attachedToGui

A Boolean specifying whether an Abaqus interactive session is running.

replayInProgress

A Boolean specifying whether Abaqus is executing a replay file.

kernelMemoryFootprint

A Float specifying the memory usage value for the Abaqus/CAE kernel process in megabytes.

kernelMemoryMaxFootprint

A Float specifying the maximum value for the memory usage for the Abaqus/CAE kernel process in megabytes.

kernelMemoryLimit

A Float specifying the limit for the memory use for the Abaqus/CAE kernel process in megabytes.

colors

A repository of Color objects.

journalOptions

A JournalOptions object specifying how to record selection of geometry in the journal and replay files.

memoryReductionOptions

A MemoryReductionOptions object specifying options for running in reduced memory mode.

nodeQuery

A NodeQuery object specifying nodes and their coordinates in a path.

sketcherOptions

A ConstrainedSketcherOptions object specifying common options for all sketches.

viewerOptions

A ViewerOptions object.

animationOptions

An AnimationOptions object.

aviOptions

An AVIOptions object.

imageAnimationOptions

An ImageAnimationOptions object.

imageAnimation

An ImageAnimation object.

quickTimeOptions

A QuickTimeOptions object.

viewports

A repository of Viewport objects.

customData

A RepositorySupport object.

defaultFieldReportOptions

A FieldReportOptions object.

defaultFreeBodyReportOptions

A FreeBodyReportOptions object.

fieldReportOptions

A FieldReportOptions object.

freeBodyReportOptions

A FreeBodyReportOptions object.

odbs

A repository of Odb objects.

scratchOdbs

A repository of ScratchOdb objects.

defaultOdbDisplay

A DefaultOdbDisplay object.

defaultPlot

A DefaultPlot object.

defaultChartOptions

A DefaultChartOptions object.

odbData

A repository of OdbData objects.

mdbData

A repository of MdbData objects.

paths

A repository of Path objects.

freeBodies

A repository of FreeBody objects.

streams

A repository of Stream objects.

spectrums

A repository of Spectrum objects.

currentProbeValues

A CurrentProbeValues object.

defaultProbeOptions

A ProbeOptions object.

probeOptions

A ProbeOptions object.

probeReport

A ProbeReport object.

defaultProbeReport

A ProbeReport object.

selectedProbeValues

A SelectedProbeValues object.

printOptions

A PrintOptions object.

epsOptions

An EpsOptions object.

pageSetupOptions

A PageSetupOptions object.

pngOptions

A PngOptions object.

psOptions

A PsOptions object.

svgOptions

A SvgOptions object.

tiffOptions

A TiffOptions object.

autoColors

An AutoColors object specifying the color palette to be used for color coding.

xyColors

An AutoColors object specifying the color palette to be used forXYCurve objects.

xyDataObjects

A repository of XYData objects.

curves

A repository of XYCurve objects.

xyPlots

A repository of XYPlot objects.

charts

A repository of Chart objects.

defaultXYReportOptions

An XYReportOptions object.

xyReportOptions

An XYReportOptions object.

views

A repository of View objects.

networkDatabaseConnectors

A repository of NetworkDatabaseConnector objects.

displayGroups

A repository of DisplayGroup objects.

graphicsInfo

A GraphicsInfo object.

defaultGraphicsOptions

A GraphicsOptions object.

graphicsOptions

A GraphicsOptions object.

defaultViewportAnnotationOptions

A ViewportAnnotationOptions object.

queues

A repository of Queue objects.

currentViewportName

A String specifying the name of the current viewport.

sessionState

A Dictionary object specifying the viewports and their associated models.

images

A repository of Image objects.

movies

A repository of Movie objects.

defaultLightOptions

A LightOptions object.

drawingArea

A DrawingArea object.

defaultMesherOptions

A MesherOptions object specifying how to control default settings in the Mesh module.

drawings

A repository of Drawing objects.

Public Methods:

Inherited from AnimationSession

writeImageAnimation(fileName, format[, ...])

This method writes the animations present in the list of canvas objects to a file.

Movie(name, fileName[, startFrame, ...])

This method creates a Movie object from the contents of the specified file.

Inherited from CanvasSession

Viewport(name[, origin, width, height, ...])

This method creates a Viewport object with the specified origin and dimensions.

Inherited from DisplayGroupSession

DisplayGroup(name, leaf)

This method creates a DisplayGroup object.

Inherited from FieldReportSession

writeFieldReport(filename, append, sortItem, ...)

This method writes a FieldOutput object to a user-defined ASCII file.

writeFreeBodyReport(fileName, append[, ...])

This method writes a FreeBody object to a user-defined ASCII file.

Inherited from JobSession

Queue(name, queueName[, hostName, fileCopy, ...])

This method creates a Queue object.

Inherited from OdbSession

ScratchOdb(odb)

This method creates a new ScratchOdb object.

openOdb(name[, path, readOnly])

This method opens an existing output database (.odb) file and creates a new Odb object. This method is accessed only via the session object inside Abaqus/CAE and adds the new Odb object to the session.odbs repository. This method allows you to open multiple output databases at the same time and to use the repository key to specify a particular output database. For example::.

upgradeOdb(existingOdbPath, upgradedOdbPath)

This method upgrades an existing Odb object to the current release and writes the upgraded version of the Odb object to a file.

Inherited from PathSession

Path(name, type, expression, ...)

This method creates a Path object.

Spectrum(name, colors)

This method creates a Spectrum object and places it in the spectrums repository.

Stream(name, numPointsOnRake[, pointA, ...])

This method creates aStream object and places it in the streams repository.

Inherited from XYSession

AreaStyle([color, fill, style])

This method creates an AreaStyle.

LineStyle([color, show, style, thickness])

This method creates a LineStyle.

QuantityType([type, label])

This method creates a QuantityType object.

SymbolStyle([color, show, marker, size])

This method creates a SymbolStyle object.

TextStyle([color, show, font, rotationAngle])

This method creates a TextStyle.

XYData()

XYDataFromFile(fileName[, name, ...])

This method creates an XYData object from data in an ASCII file.

XYDataFromHistory(odb, outputVariableName, steps)

This method creates an XYData object by reading history data from an Odb object.

xyDataListFromField(odb, outputPosition, ...)

This method creates a list of XYData objects by reading field data from an Odb object.

XYDataFromFreeBody(odb[, force, moment, ...])

This method creates a list of XYData objects by computing free body data from an Odb object.

XYDataFromShellThickness(odb, ...[, ...])

This method creates a list of XYData objects by reading through the thickness field data from an Odb object.

XYDataFromPath(path, name[, ...])

This method creates an XYData object from path information.

Inherited from XYSessionBase

linearizeStress(name, path, startPoint, ...)

This method is used to perform stress linearization along a defined stress line.

setPathTolerance([tolerance])

This method is used to set the tolerance to be used when creating XYData objects by extracting results along Path objects.

getPathTolerance()

This method is used to get the tolerance used when creating XYData objects by extracting results along Path objects.

setLimitForXYDataPlots([limit])

This method is used to set the limit for number of XY data objects while creating XYData from field output.

getLimitForXYDataPlots()

This method is used to get the limit for number of XY data objects while creating XYData from field output.

Inherited from SessionBase

setValues([kernelMemoryLimit])

This method modifies the Session object.

enableCADConnection(CADName[, portNum])

This method enables the Abaqus/CAE listening port for the specified CAD system.

isCADConnectionEnabled()

This method checks the status of CAD Connection.

disableCADConnection(CADName)

This method disables an associative import CAD connection that was enabled.

enableParameterUpdate(CADName, CADVersion[, ...])

This method enables parameter updates for ProE and NX by establishing a connection with the listening port previously setup by the CAD application.

setCADPortNumber(CADName, Port)

This method enables parameter updates for CATIA V5 and CATIA V6 by establishing a connection with the listening port previously setup by the CAD application.

updateCADParameters(modelName, CADName, ...)

This method updates the parameters for the specified model using the specified parameter file.

disableParameterUpdate(CADName)

This method disables an associative CAD connection using parameters.

printToFile(fileName[, format, ...])

This method prints canvas objects to a file using the attributes stored in the PrintOptions object and the appropriate format options object.

printToPrinter([printCommand, numCopies, ...])

This method prints canvas objects to a Windows printer or to a PostScript printer.

saveOptions(directory)

This method saves your customized display settings.

writeVrmlFile(fileName[, format, canvasObjects])

This method exports the current viewport objects to a file.

write3DXMLFile(fileName[, format, canvasObjects])

This method exports the current viewport objects to a file.

writeOBJFile(fileName[, canvasObjects])

This method exports the current viewport objects to a file.


Member Details:

Other Classes

class AutoColors[源代码]

基类:object

The AutoColors object defines a color palette.

备注

This object can be accessed by:

session.autoColors

Member Details:

setValues(colors)[源代码]

This method changes the color palette.

参数:
colors

A sequence of Strings specifying the colors of the palette. Strings must be named colors or represent red, green, blue components in hexadecimal form. For instance, '#FF0000' for red, '#00FF00' for green and '#0000FF' for blue

class Color[源代码]

基类:object

The Color object contains the RGB definition of a system color.

备注

This object can be accessed by:

session.colors[name]

Member Details:

name : --is-rst--:py:class:`str` = ''[源代码]

A String specifying the name of the color.

rgb : --is-rst--:py:class:`float` | :py:obj:`None` = None[源代码]

A tuple of three Floats specifying the RGB value of the color. The Float values must be between 0.0 and 1.0.

setByRGB(rgb)[源代码]

This method changes the RGB value of a user-defined color. However, users cannot define colors, and this method does not modify system-defined colors.

参数:
rgb

A sequence of three Floats specifying the RGB value of the color. The Float values must be between 0.0 and 1.0.

class Drawing(name)[源代码]

基类:object

A drawing is the container for a geometric object. The Drawing object stores the vertex data and various settings that determine how the drawing will be displayed.

备注

This object can be accessed by:

session.drawings[name]

Member Details:

addArrayDraw(type, startIndex, numVertices, polygonMode=FILL)[源代码]

This method adds a rendering command to the drawing and can be called multiple times to add additional rendering commands. When the drawing is referenced by a Viewport, the drawing commands are used the render the Drawing. The rendering command constructs the specified type of geometric primitive using numVertices array elements starting at element index startIndex.

参数:
type

A SymbolicConstant specifying the type of graphics primitive rendered by this command. Possible values are POINTS, LINES, LINE_LOOP, LINE_STRIP, TRIANGLES, TRIANGLE_STRIP, TRIANGLE_FAN, QUADS, and QUAD_STRIP.

startIndex

An Integer specifying the index of the first vertex to render.

numVertices

An Integer specifying the total number of vertices to render.

polygonMode=FILL

A SymbolicConstant specifying how polygonal graphics primitives will be rendered by this command. Possible values are FILL, EDGES, and POINTS. The default value is FILL.

返回:

The total number of rendering commands that have been specified.

返回类型:

int

抛出:
  • ValueError -- If (startIndex + numVertices - 1) is larger than the length of the vertex array:

  • ValueError -- Drawing request extends past array size of vertices, - If (startIndex + numVertices - 1) is larger than the length of the normal array and normals are required for the graphics primitive: Drawing request extends past array size of normals. - If (startIndex + numVertices - 1) is larger than the length of the color array and vertex colors are required for the graphics primitive: Drawing request extends past array size of colors.

addIndexDraw(type, indices, polygonMode=FILL)[源代码]

This method adds a rendering command to the drawing and can be called multiple times to add additional rendering commands. When the drawing is referenced by a Viewport, the drawing commands are used the render the Drawing. The rendering command constructs the specified type of geometric primitive using numVertices array elements starting at element index startIndex.

参数:
type

A SymbolicConstant specifying the type of graphics primitive rendered by this command. Possible values are POINTS, LINES, LINE_LOOP, LINE_STRIP, TRIANGLES, TRIANGLE_STRIP, TRIANGLE_FAN, QUADS, and QUAD_STRIP.

indices

A sequence of Integer values specifying index of each vertex to render.

polygonMode=FILL

A SymbolicConstant specifying how polygonal graphics primitives will be rendered by this command. Possible values are FILL, EDGES, and POINTS. The default value is FILL.

返回:

The total number of rendering commands that have been specified.

返回类型:

int

抛出:
  • ValueError --

    • If any value in the indices sequence negative: ValueError Index values must be positive, - If any value in the indices sequence is larger than the length of the vertex array:

  • ValueError -- Drawing request extends past array size of vertices, - If any value in the indices sequence is larger than the length of the normal array and normals are required for the graphics primitive: Drawing request extends past array size of normals. - If any value in the indices sequence is larger than the length of the color array and vertex colors are required for the graphics primitive: Drawing request extends past array size of colors.

colorCount : --is-rst--:py:class:`int` = 0[源代码]

An Int specifying the number of colors in the color array after a call to the setColors method. The default value is 0.

cullBackfaces : --is-rst--:py:data:`~typing.Union`\ \[:py:class:`~abaqus.UtilityAndView.AbaqusBoolean.AbaqusBoolean`, :py:class:`bool`] = 0[源代码]

A Boolean specifying whether polygonal graphics primitives facing away from the viewer should be culled (not rendered). The default value is OFF.The winding order, and not the normal, of the graphics primitive is used to determine its facing.

edgeColor : --is-rst--:py:class:`float` | :py:obj:`None` = None[源代码]

A tuple of three Floats specifying the Red, Green, and Blue component values for the edge color. Possible values for each component are between 0.0 and 1.0.

edgesInShaded : --is-rst--:py:data:`~typing.Union`\ \[:py:class:`~abaqus.UtilityAndView.AbaqusBoolean.AbaqusBoolean`, :py:class:`bool`] = 1[源代码]

A Boolean specifying whether edge and point drawing commands will be issued in a FILLED or SHADED display. The default value is ON.If no edge or point drawing commands have been defined, the polygonal drawing commands will be issued in WIREFRAME and HIDDEN_LINE displays with the polygonMode set to EDGES. If only edge and point drawing commands have been defined, the Drawing will not be rendered in FILLED or SHADED displays.

frontFaceOrder : --is-rst--:py:class:`~abaqus.UtilityAndView.SymbolicConstant.SymbolicConstant` = 'CCW'[源代码]

A SymbolicConstant specifying the winding order for polygonal graphics primitives that face the viewer. Possible values are:CCW, specifying front face winding order is counter-clockwise.CW, specifying front face winding order is clockwise.The default value is CCW.

lineSize : --is-rst--:py:class:`float` = 0[源代码]

A Float specifying the width of the line, in millimeters, used to render edges. Possible values are 0.0 ≤ lineSize ≤ 5.0 with 0.0 being interpreted as the thinnest possible line. The default value is 0.0.A value of 0.0 will be one pixel on the output device. One pixel on the screen is generally visible but one pixel on a 1200 DPI printer may not be clear.

name : --is-rst--:py:class:`str`[源代码]

A String specifying the repository key.

normalCount : --is-rst--:py:class:`int` = 0[源代码]

An Int specifying the number of normal vectors in the normal array after a call to the setNormals method. The default value is 0.

pointColor : --is-rst--:py:class:`float` | :py:obj:`None` = None[源代码]

A tuple of three Floats specifying the Red, Green, and Blue component values for the point color. Possible values for each component are between 0.0 and 1.0.

pointSize : --is-rst--:py:class:`float` = 0[源代码]

A Float specifying the width of points, in millimeters, used to render points. Possible values are 0.0 ≤ lineSize ≤ 5.0 with 0.0 being interpreted as the smallest possible point. The default value is 0.0.A value of 0.0 will be one pixel on the output device. One pixel on the screen is generally visible but one pixel on a 1200 DPI printer may not be clear.

setColors(colorDimension, colorData)[源代码]

This method accepts the color data for each vertex. It defines in an array of colors with a length equal to the length of the colorData sequence divided by colorDimension.

参数:
colorDimension

An Integer in the range of 3 to 4 specifying how many Float values are needed to compose a single color.

colorData

A sequence of Float values in the range of 0.0 to 1.0 that will be used to compose the colors. There must be colorDimension values in the sequence for each color. The first color will be associated with the fist vertex and so on.The first Float will be the red value for the first color. The second Float will be the green value and the third will be the blue value. When colorDimension is 4 the 4th Float will be the alpha value for the first color but is ignored.If only one color is specified, all vertices will use the color value.

返回:

The number of colors described.

返回类型:

int

抛出:
  • RangeError -- If an invalid colorDimension is specified.

  • ValueError -- If colorData is an empty sequence.

  • ValueError -- If setColors has already been called and this call is sending fewer colors.

setEdgeColor(edgeColor)[源代码]

This method allows a separate, single color to be used when rendering the edges of the drawing. Once called, edges will be rendered using the specified color but facets will continue to use the colors specified in the setColors method. An empty sequence can be specified to resume using the colors arrays for edges.

参数:
edgeColor

A sequence of 0 or 3 Float values in the range of 0.0 to 1.0 that will be used to compose the edge color.If the initial Float value is -1, the viewport background color will be used for the edge color.

抛出:

ValueError --

  • If edgeColor is not a sequence of 0 or 3 Floats: ValueError: edgeColor must be a tuple with 3 values

setNormals(normalData)[源代码]

This method accepts the normal data for each vertex. It defines in an array of normal vectors with a length equal to the length of the normalData sequence divided by 3.

参数:
normalData

A sequence of Float values that will be used to compose the normals. There must be 3 values in the sequence for each normal.If only one normal is specified, all vertices will use the normal value.

返回:

The number of normals described.

返回类型:

int

抛出:
  • RangeError --

  • ValueError -- If normalData is sequence with less than 3 values.

  • ValueError -- If setNormals has already been called and this call is sending fewer values.

setPointColor(pointColor)[源代码]

This method allows a separate, single color to be used when rendering the points of the drawing. Once called, points will be rendered using the specified color but facets will continue to use the colors specified in the setColors method. An empty sequence can be specified to resume using the colors arrays for points.

参数:
pointColor

A sequence of 0 or 3 Float values in the range of 0.0 to 1.0 that will be used to compose the point color.If the initial Float value is -1, the viewport background color will be used for the edge color.

抛出:

ValueError --

  • If pointColor is a not sequence of 0 or 3 Floats: ValueError: pointColor must be a tuple with 3 values

setValues(
show=0,
cullBackfaces=0,
frontFaceOrder=CCW,
smoothShade=1,
edgesInShaded=1,
translucency=1,
lineSize=0,
pointSize=0,
)[源代码]

This method modifies the rendering of the Drawing object.

参数:
show=0

A Boolean specifying whether the drawing object will be rendered when referenced. The default value is OFF.

cullBackfaces=0

A Boolean specifying whether polygonal graphics primitives facing away from the viewer should be culled (not rendered). The default value is OFF.The winding order, and not the normal, of the graphics primitive is used to determine its facing.

frontFaceOrder=CCW

A SymbolicConstant specifying the winding order for polygonal graphics primitives that face the viewer. Possible values are:CCW, specifying front face winding order is counter-clockwise.CW, specifying front face winding order is clockwise.The default value is CCW.

smoothShade=1

A Boolean specifying whether the lighting of polygonal graphics primitives is consistent for each facet or calculated for each displayed pixel. The default value is ON.When False, only the last normal for each facet will be used in the lighting calculation.

edgesInShaded=1

A Boolean specifying whether edge and point drawing commands will be issued in a FILLED or SHADED display. The default value is ON.If no edge or point drawing commands have been defined, the polygonal drawing commands will be issued in WIREFRAME and HIDDEN_LINE displays with the polygonMode set to EDGES. If only edge and point drawing commands have been defined, the Drawing will not be rendered in FILLED or SHADED displays.

translucency=1

A Float specifying the opacity for polygonal graphics primitives. Possible values are 0.0 ≤ translucency ≤ 1.0 with 0.0 being completely transparent (invisible) and 1.0 being opaque. The default value is 1.0.A value greater than 0.3 will cause the translucent facets to be sorted by depth before being rendered and has the side effect of disabling two-sided lighting for those facets.

lineSize=0

A Float specifying the width of the line, in millimeters, used to render edges. Possible values are 0.0 ≤ lineSize ≤ 5.0 with 0.0 being interpreted as the thinnest possible line. The default value is 0.0.A value of 0.0 will be one pixel on the output device. One pixel on the screen is generally visible but one pixel on a 1200 DPI printer may not be clear.

pointSize=0

A Float specifying the width of points, in millimeters, used to render points. Possible values are 0.0 ≤ lineSize ≤ 5.0 with 0.0 being interpreted as the smallest possible point. The default value is 0.0.A value of 0.0 will be one pixel on the output device. One pixel on the screen is generally visible but one pixel on a 1200 DPI printer may not be clear.

抛出:

RangeError --

  • If an invalid translucency value is specified: RangeError: translucency must be in the range 0.0 <= value <= 1.0 - If an invalid lineSize value is specified: RangeError: lineSize must be in the range 0.0 <= value <= 5.0 - If an invalid pointSize value is specified: RangeError: pointSize must be in the range 0.0 <= value <= 5.0

setVertices(vertexDimension, vertexData)[源代码]

This method accepts the vertex data that defines the Drawing object. It defines in an array of vertices with a length equal to the length of the vertexData sequence divided by vertexDimension.

参数:
vertexDimension

An Integer in the range of 2 to 4 specifying how many Float values are needed to compose a single vertex.

vertexData

A sequence of Float values that will be used to compose the vertices. There must be vertexDimension values in the sequence for each vertex.

返回:

The number of vertices described.

返回类型:

int

抛出:
  • RangeError -- If an invalid vertexDimension is specified.

  • ValueError -- If vertexData is an empty sequence.

  • ValueError -- If setVertices has already been called and this call is sending fewer vertices.

show : --is-rst--:py:data:`~typing.Union`\ \[:py:class:`~abaqus.UtilityAndView.AbaqusBoolean.AbaqusBoolean`, :py:class:`bool`] = 0[源代码]

A Boolean specifying whether the drawing object will be rendered when referenced. The default value is OFF.

smoothShade : --is-rst--:py:data:`~typing.Union`\ \[:py:class:`~abaqus.UtilityAndView.AbaqusBoolean.AbaqusBoolean`, :py:class:`bool`] = 1[源代码]

A Boolean specifying whether the lighting of polygonal graphics primitives is consistent for each facet or calculated for each displayed pixel. The default value is ON.When False, only the last normal for each facet will be used in the lighting calculation.

translucency : --is-rst--:py:class:`float` = 1[源代码]

A Float specifying the opacity for polygonal graphics primitives. Possible values are 0.0 ≤ translucency ≤ 1.0 with 0.0 being completely transparent (invisible) and 1.0 being opaque. The default value is 1.0.A value greater than 0.3 will cause the translucent facets to be sorted by depth before being rendered and has the side effect of disabling two-sided lighting for those facets.

vertexCount : --is-rst--:py:class:`int` = 0[源代码]

An Int specifying the number of vertices in the vertex array after a call to the setVertices method. The default value is 0.

class Image(name, fileName)[源代码]

基类:object

The Image object is used to store color values and attributes associated with a raster file. Upon creation, the Image object is added to the session.images repository.

备注

This object can be accessed by:

session.images[name]

Member Details:

ImageFromMovie(name, movieName, frame, time)[源代码]

This method creates an Image object from a given frame of an existing Movie object.

参数:
name

A String specifying the repository name for the image.

movieName

A String specifying the name of the movie from which the image is to be extracted. The movie must exist in the session.movies repository.

frame

An Int specifying the movie frame number defining the image to be extracted.

time

A Float specifying the time of the movie defining the image to be extracted.

返回:

An Image object.

返回类型:

Image

抛出:
  • ValueError -- If movieName does not exist.

  • ValueError -- If frame references an non existing frame.

  • ValueError -- If time references an non existing frame.

  • TypeError -- keyword error on time, If time and frame are given in the same command.

fileName : --is-rst--:py:class:`str`[源代码]

A String specifying the file from which the image is to be read. The file extension must be specified and indicate the image format (.bmp, .gif, .jpg, .jpeg, .ico, .pcx, .png, .rgb, .tga, .tif, or .xpm).

name : --is-rst--:py:class:`str`[源代码]

A String specifying the repository name for the image.

class JournalOptions[源代码]

基类:object

A JournalOptions object specifies how to record selection of geometry in the journal and replay files. journalOptions can also be used to set the numeric formatting options for field report output, geometry commands output, and a default format for other numeric output. The JournalOptions object has no constructor. Abaqus creates the journalOptions member when a session is started.

备注

This object can be accessed by:

session.journalOptions

Member Details:

NumberFormat(blankPad=1, format=ENGINEERING, numDigits=6, precision=0)[源代码]

This method creates a NumberFormat object.

备注

This function can be accessed by:

session.defaultFieldReportOptions.NumberFormat
session.fieldReportOptions.NumberFormat
session.journalOptions.NumberFormat
参数:
blankPad=1

A Boolean specifying whether the printed digits should be padded with blank characters to ensure equal sized fields. The blankPad argument is useful when your printed output includes columns. The default value is ON.

format=ENGINEERING

A SymbolicConstant specifying the formatting type. Possible values are ENGINEERING, SCIENTIFIC, and AUTOMATIC. The default value is ENGINEERING.

numDigits=6

An Int specifying the number of digits to be displayed in the result. numDigits >0>0. The default value is 6.

precision=0

An Int specifying the number of decimal places to which the number is to be truncated for display. precision ≤0≤0. If precision =0, no truncation is applied. The default value is 0.

返回:

A NumberFormat object.

返回类型:

NumberFormat

numberFormat : --is-rst--:py:class:`~abaqus.Session.NumberFormat.NumberFormat` = <abaqus.Session.NumberFormat.NumberFormat object>[源代码]

Format of the number

setValues(
replayGeometry=COMPRESSEDINDEX,
recoverGeometry=COMPRESSEDINDEX,
defaultFormat=None,
fieldReportFormat=None,
geometryFormat=None,
)[源代码]

This method modifies the JournalOptions object.

参数:
replayGeometry=COMPRESSEDINDEX

A SymbolicConstant specifying the format of the geometry in the replay file. Possible values are COORDINATE, INDEX, and COMPRESSEDINDEX. The default value is COMPRESSEDINDEX.

recoverGeometry=COMPRESSEDINDEX

A SymbolicConstant specifying the format of the geometry in the recovery file. Possible values are COORDINATE, INDEX, and COMPRESSEDINDEX. The default value is COMPRESSEDINDEX.

defaultFormat=None

A NumberFormat object specifying the default format for numeric output. The default values are the same as the default values for the NumberFormat object.

fieldReportFormat=None

A NumberFormat object specifying the default format for numbers in a field report output. The default values are the same as the default values for the NumberFormat object.

geometryFormat=None

A NumberFormat object specifying the default format for numbers in geometry commands output. The default values are the same as the default values for the NumberFormat object.

class NumberFormat(blankPad=1, format=ENGINEERING, numDigits=6, precision=0)[源代码]

基类:object

The NumberFormat object is a formatting template used to define formatting options for certain numeric output.This page discusses:Access[NumberFormat(...)](https://help.3ds.com/2022/english/DSSIMULIA_Established /SIMACAEKERRefMap/simaker-c-numberformatpyc.htm?ContextScope=all#simaker- numberformatnumberformatpyc)Members.

备注

This object can be accessed by:

import visualization
session.defaultFieldReportOptions.numberFormat
session.fieldReportOptions.numberFormat
session.journalOptions.defaultFormat
session.journalOptions.fieldReportFormat
session.journalOptions.geometryFormat

Member Details:

blankPad : --is-rst--:py:data:`~typing.Union`\ \[:py:class:`~abaqus.UtilityAndView.AbaqusBoolean.AbaqusBoolean`, :py:class:`bool`] = 1[源代码]

A Boolean specifying whether the printed digits should be padded with blank characters to ensure equal sized fields. The blankPad argument is useful when your printed output includes columns. The default value is ON.

format : --is-rst--:py:class:`~abaqus.UtilityAndView.SymbolicConstant.SymbolicConstant` = 'ENGINEERING'[源代码]

A SymbolicConstant specifying the formatting type. Possible values are ENGINEERING, SCIENTIFIC, and AUTOMATIC. The default value is ENGINEERING.

numDigits : --is-rst--:py:class:`int` = 6[源代码]

An Int specifying the number of digits to be displayed in the result. numDigits >0>0. The default value is 6.

precision : --is-rst--:py:class:`int` = 0[源代码]

An Int specifying the number of decimal places to which the number is to be truncated for display. precision ≤0≤0. If precision =0, no truncation is applied. The default value is 0.

class MemoryReductionOptions[源代码]

基类:object

The MemoryReductionOptions object controls the default settings that Abaqus/CAE uses for running in reduced memory mode. The MemoryReductionOptions object has no constructor. Abaqus creates the MemoryReductionOptions member when a session is started.

备注

This object can be accessed by:

session.memoryReductionOptions

Member Details:

setValues(reducedMemoryMode=1, percentThreshold=75)[源代码]

This method modifies the MemoryReductionOptions object.

参数:
reducedMemoryMode=1

A Boolean specifying whether Abaqus/CAE should run in reduced memory mode. The default value is ON.

percentThreshold=75

A Float specifying the percent of kernelMemoryLimit at which the reduced memory mode starts. The default value is 75.0.

class NetworkDatabaseConnector(
name,
hostName,
directory,
remoteAbaqusDriverName='',
remoteLoginMechanism=SSH,
sshPath='',
serverPort=0,
connectionPort=0,
serverTimeout=86400,
allowAutomaticStartup=1,
)[源代码]

基类:object

The NetworkDatabaseConnector object allows you to access an output database on a remote system.

备注

This object can be accessed by:

session.networkDatabaseConnectors[name]

Member Details:

allowAutomaticStartup : --is-rst--:py:data:`~typing.Union`\ \[:py:class:`~abaqus.UtilityAndView.AbaqusBoolean.AbaqusBoolean`, :py:class:`bool`] = 1[源代码]

A Boolean specifying whether to start the remote network database connector server. The default value is ON.

connected : --is-rst--:py:data:`~typing.Union`\ \[:py:class:`~abaqus.UtilityAndView.AbaqusBoolean.AbaqusBoolean`, :py:class:`bool`] = 0[源代码]

A Boolean specifying if the connection between the client and the server is established.

connectionPort : --is-rst--:py:class:`int` = 0[源代码]

An Int specifying the connection port on the remote computer. The default value is 0.

directory : --is-rst--:py:class:`str`[源代码]

A String specifying the directory on the remote computer.

hostName : --is-rst--:py:class:`str`[源代码]

A String specifying the name of the remote computer.

name : --is-rst--:py:class:`str`[源代码]

A String specifying the repository key.

remoteAbaqusDriverName : --is-rst--:py:class:`str` = ''[源代码]

A String specifying the name of command to execute Abaqus/CAE on the remote computer.

remoteLoginMechanism : --is-rst--:py:class:`~abaqus.UtilityAndView.SymbolicConstant.SymbolicConstant` = 'SSH'[源代码]

A SymbolicConstant specifying the remote shell command on the local system. Possible values are RSH and SSH. The default value is SSH.

serverPort : --is-rst--:py:class:`int` = 0[源代码]

An Int specifying the server port on the remote computer. If serverPort =0, the host and remote systems are allowed to establish their own port numbers. The default value is 0.

serverTimeout : --is-rst--:py:class:`int` = 86400[源代码]

86400 corresponds to one day. The server exits if it does not receive any communication from the client during the time specified. The default value is 86400.

Type:

An Int specifying the timeout in seconds for the remote server. For example

setValues(
remoteAbaqusDriverName='',
remoteLoginMechanism=SSH,
sshPath='',
serverPort=0,
connectionPort=0,
serverTimeout=86400,
allowAutomaticStartup=1,
)[源代码]

This method modifies the NetworkDatabaseConnector object.

参数:
remoteAbaqusDriverName=''

A String specifying the name of command to execute Abaqus/CAE on the remote computer.

remoteLoginMechanism=SSH

A SymbolicConstant specifying the remote shell command on the local system. Possible values are RSH and SSH. The default value is SSH.

sshPath=''

A String specifying the path to the`ssh` command on the local system. The default value is an empty string.

serverPort=0

An Int specifying the server port on the remote computer. If serverPort =0, the host and remote systems are allowed to establish their own port numbers. The default value is 0.

connectionPort=0

An Int specifying the connection port on the remote computer. The default value is 0.

serverTimeout=86400

An Int specifying the timeout in seconds for the remote server. For example: 86400 corresponds to one day. The server exits if it does not receive any communication from the client during the time specified. The default value is 86400.

allowAutomaticStartup=1

A Boolean specifying whether to start the remote network database connector server. The default value is ON.

sshPath : --is-rst--:py:class:`str` = ''[源代码]

A String specifying the path to the`ssh` command on the local system. The default value is an empty string.

start(serverPort=0, serverTimeout=86400)[源代码]

This method starts the remote network database connector server on the remote host.

参数:
serverPort=0

An Int specifying the server port on the remote computer. If serverPort =0, the host and remote systems are allowed to establish their own port numbers. The default value is 0.

serverTimeout=86400

An Int specifying the timeout in seconds for the remote server. For example: 86400 corresponds to one day. The server exits if it does not receive any communication from the client during the time specified. The default value is 86400.

stop()[源代码]

This method stops the remote network database connector server on the remote host.

class SessionBase[源代码]

基类:object

The Session object has no constructor. Abaqus creates the session member when a session is started.

备注

This object can be accessed by:

session

Member Details:

animationOptions : --is-rst--:py:class:`~abaqus.Animation.AnimationOptions.AnimationOptions` = <abaqus.Animation.AnimationOptions.AnimationOptions object>[源代码]

An AnimationOptions object.

attachedToGui : --is-rst--:py:data:`~typing.Union`\ \[:py:class:`~abaqus.UtilityAndView.AbaqusBoolean.AbaqusBoolean`, :py:class:`bool`] = 0[源代码]

A Boolean specifying whether an Abaqus interactive session is running.

autoColors : --is-rst--:py:class:`~abaqus.Session.AutoColors.AutoColors` = <abaqus.Session.AutoColors.AutoColors object>[源代码]

An AutoColors object specifying the color palette to be used for color coding.

aviOptions : --is-rst--:py:class:`~abaqus.Animation.AVIOptions.AVIOptions` = <abaqus.Animation.AVIOptions.AVIOptions object>[源代码]

An AVIOptions object.

charts : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.XY.Chart.Chart`] = {}[源代码]

A repository of Chart objects.

colors : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.Session.Color.Color`] = {}[源代码]

A repository of Color objects.

currentProbeValues : --is-rst--:py:class:`~abaqus.PathAndProbe.CurrentProbeValues.CurrentProbeValues` = <abaqus.PathAndProbe.CurrentProbeValues.CurrentProbeValues object>[源代码]

A CurrentProbeValues object.

currentViewportName : --is-rst--:py:class:`str` = ''[源代码]

A String specifying the name of the current viewport.

curves : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.XY.XYCurve.XYCurve`] = {}[源代码]

A repository of XYCurve objects.

customData : --is-rst--:py:class:`~abaqus.CustomKernel.RepositorySupport.RepositorySupport` = <abaqus.CustomKernel.RepositorySupport.RepositorySupport object>[源代码]

A RepositorySupport object.

defaultChartOptions : --is-rst--:py:class:`~abaqus.XY.DefaultChartOptions.DefaultChartOptions` = <abaqus.XY.DefaultChartOptions.DefaultChartOptions object>[源代码]

A DefaultChartOptions object.

defaultFieldReportOptions : --is-rst--:py:class:`~abaqus.FieldReport.FieldReportOptions.FieldReportOptions` = <abaqus.FieldReport.FieldReportOptions.FieldReportOptions object>[源代码]

A FieldReportOptions object.

defaultFreeBodyReportOptions : --is-rst--:py:class:`~abaqus.FieldReport.FreeBodyReportOptions.FreeBodyReportOptions` = <abaqus.FieldReport.FreeBodyReportOptions.FreeBodyReportOptions object>[源代码]

A FreeBodyReportOptions object.

defaultGraphicsOptions : --is-rst--:py:class:`~abaqus.DisplayOptions.GraphicsOptions.GraphicsOptions` = <abaqus.DisplayOptions.GraphicsOptions.GraphicsOptions object>[源代码]

A GraphicsOptions object.

defaultLightOptions : --is-rst--:py:class:`~abaqus.DisplayOptions.LightOptions.LightOptions` = <abaqus.DisplayOptions.LightOptions.LightOptions object>[源代码]

A LightOptions object.

defaultMesherOptions : --is-rst--:py:class:`~abaqus.Mesh.MesherOptions.MesherOptions` = <abaqus.Mesh.MesherOptions.MesherOptions object>[源代码]

A MesherOptions object specifying how to control default settings in the Mesh module.

defaultOdbDisplay : --is-rst--:py:class:`~abaqus.OdbDisplay.DefaultOdbDisplay.DefaultOdbDisplay` = <abaqus.OdbDisplay.DefaultOdbDisplay.DefaultOdbDisplay object>[源代码]

A DefaultOdbDisplay object.

defaultPlot : --is-rst--:py:class:`~abaqus.XY.DefaultPlot.DefaultPlot` = <abaqus.XY.DefaultPlot.DefaultPlot object>[源代码]

A DefaultPlot object.

defaultProbeOptions : --is-rst--:py:class:`~abaqus.PathAndProbe.ProbeOptions.ProbeOptions` = <abaqus.PathAndProbe.ProbeOptions.ProbeOptions object>[源代码]

A ProbeOptions object.

defaultProbeReport : --is-rst--:py:class:`~abaqus.PathAndProbe.ProbeReport.ProbeReport` = <abaqus.PathAndProbe.ProbeReport.ProbeReport object>[源代码]

A ProbeReport object.

defaultViewportAnnotationOptions : --is-rst--:py:class:`~abaqus.DisplayOptions.ViewportAnnotationOptions.ViewportAnnotationOptions` = <abaqus.DisplayOptions.ViewportAnnotationOptions.ViewportAnnotationOptions object>[源代码]

A ViewportAnnotationOptions object.

defaultXYReportOptions : --is-rst--:py:class:`~abaqus.XY.XYReportOptions.XYReportOptions` = <abaqus.XY.XYReportOptions.XYReportOptions object>[源代码]

An XYReportOptions object.

disableCADConnection(CADName)[源代码]

This method disables an associative import CAD connection that was enabled.

参数:
CADName

A String specifying the CAD system for which associative import will be disabled. Available options are Pro/ENGINEER, CATIA V5, and CATIA V6, NX and SolidWorks.

disableParameterUpdate(CADName)[源代码]

This method disables an associative CAD connection using parameters.

参数:
CADName

A String specifying the CAD system for which the parameter update will be disabled. Available option is Pro/ENGINEER.

displayGroups : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.DisplayGroup.DisplayGroup.DisplayGroup`] = {}[源代码]

A repository of DisplayGroup objects.

drawingArea : --is-rst--:py:class:`~abaqus.Canvas.DrawingArea.DrawingArea` = <abaqus.Canvas.DrawingArea.DrawingArea object>[源代码]

A DrawingArea object.

drawings : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.Session.Drawing.Drawing`] = {}[源代码]

A repository of Drawing objects.

enableCADConnection(CADName, portNum=None)[源代码]

This method enables the Abaqus/CAE listening port for the specified CAD system.

参数:
CADName

A String specifying the CAD system. Available options are Pro/ENGINEER, CATIA V5, CATIA V6, NX and SolidWorks.

portNum=None

An Integer specifying the port number to be used by the CAD system to communicate with Abaqus/CAE. If unspecified, attempts will be made to identify an open port. The default ports used are as follow: Pro/E : 49178CATIA V5 : 49179SolidWorks : 49180NX : 49181CATIA V6 : 49182

返回:

The connection port number used for the CAD connection.

返回类型:

int

enableParameterUpdate(CADName, CADVersion, CADPort=None)[源代码]

This method enables parameter updates for ProE and NX by establishing a connection with the listening port previously setup by the CAD application.

参数:
CADName

A String specifying the CAD system for which parameter update will be enabled. Available options are Pro/ENGINEER and NX.

CADVersion

A String specifying the CAD system version. Allowable options take the form of the specific CAD system plus a version string. Examples for Pro/ENGINEER are "Wildfire5" and "Creo4." An NX example is "NX11."

CADPort=None

An Integer specifying the port number to be used by Abaqus/CAE to communicate with the CAD system. If unspecified, attempts will be made to identify an open port. This port number is not the same as the portNum used by the associative import interface. The default CAD listening ports are as follow:ProE : 3344NX : 3344

epsOptions : --is-rst--:py:class:`~abaqus.Print.EpsOptions.EpsOptions` = <abaqus.Print.EpsOptions.EpsOptions object>[源代码]

An EpsOptions object.

fieldReportOptions : --is-rst--:py:class:`~abaqus.FieldReport.FieldReportOptions.FieldReportOptions` = <abaqus.FieldReport.FieldReportOptions.FieldReportOptions object>[源代码]

A FieldReportOptions object.

freeBodies : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.PathAndProbe.FreeBody.FreeBody`] = {}[源代码]

A repository of FreeBody objects.

freeBodyReportOptions : --is-rst--:py:class:`~abaqus.FieldReport.FreeBodyReportOptions.FreeBodyReportOptions` = <abaqus.FieldReport.FreeBodyReportOptions.FreeBodyReportOptions object>[源代码]

A FreeBodyReportOptions object.

graphicsInfo : --is-rst--:py:class:`~abaqus.DisplayOptions.GraphicsInfo.GraphicsInfo` = <abaqus.DisplayOptions.GraphicsInfo.GraphicsInfo object>[源代码]

A GraphicsInfo object.

graphicsOptions : --is-rst--:py:class:`~abaqus.DisplayOptions.GraphicsOptions.GraphicsOptions` = <abaqus.DisplayOptions.GraphicsOptions.GraphicsOptions object>[源代码]

A GraphicsOptions object.

imageAnimation : --is-rst--:py:class:`~abaqus.Animation.ImageAnimation.ImageAnimation` = <abaqus.Animation.ImageAnimation.ImageAnimation object>[源代码]

An ImageAnimation object.

imageAnimationOptions : --is-rst--:py:class:`~abaqus.Animation.ImageAnimationOptions.ImageAnimationOptions` = <abaqus.Animation.ImageAnimationOptions.ImageAnimationOptions object>[源代码]

An ImageAnimationOptions object.

images : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.Session.Image.Image`] = {}[源代码]

A repository of Image objects.

isCADConnectionEnabled()[源代码]

This method checks the status of CAD Connection.

返回:

A Boolean value of True if the CAD connection enabled and False if the CAD connection disabled.

返回类型:

Boolean

journalOptions : --is-rst--:py:class:`~abaqus.Session.JournalOptions.JournalOptions` = <abaqus.Session.JournalOptions.JournalOptions object>[源代码]

A JournalOptions object specifying how to record selection of geometry in the journal and replay files.

kernelMemoryFootprint : --is-rst--:py:class:`float` | :py:obj:`None` = None[源代码]

A Float specifying the memory usage value for the Abaqus/CAE kernel process in megabytes.

kernelMemoryLimit : --is-rst--:py:class:`float` | :py:obj:`None` = None[源代码]

A Float specifying the limit for the memory use for the Abaqus/CAE kernel process in megabytes.

kernelMemoryMaxFootprint : --is-rst--:py:class:`float` | :py:obj:`None` = None[源代码]

A Float specifying the maximum value for the memory usage for the Abaqus/CAE kernel process in megabytes.

mdbData : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.PlotOptions.MdbData.MdbData`] = {}[源代码]

A repository of MdbData objects.

memoryReductionOptions : --is-rst--:py:class:`~abaqus.Session.MemoryReductionOptions.MemoryReductionOptions` = <abaqus.Session.MemoryReductionOptions.MemoryReductionOptions object>[源代码]

A MemoryReductionOptions object specifying options for running in reduced memory mode.

movies : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.Animation.Movie.Movie`] = {}[源代码]

A repository of Movie objects.

networkDatabaseConnectors : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.Session.NetworkDatabaseConnector.NetworkDatabaseConnector`] = {}[源代码]

A repository of NetworkDatabaseConnector objects.

nodeQuery : --is-rst--:py:class:`~abaqus.PathAndProbe.NodeQuery.NodeQuery` = <abaqus.PathAndProbe.NodeQuery.NodeQuery object>[源代码]

A NodeQuery object specifying nodes and their coordinates in a path.

odbData : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.PlotOptions.OdbData.OdbData`] = {}[源代码]

A repository of OdbData objects.

odbs : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.Odb.Odb.Odb`] = {}[源代码]

A repository of Odb objects.

pageSetupOptions : --is-rst--:py:class:`~abaqus.Print.PageSetupOptions.PageSetupOptions` = <abaqus.Print.PageSetupOptions.PageSetupOptions object>[源代码]

A PageSetupOptions object.

paths : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.PathAndProbe.Path.Path`] = {}[源代码]

A repository of Path objects.

pngOptions : --is-rst--:py:class:`~abaqus.Print.PngOptions.PngOptions` = <abaqus.Print.PngOptions.PngOptions object>[源代码]

A PngOptions object.

printOptions : --is-rst--:py:class:`~abaqus.Print.PrintOptions.PrintOptions` = <abaqus.Print.PrintOptions.PrintOptions object>[源代码]

A PrintOptions object.

printToFile(fileName, format=PNG, canvasObjects=(), compression=0)[源代码]

This method prints canvas objects to a file using the attributes stored in the PrintOptions object and the appropriate format options object.

参数:
fileName

A String specifying the file to which the image is to be written. If no file extension is supplied, an extension is added based on the selected image format (.ps, .eps, .png, .tif, .svg, or .svgz).

format=PNG

A SymbolicConstant specifying the image format. Possible values are PNG, SVG, TIFF, PS, and EPS. The default value is PNG.

canvasObjects=()

A sequence of canvas objects (viewports, text strings, or arrows) to print. The default is to print all canvas objects.

compression=0

A Boolean specifying the format for an SVG file. It is only valid to use this argument when format is SVG. Possible values are False (Uncompressed) and True (Compressed).

printToPrinter(printCommand='', numCopies=1, canvasObjects=())[源代码]

This method prints canvas objects to a Windows printer or to a PostScript printer. The attributes used for printing to a Windows printer are stored in the PrintOptions object and the PageSetupOptions object; the attributes used for printing to a PostScript printer are stored in the PrintOptions object and the PsOptions object.

参数:
printCommand=''

A String specifying the operating system command or printer name to issue for printing to the printer. The default value is “lpr” or the value specified by the printOptions method. If you create a script to print directly to a Windows printer, the printCommand must take the following form:

session.printToPrinter.setValues(
    printCommand='PRINTER[number of characters in name]:printername PROPERTIES[number of characters in properties]:document properties'
)

The PROPERTIES is a list of characters that represents the printing preferences for the selected Windows printer. The properties are not required in a script; the printed output will use the current settings for the selected printer. You can use 'PRINTER[7]: DEFAULT' to specify the default Windows printer.

numCopies=1

An Int specifying the number of copies to print. Possible values are 1 ≤ numCopies ≤ 100. The default value is 1.

canvasObjects=()

A sequence of canvas objects (viewports, text strings, or arrows) to print. The default is to print all canvas objects.

抛出:
  • SystemError -- invalid print command, If printCommand is invalid.

  • SystemError -- print command failed, If the print command fails.

  • RangeError -- If numCopies is out of range.

  • TypeError -- keyword error on compression, If compression is specified when format is not SVG.

probeOptions : --is-rst--:py:class:`~abaqus.PathAndProbe.ProbeOptions.ProbeOptions` = <abaqus.PathAndProbe.ProbeOptions.ProbeOptions object>[源代码]

A ProbeOptions object.

probeReport : --is-rst--:py:class:`~abaqus.PathAndProbe.ProbeReport.ProbeReport` = <abaqus.PathAndProbe.ProbeReport.ProbeReport object>[源代码]

A ProbeReport object.

psOptions : --is-rst--:py:class:`~abaqus.Print.PsOptions.PsOptions` = <abaqus.Print.PsOptions.PsOptions object>[源代码]

A PsOptions object.

queues : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.Job.Queue.Queue`] = {}[源代码]

A repository of Queue objects.

quickTimeOptions : --is-rst--:py:class:`~abaqus.Animation.QuickTimeOptions.QuickTimeOptions` = <abaqus.Animation.QuickTimeOptions.QuickTimeOptions object>[源代码]

A QuickTimeOptions object.

replayInProgress : --is-rst--:py:data:`~typing.Union`\ \[:py:class:`~abaqus.UtilityAndView.AbaqusBoolean.AbaqusBoolean`, :py:class:`bool`] = 0[源代码]

A Boolean specifying whether Abaqus is executing a replay file.

saveOptions(directory)[源代码]

This method saves your customized display settings.

参数:
directory

A SymbolicConstant specifying the directory in which Abaqus saves the file that will be used to restore your customized settings (abaqus_2021.gpr). Possible values are HOME and CURRENT.

scratchOdbs : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.Odb.ScratchOdb.ScratchOdb`] = {}[源代码]

A repository of ScratchOdb objects.

selectedProbeValues : --is-rst--:py:class:`~abaqus.PathAndProbe.SelectedProbeValues.SelectedProbeValues` = <abaqus.PathAndProbe.SelectedProbeValues.SelectedProbeValues object>[源代码]

A SelectedProbeValues object.

sessionState : --is-rst--:py:class:`dict` | :py:obj:`None` = None[源代码]

A Dictionary object specifying the viewports and their associated models. The Dictionary key specifies the viewport name. The Dictionary value is a Dictionary specifying the model name.

setCADPortNumber(CADName, Port)[源代码]

This method enables parameter updates for CATIA V5 and CATIA V6 by establishing a connection with the listening port previously setup by the CAD application. This port number is used to send the parameter information to the CAD system.

参数:
CADName

A String specifying the CAD system for which the port number will be saved. The available options are 'CATIA V5' and ' CATIA V6'.

Port

An integer specifying the port number to be used by Abaqus/CAE to send the modified parameters to the CAD system.

setValues(kernelMemoryLimit=None)[源代码]

This method modifies the Session object.

参数:
kernelMemoryLimit=None

A Float specifying the memory limit value for the Abaqus/CAE kernel process in megabytes. If the limit is exceeded, Abaqus/CAE displays an error message.The default memory limit value for Windows 32-bit systems if not set is 1800 MB. Increasing the memory limit is not recommended unless you are using a Windows 32-bit system with the boot option /3GB /userva = SizeInMBytes to extend the amount of memory available for Abaqus/CAE. In this case the limit can be changed to 2800 MB.If the kernel memory size reaches the abq_ker_memory value or the virtual memory limit of the machine, the following message will be displayed:

Operation did not complete due to a memory allocation failure.

For optimal performance, the memory limit should be set to a value less than the physical amount of memory on the machine.The minimum setting allowed is 256 MB.

sketcherOptions : --is-rst--:py:class:`~abaqus.Sketcher.ConstrainedSketchOptions.ConstrainedSketcherOptions.ConstrainedSketcherOptions` = <abaqus.Sketcher.ConstrainedSketchOptions.ConstrainedSketcherOptions.ConstrainedSketcherOptions object>[源代码]

A ConstrainedSketcherOptions object specifying common options for all sketches.

spectrums : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.PathAndProbe.Spectrum.Spectrum`] = {}[源代码]

A repository of Spectrum objects.

streams : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.PathAndProbe.Stream.Stream`] = {}[源代码]

A repository of Stream objects.

svgOptions : --is-rst--:py:class:`~abaqus.Print.SvgOptions.SvgOptions` = <abaqus.Print.SvgOptions.SvgOptions object>[源代码]

A SvgOptions object.

tiffOptions : --is-rst--:py:class:`~abaqus.PredefinedField.TiffOptions.TiffOptions` = <abaqus.PredefinedField.TiffOptions.TiffOptions object>[源代码]

A TiffOptions object.

updateCADParameters(
modelName,
CADName,
parameterFile,
CADPartFile,
CADPartName='',
)[源代码]

This method updates the parameters for the specified model using the specified parameter file.

参数:
modelName

A String specifying the model name to update.

CADName

A String specifying the CAD system for which Abaqus updates the parameters. The available options are 'Pro/ENGINEER', 'CATIA V5' and 'CATIA V6'.

parameterFile

A parameter file containing the parameters that were exposed in the CAD system using the ABQ_ prefix.

CADPartFile

A file name specifying the CAD part file for which parameter update is triggered.For CADName = 'CATIA V5' or 'CATIA V6', you can specify either products or parts using this argument. If you specify a product, Abaqus updates all of the parts associated with that product.For CADName = 'Pro/ENGINEER', this argument is optional, and you can specify update for parts only. However, a single file can be associated with multiple parts in the case of family tables. In this case, Abaqus updates all listed parts.

CADPartName=''

An String specifying the part name to update. This part name should match the part name in the originating CAD system.If you specify neither CADPartFile nor CADPartName during an update in which you specified CADName = 'Pro/ENGINEER', Abaqus updates all of the parts in the specified file.

viewerOptions : --is-rst--:py:class:`~abaqus.OdbDisplay.ViewerOptions.ViewerOptions` = <abaqus.OdbDisplay.ViewerOptions.ViewerOptions object>[源代码]

A ViewerOptions object.

viewports : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.Canvas.Viewport.Viewport`] = {}[源代码]

A repository of Viewport objects.

views : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.UtilityAndView.View.View`] = {}[源代码]

A repository of View objects.

write3DXMLFile(fileName, format=0, canvasObjects=())[源代码]

This method exports the current viewport objects to a file.

参数:
fileName

A String specifying the file to which the graphics data is to be written. If no file extension is supplied, (.3dxml) will be added.

format=0

A Boolean specifying the format. Possible values are False (Uncompressed) and True (Compressed).

canvasObjects=()

A sequence of canvas objects to export.

writeOBJFile(fileName, canvasObjects=())[源代码]

This method exports the current viewport objects to a file.

参数:
fileName

A String specifying the file to which the graphics data is to be written. If no file extension is supplied, (.obj) will be added.

canvasObjects=()

A sequence of canvas objects to export.

writeVrmlFile(fileName, format=0, canvasObjects=())[源代码]

This method exports the current viewport objects to a file.

参数:
fileName

A String specifying the file to which the graphics data is to be written. If no file extension is supplied, an extension is added based on the selected format (.wrl, .wrz).

format=0

A Boolean specifying the format. Possible values are False (Uncompressed) and True (Compressed).

canvasObjects=()

A sequence of canvas objects (viewports, text strings, or arrows) to export.

xyColors : --is-rst--:py:class:`~abaqus.Session.AutoColors.AutoColors` = <abaqus.Session.AutoColors.AutoColors object>[源代码]

An AutoColors object specifying the color palette to be used forXYCurve objects.

xyDataObjects : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.XY.XYData.XYData`] = {}[源代码]

A repository of XYData objects.

xyPlots : --is-rst--:py:class:`dict`\ \[:py:class:`str`, :py:class:`~abaqus.XY.XYPlot.XYPlot`] = {}[源代码]

A repository of XYPlot objects.

xyReportOptions : --is-rst--:py:class:`~abaqus.XY.XYReportOptions.XYReportOptions` = <abaqus.XY.XYReportOptions.XYReportOptions object>[源代码]

An XYReportOptions object.