Seeq Team John Cox Posted July 19 Seeq Team Share Posted July 19 In some situations I do not want to enforce units of measure consistency in Seeq Formula calculations, or I simply want to do a series of unit conversions myself in a simplified way. How can I make my formula work as intended when units are not consistent and I still want to calculate the formula as is, because I've verified that it gives the results I need? For example, I want to calculate the Reynolds Number (=ρ*u*L/μ), a dimensionless quantity that helps predict fluid flow patterns, which is a function of 4 variables. I would prefer to check the units myself and leave them out of the formula: ρ = density (lbm /ft3 ) u = velocity based on the actual cross section area of the duct or pipe (ft/s) μ = dynamic viscosity (lbm /s ft) L = characteristic length (ft) Link to comment Share on other sites More sharing options...
Seeq Team Solution John Cox Posted July 19 Author Seeq Team Solution Share Posted July 19 You can use $signal.setUnits('') on each of the inputs in the Formula. This will remove the units on each signal to prevent Seeq from trying to ensure unit consistency. For example: $Density.setUnits('')*$Velocity.setUnits('')*$Length.setUnits('')/$Viscosity.setUnits('') Note: you can use .setUnits() again at the end of a Formula calculation if you want to force a unit for the output. Also, .setUnits() can be valuable to assign units to a unitless signal in Seeq or to overwrite incorrect units. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now