-
-
June 20, 2022 at 5:41 pm
mehdi.yasaee
SubscriberI'm working in ANSYS 2021 R2.
I've setup a Static Structural model in workbench. Simple cube model with the bilinear plasticity usermat.f placed in the working directory.
I've inserted a command(APDL):
/UPF, usermat.f
Under Static Structural step.
When I solve, the UPF process doesn't start, there is no compilation etc.
If I were to execute the exact input file in Terminal, then it will work correctly with the usermat.f compiling. This means the Fortran compilers are all working correctly.
The exact same process in ANSYS 2019 R3 works correctly in Workbench Mechanical.
What am I doing wrong?
To note:
ANS_USE_UPF is set to TRUE in environment variable
Envrionment path to ANSYS directory is set, meaning findUPF.bat can be run directly in Terminal.
-
July 1, 2022 at 3:13 pm
David Weed
Ansys EmployeeHi, is this on the Windows or Linux OS? Note that for Linux, the /UPF command in WB-Mechanical will not work. You'd need to user the shared library method instead and set the environment variable ANS_USER_PATH to wherever the compiled library resides.
-
August 23, 2022 at 6:41 am
janot.lubritz
SubscriberHey! I’ve got the exact same question. When I’m compiling the .f files with the Terminal (admin mode) and open them with apdl everything works but the compilation within workbench does not work. The command “/UPF, usermat.f” that is inserted into the model does not do the trick. The .f file is in the same folder as the model solution. I’m working on Windows 10 with Ansys 2021 R1 (shouldn’t have anything to do with the Ansys version).
Does anybody have an idea how I can connect the UPF to the workbench model?
@David Weed: What do you mean with the ANS_USER_PATH variable? What is the value of the variable and what do you mean with "where the compiled library resides."? I thought it would start the compilation once I solve the workbench model?
Thanks so much in advance!
-
August 24, 2022 at 6:59 am
mehdi.yasaee
SubscriberI think this must be a bug in Ansys 2021 since in Ansys 2019 using the command works correctly and the usermat is compiled directly within Workbench Mechanical.
What you need to do is to use the precompile method. Basically chose a folder on your machine as your usermat folder. Then put the compiled usermat files in there.
In windows Environmental Variables create a system Environement Variable ANS_USER_PATH to point to the usermatfolder.
Finally to compile the usermat.f files, make sure all the correct softwares(intel compiler, visual studio) and paths have been installed correctly. Then go to this folder:
C:\Program Files\ANSYS Inc\v212\ansys\custom\user\winx64
and look for the file: ANSUSERSHARED.bat
You need to put this and usermat.f in the same folder then run the batch file. Which should compile the usermat creating a bunch .dll, .lib, .map etc. files, .
In Ansys Mechanical, you activate the usermat by adding APDL Command in the analysis tree, /UPF, usermat
Hope this helps
-
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Saving & sharing of Working project files in .wbpz format
- Solver Pivot Warning in Beam Element Model
- Understanding Force Convergence Solution Output
- An Unknown error occurred during solution. Check the Solver Output…..
- What is the difference between bonded contact region and fixed joint
- whether have the difference between using contact and target bodies
- The solver engine was unable to converge on a solution for the nonlinear problem as constrained.
- User manual
- Colors and Mesh Display
- material damping and modal analysis
-
3862
-
2639
-
1859
-
1254
-
604
© 2023 Copyright ANSYS, Inc. All rights reserved.