Issue with CFX solver in Learning Hub's WS01-Mixing-Tee exercise

  • 45 Views
  • Last Post 15 February 2019
  • Topic Is Solved
Risto86 posted this 12 February 2019

I'm attempting to make my way through some of the learning hub courses as I await my university to license our sponsored software package, using the free student edition in the meantime.

I've gone through this exercise numerous times, starting from scratch twice, and I continue to get the error notices "Non-zero exit code 2" and on the CFX solver outfile, "Solver exited with return code 1".

My understanding is that the student version has a node/element limit of 152k, which was never approached but I still received the error. I went back and applied mesh sizing limits to reduce the mesh to below 32k and I still receive the error.

Is the issue a misapplication somewhere in the meshing or setup process? An issue with my computer, or simply that I'll need to have the licensed academic version to run the solver on this problem?

Attached file note: v0 is before mesh adjustment, v1 is after using sizing to reduce element count.

Will update if I find a solution before someone responds.

Thanks!

Attached Files

Order By: Standard | Newest | Votes
rwoolhou posted this 12 February 2019

You've got a 512k cell count limit, so should be fine with the tutorials. Are there any warnings/messages before the exit code? Those tend to be more useful. Also check disc space both in the working directory but also scratch (set in Workbench -> Tools). 

abenhadj posted this 12 February 2019

Are you seeing any license error messages in the CFX out file?

Best regards,

Amine

Risto86 posted this 12 February 2019

I recorded my desktop as I ran the solver so you can see what I see. I've also attached the CFX solver out file as copied into notepad, which does show a warning on the top which I don't understand. I monitored my computer cpu usage and memory during a subsequent run, and it didn't get anywhere near maxed out. (edit with attached mp4 pending)

 

Within (tell me if this is the right place to look to check disc space) Workbench->Tools->Options->Mechanical ADPL->Default Memory: 1024mb; Workspace Memory: 1048mb.

I haven't seen any notice of license errors in the outfile, unless I somehow overlooked it multiple times

Attached Files

rwoolhou posted this 12 February 2019

For the disc space just use the File Manager/Explorer and check for free space.  As staff we can't open attachments so can't review the out file. 

Risto86 posted this 12 February 2019

That's unfortunate, I'll take it the video will be a waste to upload... I have 676 GB of free space on my computer

The warning at the top of the file is "Warning! Revision is over 16 characters long 39"

Then at the bottom I see: "An error has occurred in cfx5solve: The ANSYS CFX solver exited with return code 1. No results file has been created."

 

Full out file as below:

 

 +--------------------------------------------------------------------+

Warning!

Revision is over 16 characters long 39

 +--------------------------------------------------------------------+

 

 This run of the CFX Welcome to ANSYS Student Discovery Live Solver

 started at 02:55:06 on 12 Feb 2019 by user risto on DESKTOP-17EOLLP

 (intel_xeon64.sse2_winnt) using the command:

 

  "C:\Program Files\ANSYS Inc\ANSYS Student\v192\CFX\bin\perllib\cfx5solve.pl"

    -batch -ccl runInput.ccl -fullname CFX_003

 

 Welcome to ANSYS Student Discovery Live

 

  Point Releases and Patches installed:

  Academic Student Release 19.2

  FENSAP-ICE Release 19.2

  AIM Academic Student Release 19.2

  AIM Release 19.2

  Discovery Release

 

 Setting up CFX Solver run ...

 

 +--------------------------------------------------------------------+

CFX Command Language for Run

 +--------------------------------------------------------------------+

 

 LIBRARY:

   MATERIAL: Water

     Material Description = Water (liquid)

     Material Group = Water Data, Constant Property Liquids

     Option = Pure Substance

     Thermodynamic State = Liquid

     PROPERTIES:

       Option = General Material

       EQUATION OF STATE:

         Density = 997.0 [kg m^-3]

         Molar Mass = 18.02 [kg kmol^-1]

         Option = Value

       END

       SPECIFIC HEAT CAPACITY:

         Option = Value

         Specific Heat Capacity = 4181.7 [J kg^-1 K^-1]

         Specific Heat Type = Constant Pressure

       END

       REFERENCE STATE:

         Option = Specified Point

         Reference Pressure = 1 [atm]

         Reference Specific Enthalpy = 0.0 [J/kg]

         Reference Specific Entropy = 0.0 [J/kg/K]

         Reference Temperature = 25 [C]

       END

       DYNAMIC VISCOSITY:

         Dynamic Viscosity = 8.899E-4 [kg m^-1 s^-1]

         Option = Value

       END

       THERMAL CONDUCTIVITY:

         Option = Value

         Thermal Conductivity = 0.6069 [W m^-1 K^-1]

       END

       ABSORPTION COEFFICIENT:

         Absorption Coefficient = 1.0 [m^-1]

         Option = Value

       END

       SCATTERING COEFFICIENT:

         Option = Value

         Scattering Coefficient = 0.0 [m^-1]

       END

       REFRACTIVE INDEX:

         Option = Value

         Refractive Index = 1.0 [m m^-1]

       END

       THERMAL EXPANSIVITY:

         Option = Value

         Thermal Expansivity = 2.57E-04 [K^-1]

       END

     END

   END

 END

 FLOW: Flow Analysis 1

   SOLUTION UNITS:

     Angle Units = [rad]

     Length Units = [m]

     Mass Units = [kg]

     Solid Angle Units = [sr]

     Temperature Units = [K]

     Time Units = [s]

   END

   ANALYSIS TYPE:

     Option = Steady State

     EXTERNAL SOLVER COUPLING:

       Option = None

     END

   END

   DOMAIN: junction

     Coord Frame = Coord 0

     Domain Type = Fluid

     Location = Fluid Domain

     BOUNDARY: inlety

       Boundary Type = INLET

       Location = inlet y

       BOUNDARY CONDITIONS:

         FLOW REGIME:

           Option = Subsonic

         END

         HEAT TRANSFER:

           Option = Static Temperature

           Static Temperature = 10 [C]

         END

         MASS AND MOMENTUM:

           Normal Speed = 5 [m s^-1]

           Option = Normal Speed

         END

         TURBULENCE:

           Option = Medium Intensity and Eddy Viscosity Ratio

         END

       END

     END

     BOUNDARY: inletz

       Boundary Type = INLET

       Location = inlet z

       BOUNDARY CONDITIONS:

         FLOW REGIME:

           Option = Subsonic

         END

         HEAT TRANSFER:

           Option = Static Temperature

           Static Temperature = 90 [C]

         END

         MASS AND MOMENTUM:

           Normal Speed = 3 [m s^-1]

           Option = Normal Speed

         END

         TURBULENCE:

           Option = Medium Intensity and Eddy Viscosity Ratio

         END

       END

     END

     BOUNDARY: outlet

       Boundary Type = OUTLET

       Location = outlet

       BOUNDARY CONDITIONS:

         FLOW REGIME:

           Option = Subsonic

         END

         MASS AND MOMENTUM:

           Option = Average Static Pressure

           Pressure Profile Blend = 0.05

           Relative Pressure = 0 [Pa]

         END

         PRESSURE AVERAGING:

           Option = Average Over Whole Outlet

         END

       END

     END

     BOUNDARY: wall

       Boundary Type = WALL

       Location = F29.40,F30.40,F31.40,F32.40,F33.40

       BOUNDARY CONDITIONS:

         HEAT TRANSFER:

           Option = Adiabatic

         END

         MASS AND MOMENTUM:

           Option = No Slip Wall

         END

         WALL ROUGHNESS:

           Option = Smooth Wall

         END

       END

     END

     DOMAIN MODELS:

       BUOYANCY MODEL:

         Option = Non Buoyant

       END

       DOMAIN MOTION:

         Option = Stationary

       END

       MESH DEFORMATION:

         Option = None

       END

       REFERENCE PRESSURE:

         Reference Pressure = 1 [atm]

       END

     END

     FLUID DEFINITION: Fluid 1

       Material = Water

       Option = Material Library

       MORPHOLOGY:

         Option = Continuous Fluid

       END

     END

     FLUID MODELS:

       COMBUSTION MODEL:

         Option = None

       END

       HEAT TRANSFER MODEL:

         Option = Thermal Energy

       END

       THERMAL RADIATION MODEL:

         Option = None

       END

       TURBULENCE MODEL:

         Option = k epsilon

       END

       TURBULENT WALL FUNCTIONS:

         Option = Scalable

       END

     END

   END

   OUTPUT CONTROL:

     MONITOR OBJECTS:

       MONITOR BALANCES:

         Option = Full

       END

       MONITOR FORCES:

         Option = Full

       END

       MONITOR PARTICLES:

         Option = Full

       END

       MONITOR POINT: p inlety

         Coord Frame = Coord 0

         Expression Value = areaAve(Pressure )@inlety

         Option = Expression

       END

       MONITOR POINT: p inletz

         Coord Frame = Coord 0

         Expression Value = areaAve(Pressure )@inletz

         Option = Expression

       END

       MONITOR RESIDUALS:

         Option = Full

       END

       MONITOR TOTALS:

         Option = Full

       END

     END

     RESULTS:

       File Compression Level = Default

       Option = Standard

     END

   END

   SOLVER CONTROL:

     Turbulence Numerics = First Order

     ADVECTION SCHEME:

       Option = High Resolution

     END

     CONVERGENCE CONTROL:

       Length Scale Option = Conservative

       Maximum Number of Iterations = 100

       Minimum Number of Iterations = 1

       Timescale Control = Auto Timescale

       Timescale Factor = 1.0

     END

     CONVERGENCE CRITERIA:

       Residual Target = 1.E-4

       Residual Type = RMS

     END

     DYNAMIC MODEL CONTROL:

       Global Dynamic Model Control = On

     END

   END

 END

 COMMAND FILE:

   Version = 19.2

   Results Version = 19.2

 END

 SIMULATION CONTROL:

   EXECUTION CONTROL:

     EXECUTABLE SELECTION:

       Double Precision = No

       Large Problem = No

     END

     INTERPOLATOR STEP CONTROL:

       Runtime Priority = Standard

       MEMORY CONTROL:

         Memory Allocation Factor = 1.0

       END

     END

     PARALLEL HOST LIBRARY:

       HOST DEFINITION: desktop17eollp

         Remote Host Name = DESKTOP-17EOLLP

         Host Architecture String = winnt-amd64

         Installation Root = C:\Program Files\ANSYS Inc\ANSYS Student\v%v\CFX

       END

     END

     PARTITIONER STEP CONTROL:

       Multidomain Option = Automatic

       Runtime Priority = Standard

       MEMORY CONTROL:

         Memory Allocation Factor = 1.0

       END

       PARTITION SMOOTHING:

         Maximum Partition Smoothing Sweeps = 100

         Option = Smooth

       END

       PARTITIONING TYPE:

         MeTiS Type = k-way

         Option = MeTiS

         Partition Size Rule = Automatic

       END

     END

     RUN DEFINITION:

       Run Mode = Full

       Solver Input File = CFX.def

       Solver Results File = \

         CUsers/risto/Desktop/WS01-Mixing-Tee_pending/dp0_CFX_Solution/CFX_0\

         03.res

     END

     SOLVER STEP CONTROL:

       Runtime Priority = Standard

       MEMORY CONTROL:

         Memory Allocation Factor = 1.0

       END

       PARALLEL ENVIRONMENT:

         Number of Processes = 1

         Start Method = Serial

       END

     END

   END

 END

 

 

 +--------------------------------------------------------------------+

Solver

+--------------------------------------------------------------------+

 

 

 +--------------------------------------------------------------------+

ANSYS(R) CFX(R) Solver

 +--------------------------------------------------------------------+

An error has occurred in cfx5solve:

The ANSYS CFX solver exited with return code 1.   No results file has been created.

 +--------------------------------------------------------------------+

 

End of solution stage.

 

 +--------------------------------------------------------------------+

 For CFX runs launched from Workbench, the final locations of directories

and files generated may differ from those shown.

 +--------------------------------------------------------------------+

 

 

This run of the ANSYS CFX Solver has finished.

abenhadj posted this 12 February 2019

Looks consistent: are there any other error messages printed in the CFX console? Can you try running the definition file in CFX Standalone? Can you attached the definition file here?

Best regards,

Amine

Risto86 posted this 12 February 2019

I'm sorry, can you explain what you're asking for, or point me to an explanation of how to do it?

abenhadj posted this 12 February 2019

You have a definition file created in the workbench directory (name*.def). Now Start CFX Solver out of the Workbench: Start Programs, CFX, then CFX Solver from the CFX Launcher Panel, define Run, give the path to the definition file and start.

 

Best regards,

Amine

Risto86 posted this 15 February 2019

I apologize, it took me a couple of days to get back to this.

I tried your suggestion, and the result is exactly the same in the Solver Manager, but I do have a shell window with this additional output:

Warning!

 

Revision is over 16 characters long 39

 

2019/02/14 19:400    INFO                Demo license file C:\Program Files\ANSYS Inc\ANSYS Student\Shared Files\Licensing\student.lic exists.

Warning!

Revision is over 16 characters long 39

 

Unable to assign product revision id.

 

 An error has occurred in cfx5solve:

 

The ANSYS CFX solver exited with return code 1.   No results file has been created.

 

Use of uninitialized value $data_items{"Application.Buildinfo"} in sprintf at C:\Program Files\ANSYS Inc\ANSYS Student\v192\CFX\bin\/perllib/CFX5/Simulation/Configuration/APIP.pm line 119.

Use of uninitialized value $data_items{"Mesh.Elements"} in sprintf at C:\Program Files\ANSYS Inc\ANSYS Student\v192\CFX\bin\/perllib/CFX5/Simulation/Configuration/APIP.pm line 119.

Use of uninitialized value $data_items{"Mesh.Faces"} in sprintf at C:\Program Files\ANSYS Inc\ANSYS Student\v192\CFX\bin\/perllib/CFX5/Simulation/Configuration/APIP.pm line 119.

Use of uninitialized value $data_items{"Mesh.Nodes"} in sprintf at C:\Program Files\ANSYS Inc\ANSYS Student\v192\CFX\bin\/perllib/CFX5/Simulation/Configuration/APIP.pm line 119.

Use of uninitialized value $data_items{"Mesh.Zones"} in sprintf at C:\Program Files\ANSYS Inc\ANSYS Student\v192\CFX\bin\/perllib/CFX5/Simulation/Configuration/APIP.pm line 119.

Use of uninitialized value $data_items{"Session.TotalCpuTime"} in sprintf at C:\Program Files\ANSYS Inc\ANSYS Student\v192\CFX\bin\/perllib/CFX5/Simulation/Configuration/APIP.pm line 119.

 

abenhadj posted this 15 February 2019

Can you please for debugging purposes create a simple pipe with velocity inlet, wall and pressure outlet, carry out that steady simulation and check if it works. Thanks

Best regards,

Amine

Risto86 posted this 15 February 2019

It seems that there was an issue with the geometry. I created my own version of the tee in SpaceClaim and the simulation ran perfectly!

abenhadj posted this 15 February 2019

Nice. Please mark this as resolved.

Best regards,

Amine

Close