-
-
Notifications
You must be signed in to change notification settings - Fork 489
-
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)
Beta Was this translation helpful? Give feedback.
All reactions
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
-
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
Beta Was this translation helpful? Give feedback.