← Back to team overview

yade-users team mailing list archive

Re: [Question #537735]: Error Stl import

 

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

Luis Barbosa gave more information on the question:
Hi,

________script______________

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

# F.T. Silva grupodemfeagri@xxxxxxxxx
# Script to define a numerical model for shear box

from yade.pack import *
from yade import pack,export,qt
from yade import plot
from yade import ymport

#Def of the material which will be used


rod1 = O.bodies.append(ymport.stl('caixasuperior.stl'))

sp=pack.SpherePack()

sp.makeCloud((-35,-45,-35),(35,250,35),rMean=10,periodic=False,porosity=0.8,distributeMass=False,seed=0)
sp.toSimulation()

O.engines=[
	ForceResetter(),
	InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Facet_Aabb(),Bo1_Box_Aabb()]),
	InteractionLoop(
		[Ig2_Sphere_Sphere_ScGeom6D(),Ig2_Box_Sphere_ScGeom6D(),Ig2_Facet_Sphere_ScGeom6D()],
		[Ip2_FrictMat_FrictMat_FrictPhys()],
		[Law2_ScGeom_FrictPhys_CundallStrack()],

	),
	NewtonIntegrator(damping=0.7, gravity=[0,-9.81,0]),
	GlobalStiffnessTimeStepper(active=1,timeStepUpdateInterval=100,timestepSafetyCoefficient=0.8),
	]


qt.Controller()

qt.View()


_____STL FILE______

[1] https://drive.google.com/open?id=0B9LhrwAf_vasS2VJLUZBakZzMTA

_______ERROR MESSAGE____________
Welcome to Yade 2017.01a-11-11c276f~xenial 
TCP python prompt on localhost:9000, auth cookie `skuacd'
XMLRPC info provider on http://localhost:21000
Running script teste3_strain.py
ERROR /data/trunk/pkg/dem/STLImporter.cpp:23 import: Can't open file: caixasuperior.stl
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view (use h-key for showing help), F10 both, F9 generator, F8 plot. ]]


Thank you,
Luis

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.