feature: general initial value and body source, to be tested

About the development of the FEM module/workbench.

Moderator: bernd

qingfeng.xia
Posts: 209
Joined: Tue Sep 22, 2015 1:47 pm
Location: Oxford Uk
Contact:

Re: feature: general initial value and body source, to be tested

Postby qingfeng.xia » Sun May 24, 2020 12:35 pm

Rebase after stop for a while is kind of disaster to me :). I may add a bit in-source documentation then I hope to PR.

BodyAccelation is a quite useful constraint. it can let FEA simulate linear acceleration, centrifuglal. It modelled after Ansys Mechanical

https://studentcommunity.ansys.com/thre ... ting-body/
Displacement, Velocity and Acceleration make the complete constraint for transient FEA.

Would "Acceleration", instead of "BodyAccelation" make a better name? it a more general term for self-weight.

pressure initial value is only needed in CFD, on par with Initial Velocity.
Ubuntu 18.04 LTS 64bit, python3, always work with latest FreeCAD daily build
Currently I mainly work on OpenFOAM + Fenics for CFD, FSI
https://github.com/qingfengxia/FreeCAD_Mod_Dev_Guide
https://github.com/qingfengxia/Cfd
qingfeng.xia
Posts: 209
Joined: Tue Sep 22, 2015 1:47 pm
Location: Oxford Uk
Contact:

Re: feature: general initial value and body source, to be tested

Postby qingfeng.xia » Sun May 24, 2020 1:32 pm

bernd wrote:
Sun May 24, 2020 12:16 pm
qingfeng.xia wrote:
Sun May 24, 2020 11:54 am
If you think necessary, A in-source documentation should be added to the class ConstraintGeneric to outline how to use this class, or add those doc into freecad wiki directly?
I prefere in source.

But more important would be a real use of one of the constraints. ATM there are two new constraints which are new but not used. My be someone does implement them as real constraints. These ones which are based on the generic constraint would than not needed anymore.

Or do you use them in any solver not included in FEM already?
I topped up one more commit, and sent PR to your branch, add in source doc, how to use it.

The last bit of demo, how to collect info from those generic constraint, will be ready soon, I will paste some piece of code snippet in Cfd module.

Basicaly, there is a Python dict "Settings" property contains all the value information, as usual, geometry selection can be get from "References" list property.
Ubuntu 18.04 LTS 64bit, python3, always work with latest FreeCAD daily build
Currently I mainly work on OpenFOAM + Fenics for CFD, FSI
https://github.com/qingfengxia/FreeCAD_Mod_Dev_Guide
https://github.com/qingfengxia/Cfd
chrisb
Posts: 25155
Joined: Tue Mar 17, 2015 9:14 am

Re: feature: general initial value and body source, to be tested

Postby chrisb » Sun May 24, 2020 7:19 pm

It would be great if it wasn't only possible to mark the whole document, but also all other elements or containers in the tree.
qingfeng.xia
Posts: 209
Joined: Tue Sep 22, 2015 1:47 pm
Location: Oxford Uk
Contact:

Re: feature: general initial value and body source, to be tested

Postby qingfeng.xia » Mon May 25, 2020 6:57 pm

I can add more document, in that case, doc will be much long than the code, what is why I think it deserves a page. I will do another top up tomorrow thank you
Ubuntu 18.04 LTS 64bit, python3, always work with latest FreeCAD daily build
Currently I mainly work on OpenFOAM + Fenics for CFD, FSI
https://github.com/qingfengxia/FreeCAD_Mod_Dev_Guide
https://github.com/qingfengxia/Cfd
qingfeng.xia
Posts: 209
Joined: Tue Sep 22, 2015 1:47 pm
Location: Oxford Uk
Contact:

Re: feature: general initial value and body source, to be tested

Postby qingfeng.xia » Tue May 26, 2020 11:31 am

I topped up 2 commits on documentation, one commit renaming,
see PR to your branch. https://github.com/berndhahnebach/FreeCAD_bhb/pull/78

There is one file, with your in source notes,
femobjects/ConstraintGenericDefaults.py
I leave it to you to further clean it before PR to master.

I run out my time this summer, and I have no time to impl any new feature for FEM this year, may be this Xmas. I will update my Cfd module after FreeCAD 0.20 release.

bernd wrote:
Sun May 24, 2020 12:16 pm
qingfeng.xia wrote:
Sun May 24, 2020 11:54 am
If you think necessary, A in-source documentation should be added to the class ConstraintGeneric to outline how to use this class, or add those doc into freecad wiki directly?
I prefer in source.

But more important would be a real use of one of the constraints. ATM there are two new constraints which are new but not used. My be someone does implement them as real constraints. These ones which are based on the generic constraint would than not needed anymore.

Or do you use them in any solver not included in FEM already?
Ubuntu 18.04 LTS 64bit, python3, always work with latest FreeCAD daily build
Currently I mainly work on OpenFOAM + Fenics for CFD, FSI
https://github.com/qingfengxia/FreeCAD_Mod_Dev_Guide
https://github.com/qingfengxia/Cfd