Giter Site home page Giter Site logo

[GeoMechanicsApplication] Bug: Initialization in test_helper of staged analysis has side-effects on available variables about kratos HOT 3 OPEN

rfaasse avatar rfaasse commented on June 9, 2024
[GeoMechanicsApplication] Bug: Initialization in test_helper of staged analysis has side-effects on available variables

from kratos.

Comments (3)

rfaasse avatar rfaasse commented on June 9, 2024 1

Moving this to the backlog to not lose sight of it, but moving it out of this sprint.

FYI @indigocoral

from kratos.

WPK4FEM avatar WPK4FEM commented on June 9, 2024

Curiously the script applications\GeoMechanicsApplication\MainKratos_multiple_stages_template.py shows the fixed way.

The Kratos_stages.py script that is shared around and the one with stages in separate directories share the "wrong" way.
These are found in applications\GeoMechanicsApplication\python_scripts\ run_multiple_stages.py and run_multiple_separated_stages.py
These should be "fixed".

I think we can safely switch to the proposed way.

from kratos.

rfaasse avatar rfaasse commented on June 9, 2024

While implementing the fix, as found in the description, we encountered the following issue (and failing test):
It is not possible, after running a single stage (which initializes the elements and nodes etc in the model) to add new nodal solution step variables:
Image

Therefore we have three options as far as I can see:

  1. We use the current way of constructing stages, which will not crash when an earlier stage defines less dofs than a later stage. However, this will result in the described bug: all stages will have all dofs.
  2. We change the current way of constructing stages to the proposed way in the description, which means the situation in point 1 will crash, but when stage 1 has more dofs than stage 2, these will not be removed, so the amount of dofs still won't always be consistent with the input files. However, in the 'bug' scenario at least the user would be aware that something is inconsistent.
  3. We discuss the possibility of adding functionality to the modelpart to add and remove dofs between stages. This would be changing 'core' functionality, so in my opinion this would be out of scope for a quick fix of this bug.

from kratos.

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.