Hai,
I am getting started with DWSIM and experimenting with it for a week. I am getting the following errors when I tried to see the profiles in the PFR. Can someone help me in resolving the issue. System.NullReferenceException: Object reference not set to an instance of an object.
at DWSIM.FormGraphPFR.FormGraph_Load(Object sender, EventArgs e) in C:\Users\danie\Documents\Visual Studio 2013\Projects\DWSIM3\DWSIM\Forms\UITypeEditors\Results\PFR\FormGraphPFR.vb:line 28
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hai Daniel,
Thank you very much for the reply. I have recalculated the whole sheet before viewing the profiles still I am getting empty plot window and there are no values under conversions and extent of reactions tabs in the results. I am getting the following errors System.IndexOutOfRangeException: Index was outside the bounds of the array.
at DWSIM.FormGraphPFR.DrawGraph() in C:\Users\danie\Documents\Visual Studio 2013\Projects\DWSIM3\DWSIM\Forms\UITypeEditors\Results\PFR\FormGraphPFR.vb:line 89
at DWSIM.FormGraphPFR.FormGraph_Load(Object sender, EventArgs e) in C:\Users\danie\Documents\Visual Studio 2013\Projects\DWSIM3\DWSIM\Forms\UITypeEditors\Results\PFR\FormGraphPFR.vb:line 60
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Am i missing something. I am using Version 3.4 . Please find the simulation file here. PFR
Thanks in advance
Last edit: HarshaVardhanBabu 2015-11-24
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You created reactions of the "Equilibrium" type. These reactions are visible only by the Gibbs and Equilibrium Reactors. PFR and CSTR support reactions os Kinetic and Heterogeneous Catalytic types.
Take a look at the Steam Reforming sample and you'll understand how it works.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hai,
I am getting started with DWSIM and experimenting with it for a week. I am getting the following errors when I tried to see the profiles in the PFR. Can someone help me in resolving the issue.
System.NullReferenceException: Object reference not set to an instance of an object. at DWSIM.FormGraphPFR.FormGraph_Load(Object sender, EventArgs e) in C:\Users\danie\Documents\Visual Studio 2013\Projects\DWSIM3\DWSIM\Forms\UITypeEditors\Results\PFR\FormGraphPFR.vb:line 28 at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Thanks in advance.
You must calculate the PFR before trying to view the profiles.
Hai Daniel,
Thank you very much for the reply. I have recalculated the whole sheet before viewing the profiles still I am getting empty plot window and there are no values under conversions and extent of reactions tabs in the results. I am getting the following errors
System.IndexOutOfRangeException: Index was outside the bounds of the array. at DWSIM.FormGraphPFR.DrawGraph() in C:\Users\danie\Documents\Visual Studio 2013\Projects\DWSIM3\DWSIM\Forms\UITypeEditors\Results\PFR\FormGraphPFR.vb:line 89 at DWSIM.FormGraphPFR.FormGraph_Load(Object sender, EventArgs e) in C:\Users\danie\Documents\Visual Studio 2013\Projects\DWSIM3\DWSIM\Forms\UITypeEditors\Results\PFR\FormGraphPFR.vb:line 60 at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Am i missing something. I am using Version 3.4 . Please find the simulation file here. PFR
Thanks in advance
Last edit: HarshaVardhanBabu 2015-11-24
It wasn't calculated, then. Install the latest version 3.5 build 5800.
You created reactions of the "Equilibrium" type. These reactions are visible only by the Gibbs and Equilibrium Reactors. PFR and CSTR support reactions os Kinetic and Heterogeneous Catalytic types.
Take a look at the Steam Reforming sample and you'll understand how it works.
Thank you very much Daniel for the help. I will go through the Steam Reforming sample.