Comments (3)
from pymapdl.
First I have added a return command to Reader.LoadCBD (return self.uGrid)
I have chosen to bypass Tests.Reader and include the DisplayResults in my main code.
So I have the following:
from pyansys import Tests
from pyansys import Reader
import vtk
from os.path import dirname, join, realpath
pth = dirname(realpath(file))
def DisplayResult():
fobj = Reader.ResultReader(join(pth, 'file.rst'))
ruGrid = fobj.LoadCDB(join(pth, 'HexBeam.cdb'))
fobj.PlotDisplacement(0)
return ruGrid
if name == 'main':
result = Reader.ResultReader('file.rst')
result.LoadCDB('HexBeam.cdb')
G = DisplayResult()
gw = vtk.vtkXMLPUnstructuredGridWriter()
gw.SetFileName('file.vtu')
gw.SetInputData(G)
gw.Write()
from pymapdl.
Just updated the code. See the example from the link below to save an archive file as a *.vtu file.
http://pyansys.readthedocs.io/en/latest/examples.html#loading-and-plotting-an-ansys-archive-file
from pymapdl.
Related Issues (20)
- convert_script returns a INF instead of "INF" on the SF command and 'type' instead of skipping /TYPE. HOT 2
- Failed scheduled build HOT 4
- Logging setup on bare import HOT 11
- Failed scheduled build HOT 1
- Unhandeled exception when using get_value to retrieve 'twsi' values. HOT 6
- Failed scheduled build
- Failed scheduled build HOT 1
- Remark on Documentation Notes for "PostProcessing.nodal_displacement(...)" and "PostProcessing.nodal_component_stress(...)" and maybe others? HOT 1
- Failed scheduled build HOT 3
- Failed scheduled build HOT 1
- ACCOPTION causes pymapdl run to fail HOT 7
- Failed scheduled build HOT 13
- Some examples are not plotting properly
- Better error handling
- Failed scheduled build
- Failed scheduled build
- Python versions outdated
- CLI documentation is not updated
- Array parameters retrieval fail when the size is very big HOT 1
- We need a `mapdl.screenshot` command
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymapdl.