The q.Quantity() command is not allowing valid combinations which work in pyconsole, such as mass*velocity multiplications;
raise QuantityError.INCOMPATIBLE_DIMENSIONS(self.units, __value.units)
ansys.fluent.core.quantity.quantity.QuantityError: `m s^-1` and `kg` have incompatible dimensions.
Non-si equivalents are also available in pyconsole but not pyfluent such as velocity_nonsi / mass_si
📝 Steps to reproduce
in pyfluent;
import ansys.fluent.core.quantity.quantity as q
create quantities such as;
mass = q.Quantity(200, 'kg')
velocity = q.Quantity(20.2, "m s^-1")
attempt mass*velocity
error produced;
raise QuantityError.INCOMPATIBLE_DIMENSIONS(self.units, __value.units)
ansys.fluent.core.quantity.quantity.QuantityError: m s^-1 and kg have incompatible dimensions.
repeat the above steps using quantities;
vel_nosi = q.Quantity(0.005, 'ft s^-1')
vel_nosi/mass
repeat the above in pyconsole and note successfully output
🔍 Before submitting the issue
🐞 Description of the bug
The q.Quantity() command is not allowing valid combinations which work in pyconsole, such as mass*velocity multiplications;
Non-si equivalents are also available in pyconsole but not pyfluent such as velocity_nonsi / mass_si
📝 Steps to reproduce
m s^-1
andkg
have incompatible dimensions.💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
24.1
🐍 Which Python version are you using?
3.10
📦 Installed packages