JeffWitz wrote:I think that it is not the good way to proceed as FreeCAD seems to go to multi-physics simulations.

It's only a test, to understand the pipeline. For sure there has to be a genericResult object too.

Dirichlet : set the quantities we want to compute at given nodes (First type),
Neumann : Set the derivative of the quantity at the nodes (Second type),
Cauchy : set both of them (Third type),
Robin : set both of them with a linear law (Third type).

I think there will be use-cases which need other kind of bc. So better try to do it in a more generic way.

@bernd thanks for this example. But I still do not understand why it isn't working in my case.
Consider this example. I have an analysis with a Box_Mesh. Now I want to add a result and set the temperature:

Yes stats are not set. Only displacement is filled...
Maybe we need another kind of result-object. I would like to have a result object which simple has a dict with all the result values. One node-based and one element based. (the element based isn't that important, but it is needed for some kind of analysis). The taskpanel for this result-object then has a dropdownlist (combobox) where the result for visualization can be selected. (Similar to the way how paraview works). But maybe this is more difficult as it involves c++ development...

yes, at some point we will try to do that. But I am not very deep into fenics. I think we will first try to do some simpler equations (really simple ones like shown in the picture). Getting the formulations for the full 3d linear continuum mechanics will involve some more work.

looo wrote:Yes stats are not set. Only displacement is filled...
Maybe we need another kind of result-object. I would like to have a result object which simple has a dict with all the result values. One node-based and one element based. (the element based isn't that important, but it is needed for some kind of analysis). The taskpanel for this result-object then has a dropdownlist (combobox) where the result for visualization can be selected. (Similar to the way how paraview works). But maybe this is more difficult as it involves c++ development...

I will try to post some examples soon.

sounds like an very interesting approach. Keep in mind in addition to the FreeCAD FEM Result TaskPanel the FreeCAD FEM VTK result plot tools are based on the FreeCAD FEM result object too. The Result Task Panel is very good to get a fast Result overview but if one really starts working with the results the vtk tools are indispensable.

In the provided example is 'gravity' induced force on the complete volume used and I tried to change this to the calculix-example used in FC.
But I struggled in the end with introducing a point load at the end of the beam.

For the 'gravity' or 'self weight' problem do match the results from calculix-FC and the Fenics script well (fine mesh with 'scalefactor = 1'), even if the solving time is much much higher for fenics.