ScalarComplex#
- class ansys.aedt.core.visualization.post.field_calculator_expressions.ScalarComplex(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 scalar Fields Calculator quantity.
Examples
Start from a complex scalar quantity and extract derived values.
>>> from ansys.aedt.core.visualization.post.field_calculator_expressions import FieldExpressions >>> fx = FieldExpressions(calculator=None) >>> voltage = fx.scalar("V") >>> voltage.operations ["Fundamental_Quantity('V')"]
Methods
ScalarComplex.add(name[, assignment])Register this expression as an AEDT named expression.
Place this scalar in the x component of a vector (calculator
VecX).Place this scalar in the y component of a vector (calculator
VecY).Place this scalar in the z component of a vector (calculator
VecZ).ScalarComplex.at_phase(phase_deg)Real value at a given phase angle in degrees (calculator
AtPhase).ScalarComplex.checkpoint([name])Register this expression and return a single-entry reference to it.
Complex conjugate (calculator
Conj).ScalarComplex.evaluate([name, setup, ...])Register and evaluate this expression to a single value.
ScalarComplex.export(output_file[, name])Register and export this expression to a field file.
Imaginary part (calculator
Imag).ScalarComplex.integrate(over)Integrate over a geometry
∫ s dΩ(calculatorIntegrate).Complex magnitude
|s|(calculatorCmplxMag).ScalarComplex.mean(over)Mean over a geometry (calculator
Mean).Phase angle of the complex quantity (calculator
CmplxPhase).Real part (calculator
Real).Smooth the quantity across the mesh (calculator
Smooth).Net Fields Calculator stack depth after applying all operations.
ScalarComplex.to_dict(name[, assignment])Compile this expression to a Fields Calculator expression dictionary.
ScalarComplex.value(over)Sample the quantity on a geometry without integrating.
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).