Elmer Static current equation
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
Re: Elmer Static current equation
I have been away a few days ...
If we would follow FEM naming shema we would need to call all the names freetextinput_whatIsTheTextInputFor.py etc
If we would follow FEM naming shema we would need to call all the names freetextinput_whatIsTheTextInputFor.py etc
Re: Elmer Static current equation
My intention was to keep all e.g. constraints start with constraint....py . Isn‘t this more intuitive?
I can rename everything but will implement freetextinput for equations before to show its benefits with a new equation type.
Re: Elmer Static current equation
Thanks, Peter.raback wrote: ↑Mon Aug 03, 2020 1:03 pm Hi HoWil
The non-GUI tutorials are not automatically tested for when developing Elmer. Some of the test cases may be a little outdated being ~10 years old. There are hundreds of test cases that on the other hand are tested frequently.
Not it happens that this "ThermalActuator" also exists as a test case which has been somewhat modernized. I just took the additional step of transfering the original Ansys mesh into Gmsh format. This way the workflow could perhaps more easily be adopted in FreeCAD as the Gmsh format might be better supported there?
For the files see:
https://github.com/ElmerCSC/elmerfem/tr ... alActuator
-Peter
But as I pointed out before, the problem is not the mesh.
Will test the new model and will report back.
Re: Elmer Static current equation
The simulation works now... got temperature and displacement information!
Thank you, Peter
EDIT
I used:
Code: Select all
ElmerGrid 14 2 actuator.msh
ElmerSolver thermal_actuator.sif
Code: Select all
Post File = "actuator.vtu"
Re: Elmer Static current equation
@Bernd: Can you please have a look at https://github.com/HoWilgh/FreeCAD/tree ... etextinput
I get a
Code: Select all
Unknown command 'FEM_EquationElmerFreetextinput'
Re: Elmer Static current equation
Looks like the error you get when the command in Workbench.cpp is not added in the FreeCadGui but I can clearly see that you have added the command in femcommands/commands.pyHoWil wrote: ↑Mon Aug 03, 2020 7:09 pm@Bernd: Can you please have a look at https://github.com/HoWilgh/FreeCAD/tree ... etextinput
I get awhen I open the compiled FC and change into FEM-WB while I do not know where I have missed a thing.Code: Select all
Unknown command 'FEM_EquationElmerFreetextinput'
I am currently compiling your branch, so I will get a better idea regarding this later.
Till then I would suggest you to remove Mod/Fem from your build directory and recompile. Let's if that helps.
Re: Elmer Static current equation
I get this when running cmake:Sudhanshu wrote: ↑Wed Aug 05, 2020 8:22 pm Looks like the error you get when the command in Workbench.cpp is not added in the FreeCadGui but I can clearly see that you have added the command in femcommands/commands.py
I am currently compiling your branch, so I will get a better idea regarding this later.
Code: Select all
CMake Error at src/Mod/Fem/CMakeLists.txt:395 (ADD_CUSTOM_TARGET):
Cannot find source file:
/run/media/sudhanshu/Thunder/Repos/FreeCAD_sd/src/Mod/Fem/femobjects/equation_elmer_freetextinput.py
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
Re: Elmer Static current equation
Dear Sudhanshu,
Thank you very much!
I will test that this evening.
There are to many places where one has to change things, especially if you are a spare time programmer as I am! Bernd is simplifying things a lot but it is still an aged and grown system. Hope there are ways to simplify it further.
Thanks again.
Thank you very much!
I will test that this evening.
There are to many places where one has to change things, especially if you are a spare time programmer as I am! Bernd is simplifying things a lot but it is still an aged and grown system. Hope there are ways to simplify it further.
Thanks again.
Re: Elmer Static current equation
I am spare time programmer as well I do not plan to do any more refactoring changes on the Python file structure in FEM.
We would need to document it somewhere what is needed to add an new object and command. As a start this could be used: https://github.com/FreeCAD/FreeCAD/comp ... fc9471ab49