VectorComplex#
- class ansys.aedt.core.visualization.post.field_calculator_expressions.VectorComplex(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 complex 3-vector Fields Calculator quantity.
Examples
Start from a complex vector quantity and derive scalar projections.
>>> from ansys.aedt.core.visualization.post.field_calculator_expressions import FieldExpressions >>> fx = FieldExpressions(calculator=None) >>> field = fx.vector("E") >>> field.operations ["Fundamental_Quantity('E')"]
Methods
VectorComplex.add(name[, assignment])Register this expression as an AEDT named expression.
VectorComplex.checkpoint([name])Register this expression and return a single-entry reference to it.
Component-wise complex magnitude as a real vector (calculator
CmplxMag).Complex conjugate, component-wise (calculator
Conj).Curl
∇×v(calculatorCurl).Divergence
∇·v(calculatorDivg).VectorComplex.evaluate([name, setup, ...])Register and evaluate this expression to a single value.
VectorComplex.export(output_file[, name])Register and export this expression to a field file.
Imaginary part, component-wise (calculator
Imag).Complex vector magnitude (calculator
Mag).Real part, component-wise (calculator
Real).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.
VectorComplex.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).