March 17, 2023 at 8:58 amFAQParticipant
On Linux, there is a debugger named ddd available. The following steps should be performed for debugging your own code: 1) Set current version of development debug solver as system environment variables – setenv SOLVER /otthome1/develop/Projects/CFX-11.0_SP1-build/bin/linux-amd64_debug/gnufort/solver-pvm.exe – setenv CFX_DATA_DIR ~develop/Projects/CFX-11.0_SP1-build/etc 2) Compile your own code with the option – cfx5mkext -name xxx *.F -g -Wimplicit 3) In the lib directory, e.g. linux-amd64, create a subfolder named gnufort; in that subfolder, create symbolic links of all libs that are in the above lib directory – ln -s ../libptm_injection.so . (The debugger’s standard search path for libs is in this subfolder gnufort) 4) In the cfx launch directory, let cfx5solve create a working directory starting the standard solver with option -norun: – cfx5solve -def
.def -norun 5) Change to this working directory *.dir, start the debugger there: – ddd -gdb $SOLVER & The DDD console is started. Upper window: Current code that is run by the solver. Lower window: Input console 6) In the DDD input console, set a breakpoint when the libs are read by the solver: – b cfxdlrun_ Let the debug solver run up to this breakpoint: – run 7) In the header line of DDD, enter the name of the respective lib you want to debug, e.g.: – ptm_injection__ -> The source code appears in the DDD code window. There you can have the solver run single program code lines, check values of variables, set further breakpoints and thus debug your code. Right mouse click is always helpful in DDD, or just enter in the DDD input window – call help() The following naming conventions have to be obeyed when calling libs in the DDD header line: – If the name is without “_”, add a “_” at the end, e.g. routine: myroutine -> myroutine_ – If the name contains one or more “_”, add two “__” at the end, e.g. routine: my_routine -> my_routine__
Introducing Ansys Electronics Desktop on Ansys Cloud
The Watch & Learn video article provides an overview of cloud computing from Electronics Desktop and details the product licenses and subscriptions to ANSYS Cloud Service that are...
How to Create a Reflector for a Center High-Mounted Stop Lamp (CHMSL)
This video article demonstrates how to create a reflector for a center high-mounted stop lamp. Optical Part design in Ansys SPEOS enables the design and validation of multiple...
Introducing the GEKO Turbulence Model in Ansys Fluent
The GEKO (GEneralized K-Omega) turbulence model offers a flexible, robust, general-purpose approach to RANS turbulence modeling. Introducing 2 videos: Part 1 provides background information on the model and a...
Postprocessing on Ansys EnSight
This video demonstrates exporting data from Fluent in EnSight Case Gold format, and it reviews the basic postprocessing capabilities of EnSight.
- How can I create a Cell Register from a Cell Zone?
- Left-handed faces troubleshooting
- How to overcome the model information incompatible with incoming mesh error?
- ANSYS Fluent: Introduction to the GEKO Turbulence Model Part I
- Delete or Deactivate Zone in Fluent
- ANSYS System Coupling: Two Way Fluid Structure Interaction – Part 1
- How to create and execute a FLUENT journal file?
- Running Python Script from Workbench
- What are the requirements for an axisymmetric analysis?
- How can I Export and import boxes / Systems from one Workbench Project to another?