Comments (4)
@germa89 you are not using pause wrong; at least that is what I think. It is pretty strongly implied in the help that it is for mapdl interactive. You can enter other APDL commands while paused but the UI throws an warning for all (except the unpause). My guess is that this is built into the UI and not MAPDL per se....if that makes sense.
from pymapdl.
Usage of PAUSE
over the gRPC interface
Interestingly, it seems that the PAUSE
command does not work on gRPC mode.
>> mapdl.run("pause")
CRITICAL - pymapdl_global - logging - handle_exception - Uncaught exception
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/mapdl/pymapdl/src/ansys/mapdl/core/mapdl_core.py", line 2236, in run
self._raise_errors(text)
File "/home/mapdl/pymapdl/src/ansys/mapdl/core/mapdl_core.py", line 2682, in _raise_errors
raise MapdlInvalidRoutineError(text)
ansys.mapdl.core.errors.MapdlInvalidRoutineError: *** WARNING *** CP = 2.088 TIME= 15:47:33
PAUSE is not a recognized BEGIN command, abbreviation, or macro. This
command will be ignored.
Ignore these messages by setting 'ignore_errors'=True
However, it does work in a normal context:
I believe I'm using it wrong.... Pinging @mikerife @FredAns @koubaa
from pymapdl.
Usage of PAUSE
on Student version
Additionally, it seems the command PAUSE
does not work well in MAPDL student version (or maybe I'm using it wrong).
But if you start an MAPDL instance, and then issue PAUSE
:
$ ansys -dir /tmp
...
...
RUN SETUP PROCEDURE FROM FILE= /ansys_inc/v241/ansys/apdl/start.ans
/INPUT FILE= /ansys_inc/v241/ansys/apdl/start.ans LINE= 0
BEGIN:
pause
*** WARNING *** CP = 0.518 TIME= 16:14:02
This application is now PAUSED, making its license available for use by
another application in this Workbench session. All commands to this
application will be ignored until an UNPAUSE command is typed in the
Command Window of this application and successfully processed.
BEGIN:
and then start another MAPDL instance, you get a Maximum licensed number of demo users already reached
error but it starts.
(.venv) root@67ca9354d958:~/pymapdl# ansys -dir /tmp/tmp
ANSYS LICENSE MANAGER ERROR:
Maximum licensed number of demo users already reached.
ANSYS LICENSE MANAGER ERROR:
No such feature exists.
Feature: mech_2
License path: /var/tmp//616ceecb-5105-43ba-a26d-dd269757afed:
FlexNet Licensing error:-5,357
ANSYS LICENSE MANAGER ERROR:
No such feature exists.
Feature: mech_1
License path: /var/tmp//616ceecb-5105-43ba-a26d-dd269757afed:
FlexNet Licensing error:-5,357
ANSYS LICENSE MANAGER ERROR:
No such feature exists.
Feature: meba
License path: /var/tmp//616ceecb-5105-43ba-a26d-dd269757afed:
FlexNet Licensing error:-5,357
from pymapdl.
License error showing on the student version
Also it seems that launching student version shows the Maximum licensed number of demo users already reached.
error before starting successfully:
ANSYS LICENSE MANAGER ERROR:
Maximum licensed number of demo users already reached.
ANSYS LICENSE MANAGER ERROR:
No such feature exists.
Feature: mech_2
License path: /var/tmp//56ebd4ed-9192-4bdb-beb2-34b929b03b83:
FlexNet Licensing error:-5,357
I have made sure there are no more Ansys processes running using ps aux | grep ansys
.
Details
Details
$ (.venv) root@67ca9354d958:~/pymapdl# ansys -dir /tmp/tmp
ANSYS LICENSE MANAGER ERROR:
Maximum licensed number of demo users already reached.
ANSYS LICENSE MANAGER ERROR:
No such feature exists.
Feature: mech_2
License path: /var/tmp//56ebd4ed-9192-4bdb-beb2-34b929b03b83:
FlexNet Licensing error:-5,357
ANSYS LICENSE MANAGER ERROR:
No such feature exists.
Feature: mech_1
License path: /var/tmp//56ebd4ed-9192-4bdb-beb2-34b929b03b83:
FlexNet Licensing error:-5,357
ANSYS LICENSE MANAGER ERROR:
No such feature exists.
Feature: meba
License path: /var/tmp//56ebd4ed-9192-4bdb-beb2-34b929b03b83:
FlexNet Licensing error:-5,357
Ansys Mechanical Enterprise Academic Student
*------------------------------------------------------------------*
| |
| W E L C O M E T O T H E A N S Y S (R) P R O G R A M |
| |
*------------------------------------------------------------------*
***************************************************************
* ANSYS MAPDL LEGAL NOTICES *
***************************************************************
* *
* Copyright 1971-2024 Ansys, Inc. All rights reserved. *
* Unauthorized use, distribution or duplication is *
* prohibited. *
* *
* Ansys is a registered trademark of Ansys, Inc. or its *
* subsidiaries in the United States or other countries. *
* See the Ansys, Inc. online documentation or the Ansys, Inc. *
* documentation CD or online help for the complete Legal *
* Notice. *
* *
***************************************************************
* *
* THIS ANSYS SOFTWARE PRODUCT AND PROGRAM DOCUMENTATION *
* INCLUDE TRADE SECRETS AND CONFIDENTIAL AND PROPRIETARY *
* PRODUCTS OF ANSYS, INC., ITS SUBSIDIARIES, OR LICENSORS. *
* The software products and documentation are furnished by *
* Ansys, Inc. or its subsidiaries under a software license *
* agreement that contains provisions concerning *
* non-disclosure, copying, length and nature of use, *
* compliance with exporting laws, warranties, disclaimers, *
* limitations of liability, and remedies, and other *
* provisions. The software products and documentation may be *
* used, disclosed, transferred, or copied only in accordance *
* with the terms and conditions of that software license *
* agreement. *
* *
* Ansys, Inc. is a UL registered *
* ISO 9001:2015 company. *
* *
***************************************************************
* *
* This product is subject to U.S. laws governing export and *
* re-export. *
* *
* For U.S. Government users, except as specifically granted *
* by the Ansys, Inc. software license agreement, the use, *
* duplication, or disclosure by the United States Government *
* is subject to restrictions stated in the Ansys, Inc. *
* software license agreement and FAR 12.212 (for non-DOD *
* licenses). *
* *
***************************************************************
*** WARNING *** CP = 0.405 TIME= 16:21:22
MISSING DOCUMENTATION FILE
DOCU LIST FILE = /ansys_inc/v241/ansys/gui/en-us/
MISSING FILE NAME = /__w/mapdl-docker-image-builder/.
***** MAPDL COMMAND LINE ARGUMENTS *****
INITIAL DIRECTORY = /tmp/tmp
RELEASE= BUILD= 24.1 UP20231106 VERSION=LINUX x64
CURRENT JOBNAME=file0 16:21:22 JAN 03, 2024 CP= 0.409
RUN SETUP PROCEDURE FROM FILE= /ansys_inc/v241/ansys/apdl/start.ans
/INPUT FILE= /ansys_inc/v241/ansys/apdl/start.ans LINE= 0
BEGIN:
from pymapdl.
Related Issues (20)
- Failed scheduled build HOT 1
- Remark on Documentation Notes for "PostProcessing.nodal_displacement(...)" and "PostProcessing.nodal_component_stress(...)" and maybe others? HOT 1
- Failed scheduled build HOT 3
- Failed scheduled build HOT 1
- ACCOPTION causes pymapdl run to fail HOT 7
- Failed scheduled build HOT 13
- Some examples are not plotting properly
- Better error handling HOT 2
- Failed scheduled build
- Failed scheduled build
- Python versions outdated
- CLI documentation is not updated
- Array parameters retrieval fail when the size is very big HOT 1
- We need a `mapdl.screenshot` command
- Plotting nodal displacement results in one node being selected after the plot, but only when using CINT for crack calculation.
- TRNOPT command is not updated
- Eliminate redundancies regarding ``PYMAPDL_START_INSTANCE``
- Failed scheduled build HOT 1
- PyMAPDL and HPC clusters
- Failed scheduled build HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymapdl.