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

Feature/Boundary conditions plotting #741

Closed
germa89 opened this issue Nov 29, 2021 · 3 comments · Fixed by #963
Closed

Feature/Boundary conditions plotting #741

germa89 opened this issue Nov 29, 2021 · 3 comments · Fixed by #963
Assignees

Comments

@germa89
Copy link
Collaborator

germa89 commented Nov 29, 2021

Currently there is no standard way to plot forces, displacement constraints, etc.

In APDL, the displacements are plotted like this:

image

Ideally we should have a way to plot the boundary conditions.

This might be a long (and difficult) one.

@germa89 germa89 self-assigned this Nov 29, 2021
@RomanIlchenko1308
Copy link
Contributor

RomanIlchenko1308 commented Dec 21, 2021

Hi @germa89,

Have you tried to use https://mapdldocs.pyansys.com/mapdl_commands/graphics/_autosummary/ansys.mapdl.core.Mapdl.pbc.html?highlight=mapdl%20pbc#ansys.mapdl.core.Mapdl.pbc ?

Mapdl.pbc(item='', key='', min_='', max_='', abs_='', **kwargs) - Shows boundary condition (BC) symbols and values on displays. [APDL Command: /PBC].

Thank you!

@germa89
Copy link
Collaborator Author

germa89 commented Dec 22, 2021

Hi @RomanIlchenko1308

The command you mentioned only works in MAPDL GUI. I tried in PyMAPDL and it does nothing. Maybe I'm missing something.

Eplot

image

Nplot

image

Code to replicate my test.

from ansys.mapdl.core import launch_mapdl
from ansys.mapdl.core import examples

mapdl = launch_mapdl(start_instance=True, port=50054)
mapdl.clear()
example = examples.vmfiles['vm101']
print(example)
mapdl.input(example)

mapdl.pbc('TEMP', 1)
mapdl.eplot()
mapdl.nplot() 

mapdl.exit()

@akaszynski
Copy link
Collaborator

This may not be so difficult.

Ideally we should have a way to plot the boundary conditions.

We just need a way to rapidly get the DOF constraints in a node-wise array. We get similar data from our get_array method, which used *VGET under the hood.

I don't see this information in https://www.mm.bme.hu/~gyebro/files/ans_help_v182/ans_cmd/Hlp_C_VGET_st.html, but there must be another way to get it efficiently.

Ping Mohamed K., he'll likely know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants