Search found 188 matches

Go to advanced search

by qingfeng.xia
Mon Feb 24, 2020 11:18 pm
Forum: FEM
Topic: feature: general initial value and body source, to be tested
Replies: 31
Views: 1579

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

bernd wrote:
Mon Feb 24, 2020 8:55 pm
IMHO it shoudl be named FemConstraintGeneric instead FemGenericConstraint

It should be easy to just do find and replacement. I will do it later.
I am stuck on the json serialization error.
by qingfeng.xia
Mon Feb 24, 2020 11:16 pm
Forum: FEM
Topic: feature: general initial value and body source, to be tested
Replies: 31
Views: 1579

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

that is silly error, should be x- y- z-component. I also have another way to input vector, just as C++ constraint type (direction + mag), I have not fully tested, could be added in the future https://github.com/berndhahnebach/FreeCAD_bhb/blob/8d2f730a43e213d8212385151d1075da4f730bcb/src/Mod/Fem/femg...
by qingfeng.xia
Fri Feb 21, 2020 10:56 pm
Forum: FEM
Topic: feature: general initial value and body source, to be tested
Replies: 31
Views: 1579

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

PR sent to your fembodyconstraint branch https://github.com/berndhahnebach/FreeCAD_bhb/pull/63 BodySourceWidget -> ConstraintInputWidget merged InitialValue and BodySource into FemGenericConstraint FemBodyAcceleration -> FemConstraintAcceleration InitialPressure instead of InitialTemperature as a de...
by qingfeng.xia
Fri Feb 21, 2020 10:42 am
Forum: FEM
Topic: feature: general initial value and body source, to be tested
Replies: 31
Views: 1579

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

I agree there may be no need of 2 classes "InitialValue" and "BodySource", but for sure need 2 functions, makeInitialValue(), makeBodySource(), or even more, makeHeatSource, makeSelfWeight() , et, to help script users. while makeAcceleration() is a better way than selfWeght, see Ansys FEM, there is ...
by qingfeng.xia
Thu Feb 20, 2020 6:06 pm
Forum: FEM
Topic: feature: general initial value and body source, to be tested
Replies: 31
Views: 1579

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

Thank you for your effort, I will pull your branch, to do more code chck. + I can make a unit test + for naming and place to put them, I will hear your advice, and other forumers. I did a lot of code formating to make the code fit in https://github.com/FreeCAD/FreeCAD/blob/d0f749b56e33ffde212fb5df74...
by qingfeng.xia
Thu Feb 20, 2020 5:40 pm
Forum: FEM
Topic: feature: general initial value and body source, to be tested
Replies: 31
Views: 1579

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

From a programmer view, their implementation is similar , but from CAE user view to solve Partial diff equations(PDE), initial values and body source are distinct things. https://fenicsproject.org/pub/tutorial/sphinx1/._ftut1003.html equation 1 Body source is the `f(x)` item in equation 1, it has di...
by qingfeng.xia
Wed Feb 05, 2020 12:27 pm
Forum: FEM
Topic: FEM mesh: Create mesh groups in Python (exposing C++ functions to Python)
Replies: 40
Views: 2909

Re: FEM mesh: Create mesh groups in Python (exposing C++ functions to Python)

sorry for the misunderstanding, I do not mean your code, but overall data passing in femmesh utility functions written in python. if all meshing nodeset can be done in Cpp, it will be great. However, I fully agree with you, it is not current fem module dev priority. python is fine
by qingfeng.xia
Mon Jan 27, 2020 1:00 pm
Forum: FEM
Topic: FEM mesh: Create mesh groups in Python (exposing C++ functions to Python)
Replies: 40
Views: 2909

Re: FEM mesh: Create mesh groups in Python (exposing C++ functions to Python)

Thanks for the file. I will submit a fix, soon. Fortunately, XDMF still works. Is the XDMF format in its current form still compatible with fenics? I ask this, since I wrote the export function between fenics 2016 and 2017, and I know there was a large API change in fenics. Further I am not interes...
by qingfeng.xia
Sun Jan 26, 2020 9:38 pm
Forum: FEM
Topic: FEM mesh: Create mesh groups in Python (exposing C++ functions to Python)
Replies: 40
Views: 2909

Re: FEM mesh: Create mesh groups in Python (exposing C++ functions to Python)

Thank you for your explanation. I am looking forwords to this feature for my FenicsSolver. To continue on python data structure. numpy is prefer and it is easy in pybind11, possible and hader in C-API. As there is much effort to do so, just leave it as it is. xml writing is broken, but it is easy to...
by qingfeng.xia
Sun Jan 26, 2020 8:14 pm
Forum: FEM
Topic: FEM mesh: Create mesh groups in Python (exposing C++ functions to Python)
Replies: 40
Views: 2909

Re: FEM mesh: Create mesh groups in Python (exposing C++ functions to Python)

Great Job, Joha2! It is highly desirable to have group support for FemMesh in FreeCAD. I have not got the experience in SMesh programming, but I guess you code is fine when I read througb your code. I wonder if `theID` in `int FemMesh::addGroup(const std::string TypeString, const std::string Name, c...

Go to advanced search