OOFem

About the development of the FEM module/workbench.

Moderator: bernd

User avatar
HarryvL
Posts: 1043
Joined: Sat Jan 06, 2018 7:38 pm

Re: OOFem

Postby HarryvL » 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:
User avatar
HarryvL
Posts: 1043
Joined: Sat Jan 06, 2018 7:38 pm

Re: OOFem

Postby HarryvL » 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?
User avatar
HarryvL
Posts: 1043
Joined: Sat Jan 06, 2018 7:38 pm

Re: OOFem

Postby HarryvL » 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 :?
Jee-Bee
Posts: 1950
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: OOFem

Postby Jee-Bee » 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.
User avatar
HarryvL
Posts: 1043
Joined: Sat Jan 06, 2018 7:38 pm

Re: OOFem

Postby HarryvL » Wed Oct 10, 2018 5:58 am

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
Posts: 8323
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: OOFem

Postby bernd » Wed Oct 10, 2018 6:38 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?
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
Posts: 8323
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: OOFem

Postby bernd » Wed Oct 10, 2018 6:40 am

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
Posts: 2918
Joined: Wed Oct 05, 2011 7:36 am

Re: OOFem

Postby ickby » 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.
User avatar
bernd
Posts: 8323
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: OOFem

Postby bernd » Wed Oct 10, 2018 9:36 am

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

Re: OOFem

Postby bernd » Wed Oct 10, 2018 9:44 am

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 ...