We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Ansys 2020 R1 Error: Object reference not set to an instance of an object.

    • jdepalat
      Subscriber

      Hello,


      I am using the student version of Ansys (2020 R1) to complete my dissertation, and running into an error. I wanted to conduct a number of Ansys Fluent simulations of flow through a thin channel to analyze the wall shear stress with different inlet velocities. After achieving the desired results with one inlet velocity, I proceeded to adjust the required parameters for a parametric analysis, taking the inlet velocity as my single input parameter, and the wall shear stress at a certain point as my single output parameter. In my parameter set then, I added several new cases, increasing the inlet velocity. I ran all the simulations and then exported them, creating an additional .wbpj file for each simulation. I navigated into the second .wbpj file (the one immediately following my initial simulation), and the output was as desired. I was able to export that system to a .wpbz file, with the intent of combining all of them into one Workbench file afterwards for simultaneous analysis in CFD-Post, but when I tried to do the same to the third .wbpj file (and all consecutive files), I received the following error when trying to export the system as a .wpbz file: "Object reference not set to an instance of an object."


      Here are the details associated with the error (sorry for the screenshots, too much text for the character input):




      I'm also unable to open the results files in CFD-Post. I receive a number of errors, as shown in the attached image:



      Any idea why I can't view the results or export the results of my analysis? I'm having difficulty interpreting the errors, so I'd appreciate any help.

    • jdepalat
      Subscriber

      Here are some better quality images:


    • harlybake
      Subscriber
      An Object is an instance of a Class , it is stored some where in memory. A reference is what is used to describe the pointer to the memory location where the Object resides. The message objectreference not setto an instance of an object means that you are referring to an object the does not exist or was deleted or cleaned up. It's usually better to avoid a NullReferenceException than to handle it after it occurs. To prevent the error, objects that could be null should be tested for null before being used.nif (mClass != null)n{n / Go ahead and use mClassn mClass.property = ...n}nelsen{n / Attempting to use mClass here will result in NullReferenceExceptionn}
    • langlinator
      Subscriber
      I am encountering the same error in a similar application. I have used Workbench Parameters to run various mesh parameters, which was working. I then had to change a parameter in CFX PRE, and re-ran my design points. All of the design points had the same values (not physically feasible). Upon further inspection of CFD POST, my output parameters were not updating properly.Unexpected error while refreshing view Property:Object reference state not set to an instance of an object.nIs there a solution for this?
Viewing 3 reply threads
  • The topic ‘Ansys 2020 R1 Error: Object reference not set to an instance of an object.’ is closed to new replies.