Closed mecaFEA closed 8 months ago
Assigning this to @clatapie
I have understood that the stiffness matrix is organized arcording to the element number. In my case is element number 1 and after 6. How can i know the order in my matrix?
@mecaFEA The stiffness matrix is ordered by degree-of-freedom numbering. The node and element ordering during solution can change relative to the FEM ordering. If you want to compare the MAPDL solution to the Pymath you will need to get the mapping vector and apply it to the Pymath result. See here
This is not a bug, just a slight misunderstanding. mike
I remember there was an example about mapping between both somewhere... @clatapie ?
@clatapie @germa89 There are examples here and here (1st and 2nd examples). The 'node-to-solve' mapping matrix cannot be exported. As far as I can tell you will need to work with the Mechanical APDL dev's to be able to allow this to be exported. Or create a routine to read them from the full file. Mike
Closing issue then. @mecaFEA feel free to reopen if more info is required.
🤓 Before submitting the issue
pip install --upgrade --upgrade-strategy eager ansys-mapdl-core
in your activated virtual environment.🔍 Description of the bug
Hello,
I want to export the matrix vector and the force. Then i want to solve the linear equation by myself K*X =F.
This is the exemple:
The force vector will be like this F = [ 0 0 NODE 4 Fz ....], we will not have the node at the boundary conditions as they will embed. as there is a Force at node 4, 5 and 6 and node 1, 2, 3 are embed. The begin of my vector force normaly will be like this:
F = [ 0 0 Fz 0 0 Fz 0 0 Fz ....]
But when i import the full file with pymath library the begin of the force vector is like this :
0.000000000000000000e+00 0.000000000000000000e+00 -1.000000000000000000e+01 0.000000000000000000e+00 0.000000000000000000e+00 -1.000000000000000000e+01 0.000000000000000000e+00 0.000000000000000000e+00 0.000000000000000000e+00 0.000000000000000000e+00
The force at node are not at the good place for the others vector. So i don't know if the matrice K is well assembled
Consequently, when i solve U = K-1 * F i have not the good result. I transmit you my code that i used toi generate the mesh and solve the equation.
Thanks in advance
🕵️ Steps To Reproduce
💻 Which Operating System are you using?
None
🐍 Which Python version are you using?
None
📝 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 ```📝 Logger output file
Show the logger output file.
```text # PASTE HERE THE CONTENT OF THE LOGGER OUTPUT FILE. ```