ScalarReal#
- class ansys.aedt.core.visualization.post.field_calculator_expressions.ScalarReal(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 scalar Fields Calculator quantity.
Examples
Start from a real scalar quantity and apply scalar operations.
>>> from ansys.aedt.core.visualization.post.field_calculator_expressions import FieldExpressions >>> fx = FieldExpressions(calculator=None) >>> phi = fx.scalar("Phi", is_complex=False) >>> phi.operations ["Fundamental_Quantity('Phi')"]
Methods
Absolute value
|s|(calculatorAbs).Arccosine (calculator trig
Acos).ScalarReal.add(name[, assignment])Register this expression as an AEDT named expression.
Use this real scalar as the imaginary part of a complex number (calculator
CmplxI).Use this real scalar as the real part of a complex number (calculator
CmplxR).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).Arcsine (calculator trig
Asin).Arctangent (calculator trig
Atan).ScalarReal.checkpoint([name])Register this expression and return a single-entry reference to it.
Cosine (calculator trig
Cos).ScalarReal.derivative(axis)Partial derivative
∂s/∂axisforaxisin{"x", "y", "z"}(calculatord/dx/d/dy/d/dz).ScalarReal.evaluate([name, setup, ...])Register and evaluate this expression to a single value.
ScalarReal.export(output_file[, name])Register and export this expression to a field file.
Gradient (calculator
Grad).ScalarReal.integrate(over)Integrate over a geometry
∫ s dΩ(calculatorIntegrate).Natural logarithm (calculator
ln).Base-10 logarithm (calculator
log).ScalarReal.max_position(over)Position of the maximum over a geometry (calculator
MaxPos).ScalarReal.maximum(over)Maximum over a geometry (calculator
Maximum).ScalarReal.mean(over)Mean over a geometry (calculator
Mean).ScalarReal.min_position(over)Position of the minimum over a geometry (calculator
MinPos).ScalarReal.minimum(over)Minimum over a geometry (calculator
Minimum).ScalarReal.power(exponent)Constant power (calculator
Pow).Sine (calculator trig
Sin).Smooth the quantity across the mesh (calculator
Smooth).Square root (calculator
Sqrt).Net Fields Calculator stack depth after applying all operations.
ScalarReal.std(over)Standard deviation over a geometry (calculator
Std).Tangent (calculator trig
Tan).ScalarReal.to_dict(name[, assignment])Compile this expression to a Fields Calculator expression dictionary.
ScalarReal.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).