OOFem
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
-
- Posts: 3
- Joined: Thu Mar 21, 2019 9:54 am
Re: OOFem
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.
Re: OOFem
Hi and welcome to FreeCAD FEM
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 ...
EDIT: from 26. March 2019 it should be:
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
you helped already http://www.oofem.org/forum/viewtopic.php?id=1804nitramkaroh 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.
thanks for the flowersnitramkaroh 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.
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()
Code: Select all
from femexamples.manager import *
doc = run_ccx_cantilevernodeload('oofem')
doc = run_ccx_cantileverprescribeddisplacement('oofem')
doc = run_oofem_planestress2d()
cheers bernd
Re: OOFem
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.
Re: OOFem
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.orgnitramkaroh 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.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: OOFem
rebased my oofem branch on latest FreeCAD master and solved all conflicts. Furthermore the history was rewritten. All oofem commits should be according FEM code convention.
https://github.com/berndhahnebach/FreeC ... s/femoofem
https://github.com/berndhahnebach/FreeC ... s/femoofem
Re: OOFem
rebased my oofem branch to latest FreeCAD dev, solved all conflicts and make the unit tests run again.
https://github.com/berndhahnebach/FreeC ... s/femoofem
https://github.com/berndhahnebach/FreeC ... s/femoofem
- ebrahim raeyat
- Posts: 621
- Joined: Sun Sep 09, 2018 7:00 pm
- Location: Iran
- Contact:
Re: OOFem
Thanks. I must study rebasing with github and then i continue this waybernd wrote: ↑Wed Feb 19, 2020 2:24 pm rebased my oofem branch to latest FreeCAD dev, solved all conflicts and make the unit tests run again.
https://github.com/berndhahnebach/FreeC ... s/femoofem
-
- Posts: 3
- Joined: Thu Mar 21, 2019 9:54 am
Re: OOFem
Hi,
I am trying to compile FreeCAD with oofem capabilities.
However, I got several errors during the compilation.
1. I had to add
into ../../src/Mod/Part/App/FeatureFillet.cpp
2. I got
To move further, I solved this by commenting the appropriate lines.
3. I got stuck with the last one
Could you please advise me, how to solve these issues?
Thanks,
Martin
I am trying to compile FreeCAD with oofem capabilities.
However, I got several errors during the compilation.
1. I had to add
Code: Select all
#include <Precision.hxx>
2. I got
Code: Select all
error: ‘TColgp_Array1OfPnt::TColgp_Array1OfPnt(const TColgp_Array1OfPnt&)’ is private within this context
auto nodes = facets->Nodes();
error: ‘Poly_Array1OfTriangle::Poly_Array1OfTriangle(const Poly_Array1OfTriangle&)’ is private within this context
auto triangles = facets->Triangles();
3. I got stuck with the last one
Code: Select all
/bin/sh: 1: PYSIDE2RCCBINARY-NOTFOUND: not found
src/Mod/Material/CMakeFiles/Material.dir/build.make:89: recipe for target 'src/Mod/Material/Material_rc.py' failed
Thanks,
Martin
Re: OOFem
I think you can better ask your question here: https://forum.freecadweb.org/viewforum.php?f=4
Re: OOFem
Your compilation problems do not have to do something wit oofem implementation in FreeCAD.nitramkaroh wrote: ↑Thu Sep 24, 2020 9:27 am I am trying to compile FreeCAD with oofem capabilities.
However, I got several errors during the compilation.
Try:
- compile latest FreeCAD master from https://github.com/FreeCAD/FreeCAD/commits/master
- if this works for you use FreeCAD oofem branch from https://github.com/berndhahnebach/FreeC ... s/femoofem
- if the FreeCAD master branch comiles oofem branch will compile too. Threre are only rare real changes in C++ My oofem branch is regularly rebased on latest FreeCAD master.
See all FreeCAD oofem changes ... https://github.com/berndhahnebach/FreeC ... 4ea93efdec