-
-
February 22, 2023 at 9:36 pm
s_safiza
SubscriberHello,
I am trying to write a job script to submit my simulation on our university's cluster. We don't have an RSM license so we should generate our own job script and submit it on a Linux system. My simulation is on Workbench and the job script that I have generated is below:
The problem I have is that I am requesting more than 8 cores from the cluster but Ansys only uses 2 cores! I need to add a command to ask Workbench to use the requested cores and memory from the cluster. I know for Ansys mechanical the command is "-np" but for Workbench, it is not defined. I would appreciate it if anyone knows what command should I add to use the requested resources from the cluster.
Thanks in advance.
-
February 23, 2023 at 9:12 am
Erik Kostson
Ansys EmployeeHi
First of all try to get RSM as this is the easiest way – talk to your University , but I do not think there is not a licence (RSM), and a cost for that as far as I know
Not that straight forward. You need to supply a script (.py) in the batch line using the -R argument:
runwb2 -B -F “D:\\OTHER\\sunbatch\\test.wbpj” -R ” D:\\OTHER\\sunbatch\\test.py”
The test.py can include the settings as :
config2 = ExtAPI.Application.SolveConfigurations["My Computer, Background"] x = config2.Default y = config2.Settings.License z = config2.SolveProcessSettings.ManualSolverMemorySettings.Workspace config2.SolveProcessSettings.ManualLinuxSettings.UserName = "jane.doe" config2.SolveProcessSettings.MaxNumberOfCores = 12
See here for more info:
https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v222/en/act_script/SolveProcessSettings.html
All the best
Erik -
March 1, 2023 at 8:44 pm
s_safiza
SubscriberHello,
Thank you for replying. Honestly, I tried to make a .py file including the script as it was mentioned in Ansys help as the link you sent me. But still, the analysis is done with only 2 cores. I included the screenshots below.
Would you please let me know if you have any suggestions? Thanks a lot.
Kind regards,
-
- 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
-
3930
-
2649
-
1861
-
1272
-
610
© 2023 Copyright ANSYS, Inc. All rights reserved.