Represents an object that is either an input or an output for a (See Ansys.ACT.Mechanical.Fields.Variable.Field). Depending on whether it is an input or output and on the way it is defined, this object holds a series of discrete values or an expression that may involve other variables.
Declaration Syntax
public class Variable
Table 80: Members
Property | DefinitionType |
Gets a value that indicates how this variable is defined. |
Property | DiscreteValueCount |
Gets the number of discrete values of this variable. |
Property | DiscreteValues |
Gets or sets the discrete values of this variable or if this variable represents a free degree of freedom. null |
Property | Field |
Gets the owner field. |
Property | Formula |
Gets or sets the expression that is used to defined this variable, or if the variable is not defined by a function. null |
Property | Index |
Gets the index of this variable in its container field. |
Property | IsInput |
Gets a value indicating whether this variable is an input for its container field. Otherwise, it is an output variable. |
Property | IsOutput |
Gets a value indicating whether this variable is an output for its container field. Otherwise, it is an input variable. |
Property | MinMaxDiscreteValues |
Returns a Tuple containing the min and max values from the list of discrete values. |
Property | Name |
Gets the variable's name. |
Property | QuantityName |
Gets the name of the quantity represented by this variable. |
Property | Range |
Gets the domain of validity for variable's value. |
Property | Unit |
Gets the symbol of the unit used to express this variable's values. |
Method | GetDiscreteValue(int) |
Changes a value at a given position in the tabular definition of the variable. |
Method | SetDiscreteValue(int, Quantity) |
Changes a value at a given position in the tabular definition of the variable. |