|Published on:||September 7th, 2021|
|With:||Eric Miller & Ahmed Fayad|
In this episode your host and Co-Founder of PADT, Eric Miller is joined by PADT’s IT Software Support Engineer, Ahmed Fayad to discuss common support questions he frequently receives, along with best practices for avoiding issues and finding solutions within Ansys simulation software.
If you have any questions, comments, or would like to suggest a topic for the next episode, shoot us an email at email@example.com we would love to hear from you!
I have always known that the Selection Information window is extremely useful, giving us properties like Surface Area, Edge length, and the distance between two selected nodes.
But it will also do a few things that I had not known about, until recently.
Normally you can Export the Nodal Locations with a solution result plot, but for that you have to solve the model first. If you have not yet solved the model, you can still get the nodal locations using the Selection Information window, though it is a little finicky.
The trick is that the “Export Text File” and “Copy” do not show up if you pick the headers to select the entire columns like you do in Excel.
You can do the same thing to thing to get the mass properties of an assembly.
Selecting bodies will give you the mass, centroid, and principal moments of inertia. You can get this in the Worksheet view when the Geometry branch is highlighted. Unlike the Worksheet, however, we can change the options to show the Moments of inertia about a given coordinate system.
We can now export out the six moments of inertia about any given coordinate system. Next, I will attempt the find the ACT calls to do the same thing. Stay tuned…
At PADT we provide help to many of our customers who have trouble with their ANSYS simulations. At the top level, though, there are some computer skills for Windows that we consider basics that every engineer should know. If these are skills you already have in your tool belt, fantastic! If not, hopefully this information will help you be more effective in your simulation tasks.
Also, since most of us have been or are currently being updated to Windows 10, I’m providing the instructions for Windows 10. Windows 7 is similar, though.
This allows us to run programs, a.k.a. “apps” with administrator privilege, even if our login credentials don’t allow this level of usage. This is the case for most users of engineering software. Certain components of ANSYS, including the CAD Configuration Manager and the Client ANSLIC_ADMIN Utility require changes to your computer that non-admin rights won’t allow. By running as administrator, we allow the program to make the needed changes.
To do this, click the Start Menu, then find the program (app) you need to run in the resulting list, such as the Client ANSLIC_ADMIN Utility. Next, right click on that program, select More with the left mouse button, then select Run as Administrator with the left mouse button. If you are prompted to allow changes to your system, click Yes. Here is what it will look like:
When using Windows Explorer, now known as File Explorer in Windows 10, by default you probably won’t see file extensions. Instead, you’ll see the prefix of files, but won’t see the endings of the file names. This will be the case when browsing for files to open or save as well. Sometimes you can rely on the icons associated with a file to know which program it’s associated with or the Type field in the list view, but sometimes there are conflicts. For example, an ANSYS Mechanical APDL macro file will have the extension .mac. You can probably guess that there is at least one other major company that can have software that uses that extension. By viewing the file extensions, even if the icons are wrong, we can more easily identify the files we need. Here is how it’s done:
Click Start, then File Explorer:
The default view using “Details” in File Explorer will look something like this (file names don’t include extensions):
To view the extensions, we click on the View menu in File Explorer, then Options, then Change Folder and Search Options.
The way I set this option for all folder on my computer is to then click on the View tab in the resulting small window, then uncheck the box for Hide extensions for known file types, then click Apply to Folders, then click OK.
Now the list view (using Details under the View menu) in File Explorer looks like this, with each file showing its extension in the list:
Environment Variables are values that are used by certain programs to define settings. For example, an environment variable can be used to specify the license server for certain programs. It’s good to know how to define and edit these if needed. To do this, we bring up the control panel. In Windows 10, click on the Start button, then Settings:
A quick way to get there is to type “environment” in the search window in the resulting Settings window:
The search should find Edit the System Environment Variables. Click on that:
In the resulting System Properties window, click on the Environment Variables button in the Advanced tab:
A new window will open with a list of currently defined User variables (just for your login) and System variables (for anyone who is logged in), like this:
You can click on an environment variable to edit it using the Edit… button, or you can click on the New… button to create a new one. One ANSYS-related environment variable that occasionally needs to be set is ANSYSLMD_LICENSE_FILE. This is only needed if the default license server specifications aren’t working for some reason. You won’t need to set this under normal circumstances. Just in case, here is how to define it, using the New… button under System variables. We type in the Variable Name, in this case ANSYSLMD_LICENSE_FILE and then the Variable Value, which in this example is 1055@myserver.
When done defining and editing environment variables, we click on the OK button to complete the action and get out of that environment variable-related windows.
As simulation experts, we are often pushing the limits of our computer resources. It’s good to know how to check those. First is disk space. An easy way to check disk space is to bring up File Explorer again. Click on This PC on the left side. This will give you a snapshot of the available space on each hard drive that is accessible on this computer:
Next, we may want to check CPU or memory utilization. Perhaps we want to make sure that our solution is running on multiple cores as we have requested.
To do this, hold down the Alt, Control, and Delete keys on the keyboard, all at the same time. Then click on Task Manager in the resulting window (it will look for a second like your computer is going to restart – it won’t actually do that).
In the resulting Task Manager window, click on More details:
In the resulting window, we can click on the Performance tab and view, for example, the current memory utilization, or we can click on Open Resource Monitor and get even more details, including utilization on each CPU:
It’s very common in the simulation world to end up filling up your disk drives. Therefore, it’s good to be able to find large files so we can delete them if they are no longer needed. For a simple way to do this, we’ll start with File Explorer again. This time, we’ll click in the search window at upper right, but won’t actually type in anything. We just want the search tools menu to appear:
Next, click on Search under Search Tools, followed by Size, then Gigantic (I will argue that 128 MB isn’t all that gigantic in the simulation world, but Microsoft hasn’t caught up with us yet):
Windows will now perform a search for files larger than 128 GB. If any of these are no longer needed, you can right click and delete them. Just make sure you don’t delete any files that are truly needed!
That completes our discussion on 5 computer skills every engineer should know. In conclusion, these basic skills should help you be more productive over time as you perform your simulation tasks.
In this The Focus Video Blog, Joe Woodward shares a nice little trick he found when answering a tech support question.
When you want to take timesteps from a transient thermal analysis in ANSYS Mechanical and use the results as loads in a series of static simulations, in just a few mouse clicks.