OOFem

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
User avatar
HarryvL
Veteran
Posts: 1275
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: OOFem

Post by HarryvL »

Plenty of changes (https://github.com/HarryvL/FreeCAD/tree/assess) compared to my forked master, but so far "no show" of OOFEM solver object in the Fem>Solve drop down menu :lol:
User avatar
HarryvL
Veteran
Posts: 1275
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: OOFem

Post by HarryvL »

HarryvL wrote: Tue Oct 09, 2018 9:01 pm Plenty of changes (https://github.com/HarryvL/FreeCAD/tree/assess) compared to my forked master, but so far "no show" of OOFEM solver object in the Fem>Solve drop down menu :lol:
I guess I still need to add a menu item here ... https://github.com/HarryvL/FreeCAD/blob ... #L121-L134

If so, why is there not also an entry for Z88, whereas it pops up in the Fem>Solve drop-down menu?
User avatar
HarryvL
Veteran
Posts: 1275
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: OOFem

Post by HarryvL »

HarryvL wrote: Wed Oct 10, 2018 4:19 am
HarryvL wrote: Tue Oct 09, 2018 9:01 pm Plenty of changes (https://github.com/HarryvL/FreeCAD/tree/assess) compared to my forked master, but so far "no show" of OOFEM solver object in the Fem>Solve drop down menu :lol:
I guess I still need to add a menu item here ... https://github.com/HarryvL/FreeCAD/blob ... #L121-L134

If so, why is there not also an entry for Z88, whereas it pops up in the Fem>Solve drop-down menu?
And I guess I missed one here:

https://github.com/HarryvL/FreeCAD/blob ... #L875-L880

A lot of guesswork :?
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: OOFem

Post by Jee-Bee »

Once i get a tip of @bernd (he is kind of grep master) for searching terms in some files/ folders if some other exist
bernd wrote: Fri Feb 10, 2017 3:46 pm

Code: Select all

$
$ git checkout remotes/jee-bee/bucklebranch
Note: checking out 'remotes/jee-bee/bucklebranch'.
...
HEAD ist jetzt bei ed9e707... few bug fixes and typos
$
$ grep -r EigenmodesCount
src/Mod/Fem/FemTools.py:                elif not hasattr(self.solver, "EigenmodesCount"):
src/Mod/Fem/FemTools.py:                    message += "Frequency analysis: Solver has no EigenmodesCount.\n"
src/Mod/Fem/Gui/DlgSettingsFemCcx.ui:             <cstring>EigenmodesCount</cstring>
src/Mod/Fem/TestFem.py:        self.solver_object.EigenmodesCount = 10
src/Mod/Fem/TestFem.py:    fea.solver.EigenmodesCount = 1  # we should only have one result object
$ 
Does this helps ? There are still a few in your bucklebranch. I assume the one which produces the error is in the "def check_prerequisites(self):" of FemTools but I did not have a closer look.
User avatar
HarryvL
Veteran
Posts: 1275
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: OOFem

Post by HarryvL »

Jee-Bee wrote: Wed Oct 10, 2018 4:42 am Once i get a tip of @bernd (he is kind of grep master) for searching terms in some files/ folders if some other exist
bernd wrote: Fri Feb 10, 2017 3:46 pm

Code: Select all

$
$ git checkout remotes/jee-bee/bucklebranch
Note: checking out 'remotes/jee-bee/bucklebranch'.
...
HEAD ist jetzt bei ed9e707... few bug fixes and typos
$
$ grep -r EigenmodesCount
src/Mod/Fem/FemTools.py:                elif not hasattr(self.solver, "EigenmodesCount"):
src/Mod/Fem/FemTools.py:                    message += "Frequency analysis: Solver has no EigenmodesCount.\n"
src/Mod/Fem/Gui/DlgSettingsFemCcx.ui:             <cstring>EigenmodesCount</cstring>
src/Mod/Fem/TestFem.py:        self.solver_object.EigenmodesCount = 10
src/Mod/Fem/TestFem.py:    fea.solver.EigenmodesCount = 1  # we should only have one result object
$ 
Does this helps ? There are still a few in your bucklebranch. I assume the one which produces the error is in the "def check_prerequisites(self):" of FemTools but I did not have a closer look.
Thanks @ Jee-Bee
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: OOFem

Post by bernd »

HarryvL wrote: Wed Oct 10, 2018 4:19 am
HarryvL wrote: Tue Oct 09, 2018 9:01 pm Plenty of changes (https://github.com/HarryvL/FreeCAD/tree/assess) compared to my forked master, but so far "no show" of OOFEM solver object in the Fem>Solve drop down menu :lol:
I guess I still need to add a menu item here ... https://github.com/HarryvL/FreeCAD/blob ... #L121-L134

If so, why is there not also an entry for Z88, whereas it pops up in the Fem>Solve drop-down menu?
because it is here https://github.com/HarryvL/FreeCAD/blob ... h.cpp#L252

z88 is missing above because these lines define the tool bar and z88 has no tool bar icon only a menue
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: OOFem

Post by bernd »

HarryvL wrote: Wed Oct 10, 2018 4:28 am
HarryvL wrote: Wed Oct 10, 2018 4:19 am
HarryvL wrote: Tue Oct 09, 2018 9:01 pm Plenty of changes (https://github.com/HarryvL/FreeCAD/tree/assess) compared to my forked master, but so far "no show" of OOFEM solver object in the Fem>Solve drop down menu :lol:
I guess I still need to add a menu item here ... https://github.com/HarryvL/FreeCAD/blob ... #L121-L134

If so, why is there not also an entry for Z88, whereas it pops up in the Fem>Solve drop-down menu?
And I guess I missed one here:

https://github.com/HarryvL/FreeCAD/blob ... #L875-L880

A lot of guesswork :?
this is needed too. Without this workbench.cpp does not know the command which iss added to the menue and toolbar by workbench.cpp
ickby
Veteran
Posts: 3116
Joined: Wed Oct 05, 2011 7:36 am

Re: OOFem

Post by ickby »

bernd wrote: Tue Oct 09, 2018 2:27 pm But we can only export to vtk file format a FreeCAD FEM result ATM. We can not export a vtk pipeline to vtk even this would be not difficult to implement, because it just need to be writen. BTW, stefan would be something very easy to tackle down for you ?!
Yes, sure, I think this are few lines of code only. I will have a look at this too when I find time to tackle the VTK and node numbering issue we talked about.
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: OOFem

Post by bernd »

@HarryvL: this may bei helpful too in the regbard of adding new command to FreeCAD FEM git commit 7d7a02e
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: OOFem

Post by bernd »

ickby wrote: Wed Oct 10, 2018 7:06 am
bernd wrote: Tue Oct 09, 2018 2:27 pm But we can only export to vtk file format a FreeCAD FEM result ATM. We can not export a vtk pipeline to vtk even this would be not difficult to implement, because it just need to be writen. BTW, stefan would be something very easy to tackle down for you ?!
Yes, sure, I think this are few lines of code only. I will have a look at this too when I find time to tackle the VTK and node numbering issue we talked about.
issue #3628 and some helpful links ...
Post Reply