OpenTD.CoSolver.SF_CoSolver Class Reference
Last update: 16.07.2025Use SF_CoSolver to start a Sinda run via an input text file and communicate with it. Implements the OpenTD.CoSolver.CoSolver Implements the OpenTD.CoSolver.ISF_RunConfig More...

Public Member Functions | |
| SF_CoSolver (string inputFilePath) | |
| SF_CoSolver (string inputFilePath, string communicationsPipeId) | |
| override void | Initialize () |
| void | SetupExperiment () |
| void | Abort () |
| int | DoStep () |
| int | Continue () |
| Tells Sinda to proceed to the next step of the simulation. Return values: -1 - Sinda disconnected or error 0 - Sinda initial connection after call to OPENSF 99 - Sinda termination. | |
| string | GetRegisterExpression (string name) |
| double | GetRegisterValue (string name) |
| void | SetRegisterExpression (string name, double value) |
| double | GetValue (string submodel, int Id, string type) |
| double | GetValue (int SequenceNumber, string type) |
| double | GetValue (string name) |
| Int64 | GetNodeSequenceNumber (string submodel, int Id) |
| Int64 | GetPathSequenceNumber (string submodel, int Id) |
| Int64 | GetCondSequenceNumber (string submodel, int Id) |
| Int64 | GetTieSequenceNumber (string submodel, int Id) |
| Int64 | GetLumpSequenceNumber (string submodel, int Id) |
| void | Set_Q_UDFA (string name, int SequenceNumber, double value) |
| void | SetValue (string submodel, int Id, string type, double value) |
| void | SetValue (int SequenceNumber, string type, double value) |
| void | SetValue (string name, double value) |
Protected Member Functions | |
| void | CreateSF_Pipe () |
| void | CloseSF_Pipe () |
Protected Attributes | |
| string | pipeID |
| SF_Pipe | sf_pipe = null |
Properties | |
| Process | SindaFluintProcess [get] |
| After calling Initalize(), use SindaFluintProcess to access the operating system process running Sinda. | |
| string | SindaExePathname [get, set] |
| By default, Run() will use the most-recent version of sinda.exe installed on your system. To force it to use a specific version, set SindaExePathname to the path to the sinda.exe you'd like to use. Relative paths are evaluated from the client program working directory. | |
| string | InputPathname [get, set] |
| The Sinda input deck to run. Relative pathnames are evaluated from the client program working directory. | |
| string | PreprocessorOutputPathname [get, set] |
| Preprocessor output pathname. Defaults to 'pp.out'. Relative pathnames are evaluated from the InputPathname directory. | |
| bool | Cleanup [get, set] |
| If true, Sinda will delete any temporary directories when finished. Defaults to true. | |
| bool | LicenseWait [get, set] |
| bool | StatusWindows [get, set] |
| If true, Sinda shows status windows during the run. Defaults to false;. | |
| bool | UseOpenMP [get, set] |
| string | AdditionalCompileOptions [get, set] |
| Add additional commandline switches for the compiler here. Example: '/warn:declarations'. | |
| string | AdditionalLinkOptions [get, set] |
| Add additional commandline switches for the linker here. Example: 'MyAddOnLibrary.lib'. | |
| int | InitializeTimeoutMs = 60000 [get, set] |
| Determines how long in milliseconds that Initialize() will try to connect to the Sinda run. | |
| double | CouplingTimeStep [set] |
| bool | Converged [set] |
Detailed Description
Use SF_CoSolver to start a Sinda run via an input text file and communicate with it. Implements the OpenTD.CoSolver.CoSolver Implements the OpenTD.CoSolver.ISF_RunConfig
Constructor & Destructor Documentation
◆ SF_CoSolver() [1/2]
|
inline |
◆ SF_CoSolver() [2/2]
|
inline |
Member Function Documentation
◆ Abort()
|
inlineinherited |
◆ CloseSF_Pipe()
|
inlineprotectedinherited |
◆ Continue()
|
inlineinherited |
Tells Sinda to proceed to the next step of the simulation. Return values: -1 - Sinda disconnected or error 0 - Sinda initial connection after call to OPENSF 99 - Sinda termination.
11 - beginning of STEADY 12 - end of STEADY
1 - beginning of TRANSIENT 2 - at end of TRANSIENT time step 3 - at end of TRANSIENT
◆ CreateSF_Pipe()
|
inlineprotectedinherited |
◆ DoStep()
|
inlineinherited |
◆ GetCondSequenceNumber()
|
inlineinherited |
◆ GetLumpSequenceNumber()
|
inlineinherited |
◆ GetNodeSequenceNumber()
|
inlineinherited |
◆ GetPathSequenceNumber()
|
inlineinherited |
◆ GetRegisterExpression()
|
inlineinherited |
◆ GetRegisterValue()
|
inlineinherited |
◆ GetTieSequenceNumber()
|
inlineinherited |
◆ GetValue() [1/3]
|
inlineinherited |
◆ GetValue() [2/3]
|
inlineinherited |
◆ GetValue() [3/3]
|
inlineinherited |
◆ Initialize()
|
inlinevirtual |
Reimplemented from OpenTD.CoSolver.CoSolver.
◆ Set_Q_UDFA()
|
inlineinherited |
◆ SetRegisterExpression()
|
inlineinherited |
◆ SetupExperiment()
|
inlineinherited |
◆ SetValue() [1/3]
|
inlineinherited |
◆ SetValue() [2/3]
|
inlineinherited |
◆ SetValue() [3/3]
|
inlineinherited |
Member Data Documentation
◆ pipeID
|
protectedinherited |
◆ sf_pipe
|
protectedinherited |
Property Documentation
◆ AdditionalCompileOptions
|
getset |
Add additional commandline switches for the compiler here. Example: '/warn:declarations'.
Implements OpenTD.CoSolver.ISF_RunConfig.
◆ AdditionalLinkOptions
|
getset |
Add additional commandline switches for the linker here. Example: 'MyAddOnLibrary.lib'.
Implements OpenTD.CoSolver.ISF_RunConfig.
◆ Cleanup
|
getset |
If true, Sinda will delete any temporary directories when finished. Defaults to true.
Implements OpenTD.CoSolver.ISF_RunConfig.
◆ Converged
|
setinherited |
◆ CouplingTimeStep
|
setinherited |
◆ InitializeTimeoutMs
|
getsetinherited |
Determines how long in milliseconds that Initialize() will try to connect to the Sinda run.
◆ InputPathname
|
getset |
The Sinda input deck to run. Relative pathnames are evaluated from the client program working directory.
Implements OpenTD.CoSolver.ISF_RunConfig.
◆ LicenseWait
|
getset |
Implements OpenTD.CoSolver.ISF_RunConfig.
◆ PreprocessorOutputPathname
|
getset |
Preprocessor output pathname. Defaults to 'pp.out'. Relative pathnames are evaluated from the InputPathname directory.
Implements OpenTD.CoSolver.ISF_RunConfig.
◆ SindaExePathname
|
getset |
By default, Run() will use the most-recent version of sinda.exe installed on your system. To force it to use a specific version, set SindaExePathname to the path to the sinda.exe you'd like to use. Relative paths are evaluated from the client program working directory.
Implements OpenTD.CoSolver.ISF_RunConfig.
◆ SindaFluintProcess
|
get |
After calling Initalize(), use SindaFluintProcess to access the operating system process running Sinda.
◆ StatusWindows
|
getset |
If true, Sinda shows status windows during the run. Defaults to false;.
Implements OpenTD.CoSolver.ISF_RunConfig.
◆ UseOpenMP
|
getset |
Implements OpenTD.CoSolver.ISF_RunConfig.
The documentation for this class was generated from the following file:
- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV_ALPHA/buildXX/OpenTD.CoSolver/SF_CoSolver.cs