Eco Lab exports all the members of the object named in the
make_model
macro to the TCL environment. For
example, if the model object is called ecolab
, accessor
TCL commands for the members are created -- ecolab.sp_sep
to
access the sp_sep
member of the ecolab object. Calling the
accessor command with no arguments returns the current value of the
member. Calling it with an argument sets the value of the member.
The use_namespace
(§6.3)
command can be used to dump all model commands into global
namespace. This unclutters the setting of model parameters considerably.
An alternative technique for getting TCL data into your model is to use a tcl_var. Of the two methods discussed here, the former is recommended.