Skip to content

not working as expected #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pironman opened this issue Apr 1, 2025 · 6 comments
Open

not working as expected #48

pironman opened this issue Apr 1, 2025 · 6 comments

Comments

@pironman
Copy link

pironman commented Apr 1, 2025

I'm usind this code with the module FEMbyGEN on freecad.
I try to optimize a motorcycle footrest, and this is the results:

Image
Image

so looks like the best shape is two plates. I think this is strange, so I made a simulation with 2 plates, and a simulation with 2 pipes, as must be correct:

Image
Image

using pipes the deformation is way lower, so stiffness way higher, and the weight is the same.
So I think something on this code don't work as expected

@pironman
Copy link
Author

pironman commented Apr 2, 2025

I add more information.
I try to optimize this shape:

Image

and this is the result:

Image

Basically, if I made the FEM, and with filter I remove the parts with low Von Mises stress, I obtain the same result:

Image

So I'm sure the optimization is not working for some reason.

I'm using FreeCad 1.0.0 on Windows 11

@fandaL
Copy link
Collaborator

fandaL commented Apr 2, 2025

Can you upload the log file from the working directory to see detailed settings?

@pironman
Copy link
Author

pironman commented Apr 3, 2025

FEMMeshGmsh.log.zip

do you mean this file?

thank you

@fandaL
Copy link
Collaborator

fandaL commented Apr 3, 2025

Yes. Parameters seems analogical to what I have when using beso_fc_gui except domain_material values. In the input settings in beso_conf.py , there should be an input like this:

domain_density[elset_name] = [7.9e-15, 7.9e-9]
domain_material[elset_name] = ['*ELASTIC\n0.21, 0.3\n*DENSITY\n7.9e-15\n',
                               '*ELASTIC\n210000, 0.3\n*DENSITY\n7.9e-9\n']

Which corresponds to the "void" material with E = 0.21 MPa, nu = 0.3 and density 7.9e-15 t/mm^3
and "solid" material with E = 210000 MPa, nu = 0.3 and density 7.9e-9 t/mm^3.
The python syntax in the brackets is later used to write material inputs to the CalculiX files.

Of course you can change material values, just keep "void" material (first in the bracket) with much smaller elastic modulus and density (e.g. million times).

@pironman
Copy link
Author

pironman commented Apr 4, 2025

ok, so I think this is the problem: I've installed FEMbyGEN using the addon manager inside freecad, and there isn't the file beso_conf.py.
These are the files inside the addon folder:

Image

@fandaL
Copy link
Collaborator

fandaL commented Apr 4, 2025

I use beso code from this repository, but FEMbyGEN uses modified code. The content of domain_material variable seems to be intentionally different, which means that the issue might be in something completely different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants