Hello!
It's a great tool you built there! I'd like to use it for some kind of
topology optimisation.
Is there an "idiomatic" way to set the material parameters of individual
nodes?
Thank you very much!
JonnyB
I am pleased to announce the release of SfePy 2020.2.
Description
-----------
SfePy (simple finite elements in Python) is a software for solving systems of
coupled partial differential equations by finite element methods. It is
distributed under the new BSD license.
Home page: https://sfepy.org
Mailing list: https://mail.python.org/mm3/mailman3/lists/sfepy.python.org/
Git (source) repository, issue tracker: https://github.com/sfepy/sfepy
Highlights of this release
-------------------------…
[View More]-
- discontinuous Galerkin method implementation and examples
- new website look
- memory usage improvements
For full release notes see [1].
Cheers,
Robert Cimrman
[1] http://docs.sfepy.org/doc/release_notes.html#id1
---
Contributors to this release in alphabetical order:
Robert Cimrman
Jan Heczko
Lubos Kejzlar
Vladimir Lukes
Tomáš Zítka
[View Less]
1
0
pickle.dump
by francoisbrest@hotmail.fr
June 18, 2020
June 18, 2020
Hello,
I am new to SfePy (it looks amazing)
I have a question: Is it possible to dump a state variable ?
from sfepy.discrete import Problem
problem = Problem.from_conf_file(
"C:/ProgramData/Anaconda3/Lib/site-packages/sfepy/examples/linear_elasticity/its2D_1.py")
state = problem.solve()
from pickle import dump
with open("state.dat","wb") as f:
dump(state,f)
---------------------------------------------------------------------------
TypeError Traceback (…
[View More]most recent call last)
<ipython-input-18-15429a83d7eb> in <module>
1 from pickle import dump
2 with open("state.dat","wb") as f:
----> 3 dump(state,f)
C:\ProgramData\Anaconda3\lib\site-packages\sfepy\discrete\common\extmods\cmesh.cp36-win_amd64.pyd in sfepy.discrete.common.extmods.cmesh.CMesh.__reduce_cython__()
TypeError: no default __reduce__ due to non-trivial __cinit__
Best regards,
[View Less]