Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pygad and CalculiX (FEA , like abaqus) #206

Closed Answered by 3rav
3rav asked this question in Q&A
Discussion options

I would like to use pygad to calculate material parameters in static analysis, I would like to get something like this article:
https://www.mdpi.com/1996-1944/16/5/1821

Contrary to the article mentioned above, I would like to use CalculiX as a FEA program: http://calculix.de

Please let me know if I can do something like that and help me how to do it (I'm just starting my adventure with pygad)?

At the moment, I can perform single calculations (CalculiX), then use similaritymeasures (https://github.com/cjekel/similarity_measures) to compare the data (the curve from the experiment vs the curve from the FEA program) and save the pcm indicator to a file.

Imaginary work cycle (general):

CalculiX (with startup parameters in input file) -> save data -> similaritymeasures (comparison of curves) -> save pcm -> pygad -> save new parameters -> replacing parameters in the input file for calculix

and so on in the loop until a given criterion is reached (amount and/or pcm values).

Python scripts usable with CalculiX:
dat2txt.py (save data to curve strain-stress): https://github.com/calculix/CalculiX-Examples/blob/master/Scripts/dat2txt.py
param.py (replace parameters in CalculiX input file): https://github.com/calculix/CalculiX-Examples/blob/master/Scripts/param.py

If pygad allows to save parameters to a .txt file in this form:
200.e+3, 0.3, A, B, C, D

where the first 2 values are constant and A, B, C, D are variable coefficients then we can omit the script to replace them in the input file (param.py)

You must be logged in to vote

I have a working combination like this but currently based on pyswarm PSO (https://pythonhosted.org/pyswarm/)

Now pygad is available in msys2/mingw: https://packages.msys2.org/base/mingw-w64-python-pygad

Replies: 1 comment

Comment options

I have a working combination like this but currently based on pyswarm PSO (https://pythonhosted.org/pyswarm/)

Now pygad is available in msys2/mingw: https://packages.msys2.org/base/mingw-w64-python-pygad

You must be logged in to vote
0 replies
Answer selected by ahmedfgad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /