slice plane when extracting results
See original GitHub issueFirst, great work with pyansys!
I have a code that, for a given section of my 3D model, I extract the maximum temperatures of that section, in my thermal transient analysis. Its like a slice tool.
NSEL,S,LOC,Z,0.045-TOL,0.045+TOL
!===================
*GET,num_nos,NODE,0,COUNT
*DIM,vet_nos,array,num_nos
*VGET,vet_nos,NODE,,NLIST
/POST26
*CREATE,ansuitmp
*CFOPEN,'my_file','txt',' ',APPEND
*DO,ij,1,num_nos,1
N=vet_nos(ij)
NSOL,2,N,TEMP
STORE
*GET,XX,NODE,N,LOC,X
*GET,YY,NODE,N,LOC,Y
*GET,MAX_TEMP,vari,2,extrem,vmax
*VWRITE,XX,YY,MAX_TEMP,N,
(2F12.8,2F10.2)
*ENDDO
*CFCLOS
*END
/INPUT,ansuitmp
Is it possible to retrieve the data in a similar way with pyansys? (don’t need to cfopen, just retrieve data from the loop at given section in NSEL)
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
slice plane when extracting results · Issue #265 · pyansys/pymapdl ...
First, great work with pyansys! I have a code that, for a given section of my 3D model, I extract the maximum temperatures...
Read more >Extracting exact coordinates of slice intersecting with the domain
Hi Leonidas, To extract a slice, you want to make sure the slice is in the desired location. Then you go to Data...
Read more >extract data from a cut plane - python - Stack Overflow
this is what I would do, to write out the data: self._reader.GetOutput().GetPointData().SetActiveScalars("Intensity") planeCut = vtk.
Read more >EXTRACT_SLICE - L3HarrisGeospatial.com
The EXTRACT_SLICE function extracts a specified planar slice of volumetric data. This function allows for a rotation or vector form of the slice...
Read more >How to extract results from a cut plane in Simulation CFD
Solution: Results can be extracted from a cut plane in a few ways. Using the bulk calculator (from the ribbon) will allow you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you so much my friend! This is exactly what I wanted. And the animation was perfect, really good.
I will continue to develop my models and give feedback on pyansys. If you need more sample files to post to pyansys documents, feel free to contact me.
I just edited the last line to
single_slice.plot(scalars='temperature', show_edges=True)
Now it works 😃 !