protected override void OnInitialize()
 {
     Name        = "DummyUnit";
     Description = "Unit Dummy .NET";
     Ports.Add(CapeOpenUnitPort.Create(CapeOpenPortType.Material, "InputPort", "Input Port of Dummy", CapeOpenPortDirection.Inlet));
     Ports.Add(CapeOpenUnitPort.Create(CapeOpenPortType.Material, "OutputPort", "Output Port of Dummy", CapeOpenPortDirection.Outlet));
 }
 protected override void OnInitialize()
 {
     Name        = "COCO Exchanger Unit";
     Description = "COCO Exchanger Unit .Net";
     Ports.Add(CapeOpenUnitPort.Create(CapeOpenPortType.Material, "InputPort1", "Input Port 1 of Exchanger", CapeOpenPortDirection.Inlet));
     Ports.Add(CapeOpenUnitPort.Create(CapeOpenPortType.Material, "InputPort2", "Input Port 2 of Exchanger", CapeOpenPortDirection.Inlet));
     Ports.Add(CapeOpenUnitPort.Create(CapeOpenPortType.Material, "OutputPort1", "Output Port 1 of Splitter", CapeOpenPortDirection.Outlet));
     Ports.Add(CapeOpenUnitPort.Create(CapeOpenPortType.Material, "OutputPort2", "Output Port 2 of Splitter", CapeOpenPortDirection.Outlet));
 }
 protected override void OnInitialize()
 {
     Name        = "SplitterUnit";
     Description = "Splitter Unit .Net";
     Ports.Add(CapeOpenUnitPort.Create(CapeOpenPortType.Material, "InputPort", "Input Port of Splitter", CapeOpenPortDirection.Inlet));
     Ports.Add(CapeOpenUnitPort.Create(CapeOpenPortType.Material, "OutputPort1", "Output Port 1 of Splitter", CapeOpenPortDirection.Outlet));
     Ports.Add(CapeOpenUnitPort.Create(CapeOpenPortType.Material, "OutputPort2", "Output Port 2 of Splitter", CapeOpenPortDirection.Outlet));
     Parameters.Add(DoubleParameter.Create("SplitFraction", "Split Fraction of Splitter", CapeOpenParameterMode.ReadWrite, -1E+35, 1E+35, 0.5));
 }
 protected override void OnInitialize()
 {
     Name        = "WarUnit";
     Description = "War Unit .Net";
     Ports.Add(CapeOpenUnitPort.Create(CapeOpenPortType.Material, "InputPort", "Inpot Port of War", CapeOpenPortDirection.Inlet));
     Ports.Add(CapeOpenUnitPort.Create(CapeOpenPortType.Material, "OutputPort", "Output Port of War", CapeOpenPortDirection.Outlet));
     Parameters.Add(DoubleParameter.Create("ProcessType", "CP or EP", CapeOpenParameterMode.ReadWrite, -1E+35, 1E+35, 0));
     Parameters.Add(DoubleParameter.Create("CapePosition", "Position of CO", CapeOpenParameterMode.ReadWrite, -1E+35, 1E+35, 0));
     Parameters.Add(DoubleParameter.Create("CapeID", "Name of CO", CapeOpenParameterMode.ReadWrite, -1E+35, 1E+35, 0));
 }
Пример #5
0
 protected override void OnInitialize()
 {
     Name        = "Exchanger Unit";
     Description = "Exchanger Unit .Net";
     Ports.Add(CapeOpenUnitPort.Create(CapeOpenPortType.Material, "InputPort1", "Input Port 1 of Exchanger", CapeOpenPortDirection.Inlet));
     Ports.Add(CapeOpenUnitPort.Create(CapeOpenPortType.Material, "InputPort2", "Input Port 2 of Exchanger", CapeOpenPortDirection.Inlet));
     Ports.Add(CapeOpenUnitPort.Create(CapeOpenPortType.Material, "OutputPort1", "Output Port 1 of Splitter", CapeOpenPortDirection.Outlet));
     Ports.Add(CapeOpenUnitPort.Create(CapeOpenPortType.Material, "OutputPort2", "Output Port 2 of Splitter", CapeOpenPortDirection.Outlet));
     Parameters.Add(DoubleParameter.Create("ParameterValue", "Value of the parameter depending on calculation", CapeOpenParameterMode.ReadWrite, -1E+35, 1E+35, 250));
 }
Пример #6
0
 protected override void OnInitialize()
 {
     Name        = "ReactorUnit";
     Description = "Reactor Unit .Net";
     Ports.Add(CapeOpenUnitPort.Create(CapeOpenPortType.Material, "InputPort", "Input Port of Reactor", CapeOpenPortDirection.Inlet));
     Ports.Add(CapeOpenUnitPort.Create(CapeOpenPortType.Material, "OutputPort", "Output Port of Reactor", CapeOpenPortDirection.Outlet));
     Parameters.Add(DoubleParameter.Create("K1", "Kinetic Constant for R1", CapeOpenParameterMode.ReadWrite, -1E+35, 1E+35, 159000));
     Parameters.Add(DoubleParameter.Create("K2", "Kinetic Constant for R2", CapeOpenParameterMode.ReadWrite, -1E+35, 1E+35, 883000));
     Parameters.Add(DoubleParameter.Create("K3", "Kinetic Constant for R3", CapeOpenParameterMode.ReadWrite, -1E+35, 1E+35, 181000000));
     Parameters.Add(DoubleParameter.Create("E1", "Energy of R1", CapeOpenParameterMode.ReadWrite, -1E+35, 1E+35, 15000));
     Parameters.Add(DoubleParameter.Create("E2", "Energy of R2", CapeOpenParameterMode.ReadWrite, -1E+35, 1E+35, 20000));
     Parameters.Add(DoubleParameter.Create("E3", "Energy of R3", CapeOpenParameterMode.ReadWrite, -1E+35, 1E+35, 25000));
 }