The riversystem.commandline.exe provides a mechanism to run existing projects without the Source interface. It is possible to modify or change the behaviour of the project from the command line, by changing the values of global expressions. Results can be returned for recorded items or global expressions within the project.
riversystem.commandline.exe is included with Source.
...
Any valid Source project can be used with the command line, but to . To modify behaviour of the model, you must configure global expressions, which can be modified from achieved using the command line and alter the model’s behaviour in some way.
Figure 1 illustrates the process of manipulating the operating target for a storage from the command line, in this case, by manipulating a global expression, $x. This must first be specified in terms of an expression, which must reference $x. Global expressions can be used to manipulate the model in this way, either before the start of the simulation, or before each time-step.
...
This section describes how to load, run, retrieve results, and modifying modify parameters using the command line.
...
You can run a project in the following modes:
- Standalone mode - the project loads
and - ; the simulation runs with a single line command:
Code Block |
---|
RiverSystem.CommandLine -p C:\Temp\ExampleProject.rsproj |
- Client/server mode - one command line runs projects. It does anything except for loading a project until a second command line is run in client mode. In this way, multiple runs can be completed with the server loading the project only once. It also enables the server to run on a different machine to the client. The examples provided assume a client/server mode, illustrating the calls made by the client. They could also work in standalone mode. Refer to Advanced configuration options for two options available in this mode.
Info | ||
---|---|---|
| ||
Note: When working with functions in the command line, ensure that functions are referenced by their full name to avoid errors or run failures. The syntax for referencing a function by its full name is $Folder.Function. For example, use Riversystem.CommandLine.exe -v "$Folder1.Function1=10. |
...