Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Type mismatch error

    • NVN NAMMA
      Subscriber

      I had several models that ran successfully a month ago. When I opened them to obtain some results and run a few more simulations, I encountered this type of error. Could you please explain why this is happening and how to resolve it?

    • NickFL
      Subscriber

      It is my assumption that you are running this in ANSYS Workbench. Have you tried running Fluent in stand-alone mode an accessing the result from there and continuing the simulation?

      • NVN NAMMA
        Subscriber

        I was using Ansys AQWA not FLUENT and I am not aware of opening AQWA in standalone mode. Could you please help?

    • Mike Pettit
      Ansys Employee

      Hello,

      It looks like you are running Aqwa Workbench on Win11 24H2. Please refer to the discussions in this thread: https://innovationspace.ansys.com/forum/forums/topic/javascript-runtime-error-in-aqwa-pre-on-windows-11-version-24h2/

      Briefly, your options are:

      1. Update your installation to Release 2025 R1, or
      2. Modify a Windows registry key, or
      3. Modify scripts in your Ansys installation to fix the issue yourself.

      Instructions for options 2 and 3 are included in the thread linked above.

      Mike

    • NVN NAMMA
      Subscriber

       

      I followed the steps for modifying a registry key as is, but it is still showing the same error.

      iIs there anything wrong in the steps followed. And my windows is Windows 11 Pro (

      Version 10.0.26100 Build 26100) and not sure about the following two steps are done right or not! (

      4. Name the new value JScriptReplacement.

      5. Set the value of JScriptReplacement to 0.

       

       

    • Mike Pettit
      Ansys Employee

      Hello,

      That looks ok to me, I think. Did you also restart the computer?

      Mike

      • NVN NAMMA
        Subscriber

        yes, Mike, I restarted the system also. Then what would have gone wrong?

        1. Launch regedit.

        2. Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Main
          (Create the folder Keys for Internet Explorer and Main if they do not exist)

        3. Right-click the Main key and select New | DWORD (32-bit) Value.   ; Is this always 32-bit?

        4. Name the new value JScriptReplacement.

        5. Set the value of JScriptReplacement to 0.

        6. Reboot the computer. 

        Users can directly modify the registry key in either HKEY_LOCAL_MACHINE (as shown above) or HKEY_CURRENT_USER.

         

         

        • Mike Pettit
          Ansys Employee

          I'm not sure why this would not have worked. Are you working on a university machine? Maybe there is an IT policy that prevents the registry from being modified?

          The other option is to modify the scripts in the Ansys installation. I recommend that you make backup copies of the two files mentioned below, before you modify them.

            1. Close the Aqwa Workbench editor, if it is still open.
            2. Navigate to C:\Program Files\ANSYS Inc\v242\aisol\aqwa\AQWAPages\scripts (replace 'v242' as necessary).
            3. Open context_functions.js with a text editor.
            4. Search for the string "paramset = ", without quotes; there should be 2 places in this file.
            5. After each line which starts "var paramset = ..." add a new line and type "if (paramset != null)", without quotes (don't worry about adding spaces at the start of the line).
            6. Save the file.
            7. Repeat these steps for ListView.js, in the same folder. There should also be 2 places. Here's the change applied for the second location in ListView.js:

          After you have made these changes, you should be able to open the Aqwa Workbench editor without any problems.

    • NVN NAMMA
      Subscriber

       

      Thanks, Mike for the detailed instructions. Yeah, I am using my university system, while saving the files it asked for admin permission and I couldn’t save it. I will meet the system admin and see if is there any way out.

      I contacted my system admin. We also changed the registry settings in the current user. Now it's working Fine. Thank you so much..🙏

       

       

Viewing 5 reply threads
  • You must be logged in to reply to this topic.