Giter VIP home page Giter VIP logo

Comments (8)

akaszynski avatar akaszynski commented on May 25, 2024

Can you email me at [email protected]?

from pymapdl.

akaszynski avatar akaszynski commented on May 25, 2024

I'll work on this as soon as I get the rst file. Please include a text output of the results that you'd like me to achieve like in #17.

from pymapdl.

Shobeir-Gar avatar Shobeir-Gar commented on May 25, 2024

Thank you. I will send you the ANSYS rst file and the expected text output shortly. I am working on it.

from pymapdl.

Shobeir-Gar avatar Shobeir-Gar commented on May 25, 2024

Alex,

I emailed you the ANSYS rst file (v18.2) and the expected outputs.

Please let me know if you need any other info from me.

Thanks,
-Shobeir

from pymapdl.

akaszynski avatar akaszynski commented on May 25, 2024

Results for SHELL181 elements now match ANSYS output in both the element coordinate system and the global coordinate system. Updated in 0.32.4. See the documentation for ElementStress.

from pymapdl.

Shobeir-Gar avatar Shobeir-Gar commented on May 25, 2024

Alex,

Thanks for the update. This is really a good improvement. I removed the previous version and downloaded the updated 0.32.4. version and successfully reinstalled it through Anaconda distributor by using "pip install pyansys" command. However, I am still getting the previous results (mid-plane stress) and not the top and bottom surface stresses. Here is what I have

import numpy as np
import pyansys
result=pyansys.ResultReader('Test.rst')
estress, elem, enode= result.ElementStress(0,False)

When I try to change the coordinate system by typing
estress, elem, enode= result.ElementStress(0,False,True)

I get the following error:
TypeError: ElementStress() takes from 2 to 3 positional arguments but 4 were given

It seems that my pyansys has not been updated. Am I missing anything here?

Thanks,
-Shobeir

from pymapdl.

Shobeir-Gar avatar Shobeir-Gar commented on May 25, 2024

Alex,

Never mind about my previous comment. I resolved the installation issue.

Every thing works perfect now. Thank you so much.

Just a couple of suggestions for future considerations:

(1) Might be good to include an option to extract the stresses for certain element numbers and not for all the available elements.

(2) I guess the updated version works fine for all Shell elements and not only for Shell 181, is this correct? I can test it and let you know.

Thanks again.
Best,
-Shobeir

from pymapdl.

akaszynski avatar akaszynski commented on May 25, 2024

You can create a mask or loop through specific elements if you’d like only the stresses of those elements. I suppose there would be a speed up if you only wanted the stress of certain elements. If it’s critical, let me know.

I only programmed it for SHELL181. If you send me a rst file with a different shell type I can add it to the source. I’d sure it won’t be much code on my side, but I like to have tests to support code and I don’t usually work with shells.

from pymapdl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.