GithubHelp home page GithubHelp logo

"Unhandled unknown exception caught in selection observer" when trying to apply a FEM constraint to a revolved B-spline about freecad HOT 9 CLOSED

FEA-eng avatar FEA-eng commented on May 28, 2024
"Unhandled unknown exception caught in selection observer" when trying to apply a FEM constraint to a revolved B-spline

from freecad.

Comments (9)

FEA-eng avatar FEA-eng commented on May 28, 2024 1

Can you create another model and apply FEM constraints when it is based on a revolution of a sketch with a BSpline, created in FC?

Good point. It turns out that I can't. I attached a FreeCAD file. But it's interesting that the same happens with STEP geometry where B-spline was used in another software.

Then the issue is more general and serious than I expected.

B-spline revolved FEM.zip

from freecad.

maxwxyz avatar maxwxyz commented on May 28, 2024

how did you model the egg, do you have the FCStd? I'm not sure if this is only FEM related?

from freecad.

FEA-eng avatar FEA-eng commented on May 28, 2024

how did you model the egg, do you have the FCStd? I'm not sure if this is only FEM related?

I modeled it in another software and can only export it to neutral format and recreate if needed (I've tried it 0.22 too - just downgraded in Draft and converted the wires to a sketch which I then revolved in PD - same errors occur). It seems to be FEM-specific because other operations, e.g. in Part or Part Design, work normally on this geometry.

from freecad.

maxwxyz avatar maxwxyz commented on May 28, 2024

I have no idea whats wrong, when downgrading and creating a sketch I can create a revolution but get the same error. When trying to change the sketch to a simple triangle I cannot add a revolution or even a pad after I've created an Analysis container. Just a bunch of errors

from freecad.

FEA-eng avatar FEA-eng commented on May 28, 2024

Yeah, it's really strange. I've even tried with a simple sphere exported to STEP but this one is working correctly. So either the egg shape is so specific and causes issues because of its curvature or the model is broken starting even from the sketch but it shouldn't be the case. I can use this model normally in all other ways and only can't apply FEM constraints to it.

from freecad.

maxwxyz avatar maxwxyz commented on May 28, 2024

Can you create another model and apply FEM constraints when it is based on a revolution of a sketch with a BSpline, created in FC?

from freecad.

maxwxyz avatar maxwxyz commented on May 28, 2024

Can you rephrase it then? Seems like FEM constraints can just handle plane or rounded faces, no irregular surfaces?

from freecad.

FEA-eng avatar FEA-eng commented on May 28, 2024

Seems like FEM constraints can just handle plane or rounded faces, no irregular surfaces?

Not exactly, padded B-spline works. Even with fillets. Maybe because there are more faces with less curvature. This is really strange. I'm surprised it has never been detected.

Since it comes from Selection.cpp, it might be a deeper issue than just related to FEM constraints. I wonder what else could trigger it. I can create e.g. a datum plane or a subshapebinder based on those problematic faces.

from freecad.

wwmayer avatar wwmayer commented on May 28, 2024

https://github.com/FreeCAD/FreeCAD/blob/main/src/Mod/Fem/App/FemConstraint.cpp#L433

A null vector cannot be normalized and OCC throws an exception that isn't handled anywhere inside the FEM module.

from freecad.

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.