Solution class

This class represents a row in the Worksheet of the Solution Selection tree object.

Table 104:  Members

Name Type Description
AdditionalSolutionData() string[] Array of strings representing all the additional data entered in to the Solution Selection table additional data columns
AdditionalSolutionDataByColumn(int Column)string The string object at the Column of the AdditionalSolutionData
AdditionalSolutionDataCountint The number of AdditionalSolutionData text files in the AdditionalSolutionData array
Idint The unique Id number for the solution. Solution Id’s do not change once the solution is created.
Typestring

The type of solution as defined by the description:

Static Structural

Transient Structural

Explicit Dynamics

Modal

Harmonic Response

Random Vibration

Response Spectrum

CreateSolutionResult() SolutionResult classCreate a new result based on this analysis system. Returns the created object.
CreateSolutionResult(string Name) SolutionResult classCreate a new result of the given Name based on this analysis system. Returns the created object.
CreateSolutionResult(string Name, string Expression, string ResultType) SolutionResult class

Create a new result of the given Name, Expression and ResultType based on this analysis system. Returns the created object.

ResultType string should be set to one of the values listed for DisplayUnits keyword in the DAResult section of the XML definition file.

CreateSolutionResultSets(int NumSets) SolutionResult[] classCreates a number of new Solution Result objects determined by the given NumSets, based on this Solution. These Solution Results are substeps spread evenly across the result step provided by the definition in the Solution Selection table. The created Solution Result objects are then returned in the form of an array.
CreateSolutionResultSets(int NumSets, string Name) SolutionResult[] classCreates a number of new Solution Result objects determined by the given NumSets and Name, based on this Solution. These Solution Results are substeps spread evenly across the result step provided by the definition in the Solution Selection table. The created Solution Result objects are then returned in the form of an array.
CreateSolutionResultSets(int NumSets, string Name, string Expression, string ResultType) SolutionResult[] classCreates a number of new Solution Result objects determined by the given NumSets, Name, Expression and ResultType, based on this Solution. These Solution Results are substeps spread evenly across the result step provided by the definition in the Solution Selection table. The created Solution Result objects are then returned in the form of an array. ResultType string should be set to one of the values listed for DisplayUnits keyword in the DAResult section of the XML definition file.
ClearSolutionResultSets()voidClears all SolutionResult objects created for this Solution class.
SolutionResults() SolutionResult[] classArray of results containing all the result objects.
SolutionResults(string Name) SolutionResult[] classArray of results containing specific results filtered on the given Name.
Unitsstring

Returns the Units used in this solution, represented as a string:

CGS

NMM

LBFT

LBIN

UMKS

MKS

No Units System

ResultFilePathstring String representing the solution combination result file path (rst file) for the loadcase.
TimedoubleGets the value of time that has been entered by the user in the Solution Selection table, if applicable.
FreqdoubleGets the value of frequency that has been entered by the user in the Solution Selection table, if applicable.
CoefficientdoubleGets the Coefficient entered by the user.
PhasedoubleGets the value of Phase Angle that has been entered by the user in the Solution Selection table, if applicable.
ModeintGets the value of Mode that has been entered by the user in the Solution Selection table, if applicable.
StepStartTimedoubleGets the value of the start time that has been entered by the user in the Solution Selection table, if applicable.
StepEndTimedoubleGets the value of the end time that has been entered by the user in the Solution Selection table, if applicable.
StepMinFrequencydoubleGets the value of the minimum frequency that has been entered by the user in the Solution Selection table, if applicable.
StepMaxFrequencydoubleGets the value of the maximum frequency that has been entered by the user in the Solution Selection table, if applicable.
StepCountintReturns the number of inclusive steps used in this Upstream Solution. This is only applicable when the Solution is based on a Static or Transient analysis type.
SubstepCountintReturns the number of inclusive substeps used in this Upstream Solution. This is only applicable when the Solution is based on a Static, Transient or Explicit analysis type.
Steps()Int[]Gets an array of inclusive step numbers used in this Upstream Solution. This is only applicable when the Solution is based on a Static or Transient analysis type.
Substeps()Int[]Gets an array of inclusive Substep numbers used in this Upstream Solution. This is only applicable when the Solution is based on a Static, Transient, or Explicit analysis type.
TimePoints()Double[]Gets an array of result time points for all inclusive Substeps used in this Upstream Solution. This is only applicable when the Solution is based on a Static, Transient, or Explicit analysis type.
MultipleSetsboolReturns True if the Solution has Multiple Sets set to ‘Enabled’ in the Solution Selection table.


Release 18.2 - © ANSYS, Inc. All rights reserved.