Giter VIP home page Giter VIP logo

Comments (4)

akaszynski avatar akaszynski commented on May 25, 2024

It is. Actually, you can load everything from the result file even without a database provided the geometry is written to it (which is enabled by default).

At this point, it's just a matter of accessing the right element index tables. Can you provide me with a result file, the requested lookup, and a sample output from ANSYS? Similar to how this question was asked:
#17

from pymapdl.

MagaFem avatar MagaFem commented on May 25, 2024

Actually I did not want to use *GET with results, but instead with the number of nodes in a region to calculate the Force per node.
I wanted to do it somehow like this:

ansys.Nsel("S", "LOC", ...
ansys.Get("nNodes", "node","","count")
nNodes = ...
ansys.F("ALL", "FX", ForceTot/nNodes)

I have solved this with the following:

ansys.Nsel("S", "LOC", ...
ansys.Get("nNodes", "node","","count")
ansys.RunCommand("ForceTot="+str(ForceTot))
ansys.F("ALL", "FX", "ForceTot/nNodes")

from pymapdl.

akaszynski avatar akaszynski commented on May 25, 2024

If you wanted a pure python implementation, you might be better off using a nearest neighbor search to get the indices of the local nodes and then querying based on those nodes:
https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.spatial.KDTree.query.html

Still, it’s cool that you just used the ANSYS class. Did you get that working on Linux or Windows?

from pymapdl.

MagaFem avatar MagaFem commented on May 25, 2024

Thanks for the other implementation.

I am in Linux.

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.