I0Error: [Errno 2]

Asked by enki

The terminal displays the following duplicated error:

IOError Traceback (most recent call last)
/usr/bin/yade in <module>()

/usr/bin/yade in checkStress()
    138 global flag
    139 if fabs(getStress().trace()/3.0)>=finalconso_p or O.cell.size[0] <=750:
--> 140 fabric()
    141 addPlotData()
    142 print("mean stress p",fabs(getStress().trace()/3.0),separator="=")

/usr/bin/yade in fabric()
    199 #fabricTensor=utils.fabricTensor(cutoff=0.0,splitTensor=True,thresholdForce=0.0)
    200 consoFabricfile=os.getcwd()+'/consofabric/'+'consofabric'+str(O.iter)
--> 201 f1=open(consoFabricfile,'w')
    202 f1.write('id1 id2 id1_x id1_y id1_z id2_x id2_y id2_z Fn_x Fn_y Fn_z Fs_x Fs_y Fs_z contactp_x contactp_y contactp_z overlap_distance r1 r2\n')
    203

IOError: [Errno 2] No such file or directory: '/home/dem/Wanqi/2D/2Dexa/1/consofabric/consofabric438'

Does this mean I need to create more particles? Or set a smaller velocity for periodic boundaries?

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
enki
Solved:
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hello,
please read [1] and provide a MWE.
Cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask

Revision history for this message
enki (kikiyu) said :
#2

Thanks Jan,

I've solved this problem.

Revision history for this message
Jan Stránský (honzik) said :
#3

For future reference, please provide:
- a MWE illustrating the error
- how you have solved it
Thanks
Jan

Revision history for this message
Robert Caulk (rcaulk) said :
#4

I'll take a wild guess and say he/she solved this by creating the directory called "consofabric" in the working dir.

Revision history for this message
enki (kikiyu) said :
#5

Thanks Robert, I actually solved the problem like you said.