ansys / ansys/pymapdl-reader

plot is not the same between APDL and Pymapdl_reader

Open
#336 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
60
Forks
32
Avg merge
5h 50m
Merged PRs (30d)
8

Description

### 🤓 Before submitting the issue

- [X] I have visited the [Troubleshooting section](https://mapdl.docs.pyansys.com/troubleshoot/index.html).
- [X] I have searched among the [existing issues](https://github.com/ansys/pymapdl/issues?q=).
- [X] I am using a [Python virtual environment](https://docs.python.org/3/library/venv.html).
- [X] I am using the [latest version of PyMAPDL](https://github.com/ansys/pymapdl/releases) and its dependencies (fully updated virtual environment). You can update them using ``pip install --upgrade --upgrade-strategy eager ansys-mapdl-core`` in your activated virtual environment.

### 🔍 Description of the bug

Hello everybody,

When i plot my rst file with pyansys, it is not the same result as APDL plotting
![apdl](https://github.com/ansys/pymapdl/assets/102184729/9eff2a8b-4b13-44ec-bb45-aabe6ebb3615)

![pyansys](https://github.com/ansys/pymapdl/assets/102184729/f1acb57b-2aa8-43ac-9d6c-c6f68e811204)
Thanks in advance for your help

### 🕵️ Steps To Reproduce

```Python
from ansys.mapdl import reader as pymapdl_reader

model = "C:/test_ansys/MODEL.rst"
result = pymapdl_reader.read_binary(model)
print(result)
result.plot_nodal_solution(0, 'norm', label='Displacement')
```

### 💻 Which Operating System are you using?

Windows

### 🐍 Which Python version are you using?

3.10

### 📝 PyMAPDL Report

Show the Report!

```text

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

```

### 📝 Installed packages

Show the installed packages!

```text

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

```

I have attached the .rst file here:
[MODEL.txt](https://github.com/ansys/pymapdl/files/13181637/MODEL.txt)

Just change the extension ".txt" to ".rst" ( github doesn't support .rst file)

### 📝 Logger output file

Show the logger output file.

```text

# PASTE HERE THE CONTENT OF THE LOGGER OUTPUT FILE.

```

Contributor guide

Open the contributing guide

Research direction

Start with the reproduced call to result.plot_nodal_solution(0, 'norm', label='Displacement') and inspect the attached MODEL.txt result file. Compare its output with the APDL screenshots to identify which plotting behavior differs, then add a regression check showing that the Python plot matches the expected APDL result.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.