From your iPhone, you can download the completed example
This case uses the Hydrate Tool and the Function Solver Tool to determine the amount of ethylene glycol that must be added to a wet natural gas stream to reduced its hydrate formation temperature to a desired value.
There are only three fluids in this case:
Feed
A fictitious natural gas stream with a bit of water in it.
eg
Defined to be pure ethylene glycol. Its temperature and pressure are set to be the same as the
Feed fluid, while its flow rate is set to be the following function of the solver tool.
1.5 ^ #solver.0
This is a rather arbitrary function selected so that the flow will never be negative. For a single value problem, the solver output will range between -10 and 10. At the initial value of 0, this function will evaluate to 1, which is a reasonable initial guess.
mixed
The mixture of the Feed and eg fluids as calculated by the
Mixer tool.
hydSpecT
The desired hydrate formation temperature of the mixed fluid.
There are three tools:
mixer
Mixes the Feed and eg
hydT
A hydrate ool that calculates the hydrate temperature for the mixed fluid.
solver
The solver tool has a single formula:
#hydT - $hydSpecT
which is simply the difference between the calculated hydrate temperature and the specified one.
Note that since the hydrate tool only has one value that can be referenced, no further qualification is needed.