Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug located in MPCOPY and other commands which has unused field #3017

Open
4 tasks done
mikerife opened this issue Apr 19, 2024 · 5 comments
Open
4 tasks done

Bug located in MPCOPY and other commands which has unused field #3017

mikerife opened this issue Apr 19, 2024 · 5 comments
Assignees

Comments

@mikerife
Copy link

🤓 Before submitting the issue

🔍 Description of the bug

Use of MPCOPY results in TypeError as it has an unused field. Looks like it was fixed, or supposed to be, in prior pull: #1675

Received error using 0.68.1 and mapdl 24R1.

🕵️ Steps To Reproduce

The log will automatically be formatted as Python code! No need to type backticks.

💻 Which Operating System are you using?

Windows

🐍 Which Python version are you using?

3.10

💾 Which MAPDL version are you using?

24R1

📝 PyMAPDL Report

Show the Report!

# PASTE HERE THE OUTPUT OF `python -c "from ansys.mapdl import core as pymapdl; print(pymapdl.Report())"` here

📝 Installed packages

Show the installed packages!

# PASTE HERE THE OUTPUT OF `python -m pip freeze` here

📝 Logger output file

Show the logger output file.

# PASTE HERE THE CONTENT OF THE LOGGER OUTPUT FILE.

@mikerife mikerife changed the title Bug located in MPCOPY which has unused field Bug located in MPCOPY and other commands which has unused field Apr 19, 2024
@mikerife
Copy link
Author

The /post26 command ADD and QUOT still have problems due to multiple blank fields on the command. Also if the data is complex then QUOT using the NAME field returns machine zeros for complex variables.

@germa89
Copy link
Collaborator

germa89 commented Apr 24, 2024

Interesting... it seems to work for me:

>>> mapdl.mat(1)
>>> mapdl.mp("SONC", 1, 1500)  # sonc in m/s
>>> mapdl.mp("DENS", 1, 1000)  # Density in kg/m3
>>> mapdl.mpcopy(1, 2)

COPY MATERIAL        1  DENS  TO MATERIAL        2

 COPY MATERIAL        1  SONC  TO MATERIAL        2

The /post26 command ADD and QUOT still have problems due to multiple blank fields on the command. Also if the data is complex then QUOT using the NAME field returns machine zeros for complex variables.

I will need an example for testing and debugging this.

@mikerife
Copy link
Author

There is an unused/beta field in MPCOPY. So the command should really be mapdl.mpcopy('', 1, 2)

@germa89
Copy link
Collaborator

germa89 commented Apr 24, 2024

For reference: #3026 (comment)

GitHub
Given this APDL command: MPCOPY,--,matf,matt where: -- is an "unused" field or, in pythonic terms, an undocumented argument. This undocumented argument can serve different purposes: Maybe it is a d...

@germa89 germa89 self-assigned this Apr 24, 2024
@germa89
Copy link
Collaborator

germa89 commented Apr 26, 2024

This issue is locked until #3026 gets closure.

GitHub
Given this APDL command: MPCOPY,--,matf,matt where: -- is an "unused" field or, in pythonic terms, an undocumented argument. This undocumented argument can serve different purposes: Maybe it is a d...

@ansys ansys locked and limited conversation to collaborators Apr 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants