Giter VIP home page Giter VIP logo

Comments (6)

germa89 avatar germa89 commented on June 20, 2024

I see the error:


 *** WARNING ***                         CP =      17.192   TIME= 11:37:20
 Material for this node can not be determined.  No failure criteria      
 calculations done at this node in POST1.                                

 *** WARNING ***                         CP =      17.192   TIME= 11:37:20
 Material for this node can not be determined.  No failure criteria      
 calculations done at this node in POST1.                                

 *** WARNING ***                         CP =      17.193   TIME= 11:37:20
 Material for this node can not be determined.  No failure criteria      
 calculations done at this node in POST1.                                

 *** WARNING ***                         CP =      17.193   TIME= 11:37:20
 Material for this node can not be determined.  No failure criteria      
 calculations done at this node in POST1.                                

 *** WARNING ***                         CP =      17.193   TIME= 11:37:20
 Material for this node can not be determined.  No failure criteria      
 calculations done at this node in POST1.                                

 *** WARNING ***                         CP =      17.193   TIME= 11:37:20
 Material for this node can not be determined.  No failure criteria      
 calculations done at this node in POST1.                                

 ************************************************************************
 The number of ERROR and WARNING messages exceeds 20.                    
 Additional messages suppressed.  See ( /local/simulation/file.err )     
 for suppressed messages.                                                
 ************************************************************************

 *GET  __TEMP__  FROM  NODE      9  ITEM=S    TWSI  VALUE=  225.000000

but surprisingly the value is correct 225.00.

I am not sure how to get rid of the warnings without silence them forever.

from pymapdl.

germa89 avatar germa89 commented on June 20, 2024

@mikerife @koubaa

I have a question regarding design:

If my model is clear (no nodes defined), the following query (get maximum define node ID):

mapdl.get_value("node", 0, "num", "maxd")

should:
a) Return 0.0?
b) Raise a No nodes defined error?

It should be noticed that MAPDL prints already a NOTE message:

There are no NODES defined

from pymapdl.

mikerife avatar mikerife commented on June 20, 2024

@mikerife @koubaa

I have a question regarding design:

If my model is clear (no nodes defined), the following query (get maximum define node ID):

mapdl.get_value("node", 0, "num", "maxd")

should: a) Return 0.0? b) Raise a No nodes defined error?

It should be noticed that MAPDL prints already a NOTE message:

There are no NODES defined

I would prefer that 0.0 be returned but also keep the Note message.

from pymapdl.

germa89 avatar germa89 commented on June 20, 2024

How to keep the note message? We currently dont store any.

There are about 3 type of messages in MAPDL (error, warning and note), which we have, quite relaxed, related them to:

MAPDL PyMAPDL
Error Exception
Warning Warning
Note Nothing

But as I said, this relationship is not enforced 1-to-1. Because MAPDL behaviour on Error is not very standarized. Some errors make MAPDL to exit, sometimes, it just keep going. Some errors are very redundant.

I feel I should probably enforce the following:

MAPDL PyMAPDL
Error Exception
Warning Warning
Note print

But I think it could make PyMAPDL very verbose.

Other option could be trying to parse everything from MAPDL and create a sort of message queue. We can raise errors from there, and let the user check this queue for the rest of the messages.
But, MAPDL messages are not super standardised (sometimes you don't know when the error message ends).

from pymapdl.

mikerife avatar mikerife commented on June 20, 2024

@germa89
Adding a "FCTYP,ADD,TWSI" to the input file is the...more correct approach and does away with the issue. Sorry I missed that yesterday. Thing to watch out for is FCTYP is a post processing command while FC can be used in either /prep7 or /post1. I prefer to keep commands together that act together, if possible, so I redid the script and moved the FC to post processing and now the script runs as expected.
MIke

from pymapdl.

germa89 avatar germa89 commented on June 20, 2024

Let's keep approach A.

But definitely, this question about the messsages will keep popping up in the future.

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.