Skip to main content

OpenTD reference 2026 R1

Class CoSolver

Last update: 09.03.2026

Namespace: OpenTD.CoSolver
Assembly: OpenTD.CoSolver.dll

Base class for communicating with a Sinda run via an SF_Pipe.

public class CoSolver

Inheritance

object ← CoSolver

Derived

SF_CoSolver, TDSF_CoSolver

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Fields

pipeID

protected string pipeID

Field Value

string

sf_pipe

protected SF_Pipe sf_pipe

Field Value

SF_Pipe

Properties

Converged

public bool Converged { set; }

Property Value

bool

CouplingTimeStep

public double CouplingTimeStep { set; }

Property Value

double

InitializeTimeoutMs

Determines how long in milliseconds that Initialize() will try to connect to the Sinda run.

public int InitializeTimeoutMs { get; set; }

Property Value

int

Methods

Abort()

public void Abort()

CloseSF_Pipe()

protected void CloseSF_Pipe()

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

11 - beginning of STEADY 12 - end of STEADY

1 - beginning of TRANSIENT 2 - at end of TRANSIENT time step 3 - at end of TRANSIENT

public int Continue()

Returns

int

CreateSF_Pipe()

protected void CreateSF_Pipe()

DoStep()

public int DoStep()

Returns

int

GetCondSequenceNumber(string, int)

public long GetCondSequenceNumber(string submodel, int Id)

Parameters

submodel string

Id int

Returns

long

GetLumpSequenceNumber(string, int)

public long GetLumpSequenceNumber(string submodel, int Id)

Parameters

submodel string

Id int

Returns

long

GetNodeSequenceNumber(string, int)

public long GetNodeSequenceNumber(string submodel, int Id)

Parameters

submodel string

Id int

Returns

long

GetPathSequenceNumber(string, int)

public long GetPathSequenceNumber(string submodel, int Id)

Parameters

submodel string

Id int

Returns

long

GetRegisterExpression(string)

public string GetRegisterExpression(string name)

Parameters

name string

Returns

string

GetRegisterValue(string)

public double GetRegisterValue(string name)

Parameters

name string

Returns

double

GetTieSequenceNumber(string, int)

public long GetTieSequenceNumber(string submodel, int Id)

Parameters

submodel string

Id int

Returns

long

GetValue(string, int, string)

public double GetValue(string submodel, int Id, string type)

Parameters

submodel string

Id int

type string

Returns

double

GetValue(int, string)

public double GetValue(int SequenceNumber, string type)

Parameters

SequenceNumber int

type string

Returns

double

GetValue(string)

public double GetValue(string name)

Parameters

name string

Returns

double

Initialize()

public virtual void Initialize()

SetRegisterExpression(string, double)

public void SetRegisterExpression(string name, double value)

Parameters

name string

value double

SetValue(string, int, string, double)

public void SetValue(string submodel, int Id, string type, double value)

Parameters

submodel string

Id int

type string

value double

SetValue(int, string, double)

public void SetValue(int SequenceNumber, string type, double value)

Parameters

SequenceNumber int

type string

value double

SetValue(string, double)

public void SetValue(string name, double value)

Parameters

name string

value double

Set_Q_UDFA(string, int, double)

public void Set_Q_UDFA(string name, int SequenceNumber, double value)

Parameters

name string

SequenceNumber int

value double

SetupExperiment()

public void SetupExperiment()

Connect with Ansys