gtsPFacet
Dear all,
I'm try to study how to create a PFacet with the "yade.gridpface
#
from yade import qt
from yade.gridpfacet import *
import gts, os.path, locale
locale.
'''
if you get "Error: unsupported locale setting"
-> type as root: "dpkg-reconfigure locales"
-> choose "en_US.UTF-8" (press space to choose)
'''
################
### ENGINES ###
################
O.engines=[
ForceResetter(),
InsertionSortC
Bo1_Wall_Aabb(),
Bo1_PFacet_
],sortThenColl
InteractionLoop(
[
Ig2_Wall_
],
[
Ip2_FrictMat_
[
Law2_
Law2_
Law2_
]),
GlobalStiff
NewtonIntegrat
]
#################
### MATERIAL ###
#################
O.materials.
O.materials.
###################
### IMPORT MESH ###
###################
radius=1e-02
wire=False
fixed=False
z=-1.2
color=[0,0,1]
nodesIds0,
nodesIds1,
nodesIds2,
#######
##### Wall ###
#######
O.bodies.
##########
## VIEW ##
##########
qt.Controller()
qtv = qt.View()
qtr = qt.Renderer()
qtr.light2=True
qtr.lightPos=
qtr.bgColor=[1,1,1]
qtv.ortho=True
O.saveTmp()
#
I copy the script into yade and run it, the errors appear:
#
Traceback (most recent call last):
File "/usr/bin/yade", line 336, in runScript
execfile(
File "/usr/lib/
exec_(code, myglobals, mylocals)
File "718.py", line 60, in <module>
nodesIds0,
File "/usr/lib/
surf=
FileNotFoundError: [Errno 2] No such file or directory: 'octahedron.gts'
#
It reminds me there is no 'octahedron.gts' file.But I don't know how to create this kind files. If there is anybody knowing about this, could you teach me how to create the gts files and show me an example?
Many thanks!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Lei Hang
- Solved:
- Last query:
- Last reply:
This question was reopened
- by Lei Hang