Hi Janek,
I went through list_of_examples.txt [1].
Impressive work, thanks. I just fixed two [2].
My impression is that some examples could be fixed quickly by the
original authors, provided that they now the problem (many of them are
probably not reading yade-dev). I'm then adding some of them in cc of
this email for possible reaction.
Guys, you can fix thoses scripts on github or gitlab, doesn't matter.
Please remember to insert your name and email in every script so we know
what to do is a case like now.
FEMxDEM: Ning Guo (if this adress does not work I know Ning has
successors in HK)
HydroForceEngine: Raphael MAURIN (postProcessing_sedim.py has a problem
+ some scripts need move to check scripts (great!))
jointedCohesiveFrictionalPM: Luc Scholtès and/or (?) Jérôme Duriez
OAR: William Chèvremont (maybe a few lines in preamble of sim.py to
explain why - obviously - it cannot work for Janek, or maybe link back
to where it is explained?)
SPH: Anton, is there somewhere explanation of current state of SPH? Is
it something someone could take over one day, or should it be simply
removed?
Thanks all.
Bruno
[1]
https://gitlab.com/yade-dev/trunk/blob/master/examples/list_of_examples.txt
[2]
https://gitlab.com/yade-dev/trunk/commit/46f718ee2bc3c2198809145f1446865263d1453b
On 1/20/19 10:45 PM, Janek Kozicki wrote:
Sounds great!
You can see more info in file examples/list_of_examples.txt
would be great if mark in this file those that you have fixed.
it is already merged on gitlab :)
https://gitlab.com/yade-dev/trunk/merge_requests/27
best regards
Janek
Jan Stránský said: (by the date of Sun, 20 Jan 2019 21:44:29 +0100)
Hi Janek,
thanks for the detailed look :-)
If you have any hints on how to fix any of those examples, please tell!
several mentioned not working script is from me. I think than correcting
them and pushing to gitlab is better than telling :-)
Also I see that https://yade-dem.org/doc/tutorial-examples.html looks
very strange - the youtube videos are not shown
I don't remember the reason (have read it long time ago), but the youtube
videos does work using http (not https) in the address
cheers
Jan
ne 20. 1. 2019 v 20:27 odesílatel Janek Kozicki <[email protected]> napsal:
Hi,
I did small or cosmetic fixes in 17 examples.
Currently 21% of examples (46 out of 215) are broken.
I tried every example in a very quick manner. I checked if it has any
explanations inside the comments, then I tried to just run it.
It is possible that some of them failed only because they need a bit
fiddling before starting them. In that case we need to explain the
fiddling inside the file, in comments. And tell me what is the fiddling to
do!
If you have any hints on how to fix any of those examples, please tell!
ResetRandomPosition.py
: SIGSEGV/SIGABRT handler called;
: gdb [with T = IGeomFunctor; typename
boost::detail::sp_member_access<T>::type = IGeomFunctor*]: Assertion `px !=
0' failed.
DeformEngine/LOedometricDeform.py and OedometricDeform.py
: NameError: name 'DeformControl' is not defined
FEMxDEM
: ImportError: No module named esys.escript
I am reading https://launchpad.net/escript-finley to fix this.
HydroForceEngine/twoWayCoupling/postProcessing_sedim.py
: line:49 ValueError: operands could not be broadcast together with
shapes (900,) (901,) (900,)
LudingPM/LudingPM_1.py and LudingPM_2.py
: NewtonIntegrator: NaN force acting on #0.
PotentialBlocks/WedgeYADE.py and cubePBscaled.py
PotentialParticles/basic.py and cubePPscaled.py
: NameError: name 'PotentialBlock2AABB' is not defined
I will recompile with ENABLE_POTENTIAL_BLOCKS=ON and see if they work.
agglomerate/simulation.py
: AttributeError: 'Body' object has no attribute 'agglomerate'
capillary/liquidmigration/showcase.py
: NameError: name 'LiqControl' is not defined
I will recompile with LIQMIGRATION and see if it works.
clumps/save-load-clumps.py
: SIGSEGV/SIGABRT handler called; gdb
: Assertion `member->isClumpMember()' failed.
deformableelem/Minimal.py
: the graphs are empty
deformableelem/main.py
: I suppose this file is here by mistake ?
jointedCohesiveFrictionalPM/packInGtsSurface.py and all other files
: spams terminal with messages: UnbalancedForce=-nan, rel stress nan
mortar/modelTests/failureEnvelope.py
: MortarMat.cpp:12 go: MortarMat not implemented for non-cohesive contacts
oar/sim.py
: KeyError: 'Invalid key: description.'
sph/dam_break.py and all other files there
: AttributeError: No such attribute: KernFunctionPressure.
I will recompile with SPH and see if they work.
test/WireMatPM/net-2part-strain.py
: UniaxialStrainer::action(): Assertion `posIds.size()==posCoords.size()
&& negIds.size()==negCoords.size() && originalLength>0 &&
crossSectionArea>0' failed.
: SIGSEGV/SIGABRT handler called; gdb
test/batch/sim.py
: KeyError: 'Invalid key: description.'
test/exact-rot-facet.py and exact-rot.py
: [with T = IGeomFunctor; typename
boost::detail::sp_member_access<T>::type = IGeomFunctor*]: Assertion `px !=
0' failed.
: SIGSEGV/SIGABRT handler called; gdb
test/genCylLSM.py
: InsertGenerator3D::seedParticles
: bbx: -15 -15 -15 - 15 15 215
: SIGSEGV/SIGABRT handler called; gdb batch file is
test/helix.py
: script runs and is not crashing, but nothing happens
test/pack-predicates.py
: nothing happens, scene is empty
test/paraview-spheres-solid-section/
yade export_text.py
apt install paraview-python
python pv_section.py
: Traceback (most recent call last):
: File "pv_section.py", line 29, in <module>
: RenderView1.UseInteractiveRenderingForSceenshots = 0
: File "/usr/lib/python2.7/dist-packages/paraview/servermanager.py", line
307, in __setattr__
: "to add this attribute.")
: AttributeError: Attribute UseInteractiveRenderingForSceenshots does not
exist. This class does not allow addition of new attributes to avoid
mistakes due to typos. Use add_attribute() if you really want to add this
attribute.
test/psd.py
: the scene is empty, apparently makeCloud didn't do anything. Or I would
have to wait longer.
test/qt4-attributes.py and qt4-pyqglviewer.py
: Error: already imported an Incompatible QT Binding: pyqt5
I will try to convert this to qt5
test/remove-body.py
: AttributeError: No such attribute: nBins
test/shear.py
: sp_member_access<T>::type = IGeomFunctor*: Assertion `px != 0' failed
: SIGSEGV/SIGABRT handler called; gdb
test/test_Ip2_FrictMat_CpmMat_FrictPhys.py
: After collision there is error: InteractionLoop::action(): Assertion
`!swap' failed.
: SIGSEGV/SIGABRT handler called; gdb
test/unv-read/unvReadVTKExport.py
: TypeError: facet() got an unexpected keyword argument 'returnElementMap'
triax-tutorial/script-session2.py
: AttributeError: No such attribute: sigma1
Also I see that https://yade-dem.org/doc/tutorial-examples.html looks
very strange - the youtube videos are not shown. There is no comments
or explanations. Even the extra wiki pages like those which I
stumbled upon:
https://yade-dem.org/wiki/CapillaryTriaxialTest
https://yade-dem.org/wiki/ScriptParametricStudy
are not mentioned at all.
I am not sure how to fix the youtube links, but perhaps I will add
some more content to this page.
What do you think about copying whose wiki pages into
yade-dem.org/doc/tutorial-examples.html ?
--
Janek Kozicki
_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help : https://help.launchpad.net/ListHelp