VectorReal#
- class ansys.aedt.core.visualization.post.field_calculator_expressions.VectorReal(operations: Sequence[str], *, calculator=None, description: str = '', design_type: list[str] | None = None, fields_type: list[str] | None = None, assignment_types: list[str] | None = None, primary_sweep: str = 'Freq', solution_type: str = '')#
A real 3-vector Fields Calculator quantity.
Examples
Start from a real vector quantity and derive scalar components.
>>> from ansys.aedt.core.visualization.post.field_calculator_expressions import FieldExpressions >>> fx = FieldExpressions(calculator=None) >>> field = fx.vector("E", is_complex=False) >>> field.operations ["Fundamental_Quantity('E')"]
Methods
VectorReal.add(name[, assignment])Register this expression as an AEDT named expression.
VectorReal.checkpoint([name])Register this expression and return a single-entry reference to it.
Curl
∇×v(calculatorCurl).Divergence
∇·v(calculatorDivg).VectorReal.evaluate([name, setup, ...])Register and evaluate this expression to a single value.
VectorReal.export(output_file[, name])Register and export this expression to a field file.
Vector magnitude
‖v‖(calculatorMag).X component (calculator
ScalarX).Y component (calculator
ScalarY).Z component (calculator
ScalarZ).Smooth the quantity across the mesh (calculator
Smooth).Net Fields Calculator stack depth after applying all operations.
VectorReal.to_dict(name[, assignment])Compile this expression to a Fields Calculator expression dictionary.
Validate that the operation chain is well-formed and return
self.Attributes
Copy of the calculator operation stack this expression compiles to.
Shortcut for dir(self).