OOFem

About the development of the FEM module/workbench.

Moderator: bernd

nitramkaroh
Posts: 1
Joined: Thu Mar 21, 2019 9:54 am

Re: OOFem

Postby nitramkaroh » Thu Mar 21, 2019 10:06 am

Hi guys, I am one of OOFEM developers and the integration of OOFEM into FreeCAD is really great. If you need any help with OOFEM input file structure or anything else I would be happy to help.
User avatar
bernd
Posts: 7757
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: OOFem

Postby bernd » Thu Mar 21, 2019 10:53 am

Hi and welcome to FreeCAD FEM

nitramkaroh wrote:
Thu Mar 21, 2019 10:06 am
If you need any help with OOFEM input file structure or anything else I would be happy to help.
you helped already :) http://www.oofem.org/forum/viewtopic.php?id=1804

nitramkaroh wrote:
Thu Mar 21, 2019 10:06 am
Hi guys, I am one of OOFEM developers and the integration of OOFEM into FreeCAD is really great.
thanks for the flowers :D

FYI: Just the basics work, but it works! Means export of planestress elements (I used PlaneStress2D example from manual to set up the input file writer) and tet10 elements as well as constraint fixed and constraint displacement and costraint force (on vertieces only). Neither multiple materials nor nonlinear materials etc.

Eventually this was the most challanging part for someone does not knowing FreeCAD. Extending the oofem writer as it is just ATM is not difficault for someone knowing Python.

What you could do is: "Give it a try!!!" See https://github.com/berndhahnebach/FreeC ... s/femoofem Until it is not merged into FreeCAD master I regulary rebase this branch on FreeCAD master.
- compile the branch
- start FreeCAD
- set the path to oofem binary in preferences
- run the attached code and view results ...

Code: Select all

from femexamples.manager import *
doc = run_ccx_cantilevernodeload(None, 'oofem')
doc = run_ccx_cantileverprescribeddisplacement(None, 'oofem')
doc = run_oofem_planestress2d()
EDIT: from 26. March 2019 it should be:

Code: Select all

from femexamples.manager import *
doc = run_ccx_cantilevernodeload('oofem')
doc = run_ccx_cantileverprescribeddisplacement('oofem')
doc = run_oofem_planestress2d()
BTW: The oofem integration is more than just another solver. ATM it is the documentation on "How to integrate a new solver in FreeCAD FEM"

cheers bernd
User avatar
bernd
Posts: 7757
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: OOFem

Postby bernd » Thu Mar 21, 2019 11:37 am

bernd wrote:
Thu Mar 21, 2019 10:53 am
BTW: The oofem integration is more than just another solver. ATM it is the documentation on "How to integrate a new solver in FreeCAD FEM"
Thus I rebase fixes and changes to the approprate commits. Means as long as the branch is not in FreeCAD master the git history could (will) change.
User avatar
Kunda1
Posts: 4405
Joined: Thu Jan 05, 2017 9:03 pm

Re: OOFem

Postby Kunda1 » Thu Mar 21, 2019 10:03 pm

nitramkaroh wrote:
Thu Mar 21, 2019 10:06 am
Hi guys, I am one of OOFEM developers and the integration of OOFEM into FreeCAD is really great. If you need any help with OOFEM input file structure or anything else I would be happy to help.
Beside what @bernd mentions, perhaps it would be beneficial to get OOFem out in to the package ecosystem. Currently nothing returns when one searches OOFem on Repology.org
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features