beso icon indicating copy to clipboard operation
beso copied to clipboard

Whenever I am trying to run Beso on my project, I keep getting the error: RuntimeWarning: invalid value encountered in double_scalars difference_last.append(abs(FI_mean[i] - FI_mean[i-last]) / FI_mean[i])

Open lokitkhemka opened this issue 2 years ago • 3 comments

My BESO configuration file and the FreeCAD FEM input files are: beso_conf - Copy.txt FEMMeshNetgen_inp.txt

The input geometry is as follows: FreeCAD_2qzRIp8Uwd

I am looking to see how the optimal output shape will be. I feel like my BESO configuration is wrong. Any help is appreciated.

lokitkhemka avatar Jun 26 '23 12:06 lokitkhemka

Sorry for the late response.

The model is not loaded during the optimization. It finishes after 5 iterations, because there is 0 strain energy density and 0 FI due to 0 stress. In this model, it happened because *DENSITY is not defined in the beso_config.py file so the weight of the material cannot load it and there is no other loads. There should be

domain_material[elset_name] = ["*ELASTIC \n2.3e-7,  0.37\n*DENSITY\n1.06e-15\n", 
                               "*ELASTIC \n0.0023,  0.37\n*DENSITY\n1.06e-09\n"]

instead of

domain_material[elset_name] = ["*ELASTIC \n2.3e-7,  0.37"
                               "*ELASTIC \n0.0023,  0.37]

(considering ABS density as defined in FreeCAD 1.06e-09 t/mm^3)

If you would like to obtain results which are not only for testing the code, it would require a finer mesh.

fandaL avatar Jul 26 '23 21:07 fandaL

My BESO configuration file and the FreeCAD FEM input files are: beso_conf - Copy.txt FEMMeshNetgen_inp.txt

The input geometry is as follows: FreeCAD_2qzRIp8Uwd

I am looking to see how the optimal output shape will be. I feel like my BESO configuration is wrong. Any help is appreciated.

I have tried the same and getting the iteration count as 83 but it dosent respond further. MicrosoftTeams-image (2)

supriyachaugule1 avatar Oct 26 '23 07:10 supriyachaugule1

On some computers, Figure windows blocked continuation, but after closing them, it continues. If it made 83 iterations, there should be some result files in your working directory - maybe set of *state1.inp files which you can import to FreeCAD, or resulting_states.vtk which can be opened in Paraview, and a *.log file

fandaL avatar Oct 26 '23 20:10 fandaL