Felt in FEM Workbench
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
Re: Felt in FEM Workbench
fist thing you should do is make a new document, add an FEM analysis container and afterwards a FELT solver object by Python. This is the new object you created. Than run your new solver object and see what error will be given. I do not assume it will run right straight away ...
Re: Felt in FEM Workbench
Ah! Yes, I overlooked that.hardeeprai wrote: ↑Sat Apr 20, 2019 6:22 amIn your sample file written inline at https://github.com/Sudhanshu-Dubey14/Fr ... /writer.py , the lines from 127 to 135 are not needed, as these are for GUI of FElt, named "Velvet", which will not be used in your case.
Thanks for pointing it out. I have removed those lines.
You can check that here.
Re: Felt in FEM Workbench
I guess you are right.hardeeprai wrote: ↑Sat Apr 20, 2019 6:42 amRefer file name "1DBeam.out.m0.1.vtu" mentioned at line number 124 of https://github.com/Sudhanshu-Dubey14/Fr ... t/tasks.py
With your current code, you can't create this file.
Then, should I just create a simple text file as output?
But then how will I show it on the FreeCAD GUI or the FreeCAD console?
Re: Felt in FEM Workbench
I am still confused.hardeeprai wrote: ↑Sat Apr 20, 2019 6:44 amWhen you do development in Python, you need not to compile FreeCAD.
How will FreeCAD then pick up the code from my repository?
There has to be some kind of connection, some way to tell FreeCAD that new code has been added, that to in some repo other than its official one.
Re: Felt in FEM Workbench
So I followed what you said. Here is the the screenshot of everything I did before solving:bernd wrote: ↑Sat Apr 20, 2019 10:17 am fist thing you should do is make a new document, add an FEM analysis container and afterwards a FELT solver object by Python. This is the new object you created. Than run your new solver object and see what error will be given. I do not assume it will run right straight away ...
I did not get FElt solver as an option in GUI and I wasn't expecting that anyway.
So is there a command to add the solver object from the python console?
Re: Felt in FEM Workbench
sure, there is ... if you really followed the first two commits of oofem you should have been added a method to ObjectsFem module. This method should make it easy to add a new FELT solver. Import ObjectsFem and run this method should add you a new FELT solver ...
cheers bernd
cheers bernd
Re: Felt in FEM Workbench
how do you develop is up to you. One way is just change the python files in the nodule path of installed FreeCAD, the other way is to clone the FreeCAD cource code from github make your changes and compile FreCAD. I surely prefere the second way, but you can start with the other way too. The first two commits would work with both ways ...
cheers bernd
cheers bernd
Re: Felt in FEM Workbench
As said this would be the way where you just chage files in FreeCAD mod directory.hardeeprai wrote: ↑Sat Apr 20, 2019 6:44 amWhen you do development in Python, you need not to compile FreeCAD.
Re: Felt in FEM Workbench
Oh, so the ObjectsFem.makeSolverCalculixCcxTools(doc, name) method is called when I press the Solver button in the GUI.bernd wrote: ↑Sat Apr 20, 2019 6:42 pm sure, there is ... if you really followed the first two commits of oofem you should have been added a method to ObjectsFem module. This method should make it easy to add a new FELT solver. Import ObjectsFem and run this method should add you a new FELT solver ...
cheers bernd
Cool!!
And so, in my case, the function ObjectsFem.makeSolverFElt(doc, name) should be called from the console.
When you say FreeCAD mod directory, are you referring to this:bernd wrote: ↑Sat Apr 20, 2019 6:51 pmAs said this would be the way where you just chage files in FreeCAD mod directory.hardeeprai wrote: ↑Sat Apr 20, 2019 6:44 am When you do development in Python, you need not to compile FreeCAD.
Code: Select all
sudhanshu@dubey:/snap/freecad/8/opt/local/FreeCAD-0.18/Mod/Fem$ ls
femcommands feminout femobjects femsolver femtools Init.py Resources
femguiobjects femmesh femresult femtest InitGui.py ObjectsFem.py TestFem.py
So by putting my files here, I would be able to test them in FreeCAD?
- hardeeprai
- Posts: 177
- Joined: Sun May 23, 2010 2:41 pm
- Location: Ludhiana, Punjab, India
- Contact:
Re: Felt in FEM Workbench
Yes.Sudhanshu wrote: ↑Sat Apr 20, 2019 7:20 pmWhen you say FreeCAD mod directory, are you referring to this:
Code: Select all
sudhanshu@dubey:/snap/freecad/8/opt/local/FreeCAD-0.18/Mod/Fem$ ls femcommands feminout femobjects femsolver femtools Init.py Resources femguiobjects femmesh femresult femtest InitGui.py ObjectsFem.py TestFem.py
So by putting my files here, I would be able to test them in FreeCAD?
@ Sudhanshu
It is long, we have not heard from you. Have you progressed further or any thing else who did related to FElt solver?
--
H.S.Rai
H.S.Rai