← Back to team overview

yade-users team mailing list archive

Re: [Question #166257]: question on CapillaryPhys

 

Question #166257 on Yade changed:
https://answers.launchpad.net/yade/+question/166257

Christian Jakob posted a new comment:
I created a simple example script:


#---------------------------------------START----------------------------------------------------


#!/usr/bin/python
# -*- coding: utf-8 -*-

#example script to demonstrate how to implement capillaryPhys

shear_modulus 	= 3e7
poisson_ratio 	= 0.3
young_modulus	= 2*shear_modulus*(1+poisson_ratio)
friction		= 0.5
angle=atan(friction)
local_damping 	= 0.01

id_SphereMat=O.materials.append(FrictMat(young=young_modulus,poisson=poisson_ratio,density=1000,frictionAngle=angle))

SphereMat=O.materials[id_SphereMat]

O.engines=[
	ForceResetter(),
	InsertionSortCollider([Bo1_Sphere_Aabb()]),
	InteractionLoop(
		[Ig2_Sphere_Sphere_ScGeom()],
		[Ip2_FrictMat_FrictMat_FrictPhys()],
		[Law2_ScGeom_FrictPhys_CundallStrack()],
	),
	Law2_ScGeom_CapillaryPhys_Capillarity(),
	GravityEngine(gravity=(0,0,-9.81)),
	NewtonIntegrator(damping=local_damping),
]

O.bodies.append(utils.sphere([0,0,0], material=SphereMat, fixed=True,
radius=0.5, wire=False, highlight=False))

O.bodies.append(utils.sphere([0,0,1], material=SphereMat, radius=0.5,
wire=False, highlight=False))

O.saveTmp()
O.loadTmp()

O.run(100)


#---------------------------------------END----------------------------------------------------

Now there occurs following error:

me@debian ~/YADE/my-yade-projects/capillaryPhys-test > yade capillaryPhys-example.py 
Welcome to Yade bzr2877
TCP python prompt on localhost:9000, auth cookie `sycsae'
XMLRPC info provider on http://localhost:21000
Running script capillaryPhys-example.py
WARNING: cannot open files used for capillary law, all forces will be null. Instructions on how to download and install them is found here : https://yade-dem.org/wiki/CapillaryTriaxialTest.
*** glibc detected *** /usr/bin/python: corrupted double-linked list: 0x00007f52e4003900 ***
======= Backtrace: =========
/lib/libc.so.6(+0x71ad6)[0x7f5309f5cad6]
/lib/libc.so.6(+0x71f0d)[0x7f5309f5cf0d]
/lib/libc.so.6(+0x74254)[0x7f5309f5f254]
/lib/libc.so.6(__libc_malloc+0x70)[0x7f5309f61930]
/usr/lib/libgomp.so.1(+0x3d59)[0x7f53012fbd59]
/usr/lib/libgomp.so.1(+0x9025)[0x7f5301301025]
/usr/lib/libgomp.so.1(GOMP_parallel_start+0x2c)[0x7f53012ffa1c]
/home/me/YADE/lib/yade-bzr2877/plugins/libplugins.so(_ZN13GravityEngine6actionEv+0x4c)[0x7f52f214bd7c]
/home/me/YADE/lib/yade-bzr2877/py/yade/../../lib/libcore.so(_ZN5Scene18moveToNextTimeStepEv+0x478)[0x7f5301107f98]
/home/me/YADE/lib/yade-bzr2877/py/yade/../../lib/libcore.so(_ZN14SimulationFlow12singleActionEv+0x52)[0x7f5301108f32]
/home/me/YADE/lib/yade-bzr2877/py/yade/../../lib/libcore.so(_ZN12ThreadWorker16callSingleActionEv+0x31)[0x7f5301105ee1]
/home/me/YADE/lib/yade-bzr2877/py/yade/../../lib/libcore.so(_ZN12ThreadRunner4callEv+0x31)[0x7f530110d921]
/home/me/YADE/lib/yade-bzr2877/py/yade/../../lib/libcore.so(_ZN12ThreadRunner3runEv+0x64)[0x7f530110d9b4]
/home/me/YADE/lib/yade-bzr2877/py/yade/../../lib/libcore.so(_ZN5boost6detail11thread_dataINS_9function0IvEEE3runEv+0x3f)[0x7f53011e854f]
/usr/lib/libboost_thread.so.1.42.0(thread_proxy+0x60)[0x7f5308b59200]
/lib/libpthread.so.0(+0x68ba)[0x7f530b0e88ba]
/lib/libc.so.6(clone+0x6d)[0x7f5309fba02d]
======= Memory map: ========
00400000-0061d000 r-xp 00000000 08:01 2891650                            /usr/bin/python2.6
0081d000-0087f000 rw-p 0021d000 08:01 2891650                            /usr/bin/python2.6
0087f000-0088e000 rw-p 00000000 00:00 0 
00b4c000-0240d000 rw-p 00000000 00:00 0                                  [heap]
7f52d8000000-7f52d8021000 rw-p 00000000 00:00 0 
7f52d8021000-7f52dc000000 ---p 00000000 00:00 0
7f52dd533000-7f52dd534000 ---p 00000000 00:00 0 
7f52dd534000-7f52ddd34000 rw-p 00000000 00:00 0 
7f52ddd34000-7f52dddb5000 r--p 00000000 08:01 3021112                    /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf
7f52dddb5000-7f52dde44000 r--p 00000000 08:01 3018442                    /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
7f52dde44000-7f52dded0000 rw-p 00000000 00:00 0 
7f52dded0000-7f52ddf1f000 r--p 00000000 08:01 3018441                    /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
7f52ddf1f000-7f52ddf26000 r-xp 00000000 08:01 4729395                    /usr/lib/qt4/plugins/imageformats/libqtiff.so
7f52ddf26000-7f52de125000 ---p 00007000 08:01 4729395                    /usr/lib/qt4/plugins/imageformats/libqtiff.so
7f52de125000-7f52de126000 rw-p 00006000 08:01 4729395                    /usr/lib/qt4/plugins/imageformats/libqtiff.so
7f52de126000-7f52de17f000 r-xp 00000000 08:01 2909420                    /usr/lib/libQtSvg.so.4.6.3
7f52de17f000-7f52de37e000 ---p 00059000 08:01 2909420                    /usr/lib/libQtSvg.so.4.6.3
7f52de37e000-7f52de381000 rw-p 00058000 08:01 2909420                    /usr/lib/libQtSvg.so.4.6.3
7f52de381000-7f52de385000 r-xp 00000000 08:01 4725850                    /usr/lib/qt4/plugins/imageformats/libqsvg.so
7f52de385000-7f52de584000 ---p 00004000 08:01 4725850                    /usr/lib/qt4/plugins/imageformats/libqsvg.so
7f52de584000-7f52de585000 rw-p 00003000 08:01 4725850                    /usr/lib/qt4/plugins/imageformats/libqsvg.so
7f52de585000-7f52de5ba000 r-xp 00000000 08:01 2894981                    /usr/lib/liblcms.so.1.0.18
7f52de5ba000-7f52de7b9000 ---p 00035000 08:01 2894981                    /usr/lib/liblcms.so.1.0.18
7f52de7b9000-7f52de7bb000 rw-p 00034000 08:01 2894981                    /usr/lib/liblcms.so.1.0.18
7f52de7bb000-7f52de7bd000 rw-p 00000000 00:00 0 
7f52de7bd000-7f52de841000 r-xp 00000000 08:01 2899256                    /usr/lib/libmng.so.1.1.0.10
7f52de841000-7f52dea40000 ---p 00084000 08:01 2899256                    /usr/lib/libmng.so.1.1.0.10
7f52dea40000-7f52dea45000 rw-p 00083000 08:01 2899256                    /usr/lib/libmng.so.1.1.0.10
7f52dea45000-7f52dea4b000 r-xp 00000000 08:01 4729394                    /usr/lib/qt4/plugins/imageformats/libqmng.so
7f52dea4b000-7f52dec4a000 ---p 00006000 08:01 4729394                    /usr/lib/qt4/plugins/imageformats/libqmng.so
7f52dec4a000-7f52dec4b000 rw-p 00005000 08:01 4729394                    /usr/lib/qt4/plugins/imageformats/libqmng.so
7f52dec4b000-7f52dec53000 r-xp 00000000 08:01 4729393                    /usr/lib/qt4/plugins/imageformats/libqjpeg.so
7f52dec53000-7f52dee53000 ---p 00008000 08:01 4729393                    /usr/lib/qt4/plugins/imageformats/libqjpeg.so
7f52dee53000-7f52dee54000 rw-p 00008000 08:01 4729393                    /usr/lib/qt4/plugins/imageformats/libqjpeg.so
7f52dee54000-7f52dee5b000 r-xp 00000000 08:01 4729392                    /usr/lib/qt4/plugins/imageformats/libqico.so
7f52dee5b000-7f52df05a000 ---p 00007000 08:01 4729392                    /usr/lib/qt4/plugins/imageformats/libqico.so
7f52df05a000-7f52df05b000 rw-p 00006000 08:01 4729392                    /usr/lib/qt4/plugins/imageformats/libqico.so
7f52df05b000-7f52df062000 r-xp 00000000 08:01 4729387                    /usr/lib/qt4/plugins/imageformats/libqgif.so
7f52df062000-7f52df261000 ---p 00007000 08:01 4729387                    /usr/lib/qt4/plugins/imageformats/libqgif.so
7f52df261000-7f52df262000 rw-p 00006000 08:01 4729387                    /usr/lib/qt4/plugins/imageformats/libqgif.so
7f52df262000-7f52df264000 r-xp 00000000 08:01 3146604                    /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7f52df264000-7f52df463000 ---p 00002000 08:01 3146604                    /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7f52df463000-7f52df464000 rw-p 00001000 08:01 3146604                    /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7f52df464000-7f52df472000 r-xp 00000000 08:01 3152581                    /usr/lib/gtk-2.0/2.10.0/engines/libredmond95.so
7f52df472000-7f52df672000 ---p 0000e000 08:01 3152581                    /usr/lib/gtk-2.0/2.10.0/engines/libredmond95.so
7f52df672000-7f52df673000 rw-p 0000e000 08:01 3152581                    /usr/lib/gtk-2.0/2.10.0/engines/libredmond95.so
7f52df673000-7f52df67c000 r-xp 00000000 08:01 2889169                    /usr/lib/libltdl.so.7.2.1
7f52df67c000-7f52df87b000 ---p 00009000 08:01 2889169                    /usr/lib/libltdl.so.7.2.1
7f52df87b000-7f52df87c000 rw-p 00008000 08:01 2889169                    /usr/lib/libltdl.so.7.2.1
7f52df87c000-7f52df88a000 r-xp 00000000 08:01 2889173                    /usr/lib/libtdb.so.1.2.1
7f52df88a000-7f52dfa89000 ---p 0000e000 08:01 2889173                    /usr/lib/libtdb.so.1.2.1
abort


Regards,

Christian.

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.