Code Vaults

Tremendously powerful systems may be created using the basic primitives. Nevertheless, sometimes more analytical and programmatic equations or functions are needed to properly simulate a system. Code vaults allow you to inject arbitrary blocks of Visual Basic code into your model that may then be referenced by your other primitives.

For instance if you were modeling a piping system, you could create a Manning’s equation function as part of a Code Vault. Then all of your primitives’ equations could access it. It is important to note that all variables, subroutines, classes, and functions in Code Vaults should be declared as private, otherwise namespace conflicts could occur. Properly developing Simgua code is an extensive topic and you should see Programming Simgua for more details.

Back to the overview of all primitives.