SysML4Mathematica: Example 09: Moisture added to air: Amount (mass)

Click on the image to view it full size

At the top we see a SysML Parametric Diagram representing a network of equations for the psychrometric properties obtained from low-level CoolProp wrappers for Mathematica, and some ConstraintBlock usages for calculating the mass of water added to a humid air mixture during humidification.

In the middle and bottom Activity Diagrams we see how the problem can be setup instead using Webel MPsy objects, which encapsulate the lower level CoolProp calls. Together, they represent this Mathematica invocation:

ex9$psy1 = newPsy[asDegF[50], $opt$psy$r -> 0.5]; 
ex9$psy2 = newPsy[asDegF[80], $opt$psy$r -> 0.6];

 20 unit$lb,
 $opt$psy$doShowAsIP -> True

0.18816009298134295 lb

Here unit$lb is a pre-built Mathematica Quantity[1.0, "Pounds"]:

And the units utility function asDegF[magF_Real] similarly creates a Quantity for °F.

Up next
Snippets (quotes/extracts)
Visit also
Visit also (backlinks)
Related slides (includes other tutorials)
Related slides (backlinks, includes other tutorials)