PRISMS Plasticity on Ubuntu 22.04

148 views
Skip to first unread message

DANISH KHAN

unread,
May 28, 2022, 6:46:27 PM5/28/22
to Prisms-CPFE-users
Hello PRISMS Plasticity community,

Is anyone on this group using PRISMS Plasticity on latest Ubuntu 22.04? I recently installed on it and it seems that there is some issue on Ubuntu 22.04. 

First difference is that, while installation on Ubuntu 22.04, sudo apt-get install python doesnt install python (as it no more recognises "python" as a package and you have to mention the exact distribution). So I installed with "python2". 

I noticed that installation happened normally. I ran few examples, the simulation ran fine but I see that all the "out_var" variables are not having correct values in vtk file (all of the order of 1e-38 or so). Secondly, the equivalent stress values are lower in order. The stressstrain values in StressStrain.txt file is almost half of the expected value. The same input files, as it s, work perfectly fine on Ubuntu 18.04 and 20.04. 

I realized that ubuntu no more by default calls python 2.7 by just typing  "python" in the terminal. So I had set the alias for python2.7 as "python" and reinstalled everything (right from "./candi.sh" till "make release" of crystal plasticity). But there is still no change in the outputs generated. 

I am not sure if anyone has also faced the same issue/ made it work. Any kind of inputs would be helpful. 

Regards,

Danish

DANISH KHAN

unread,
May 29, 2022, 4:48:02 PM5/29/22
to Prisms-CPFE-users
Ok, I somehow made this work. I did a lot of things and I dont know which step really made it work :). But I think two things were crucial:

1) Since in Ubuntu 22.04, "python" command does not directly call python2.7, we need to create a symbolic link to the python2.7 executable (setting alias alone doesnt work)
2) While changing calculcatePlasticity.cc, its important that we run the "make release" first by deleting the calculatingPlasticity.cc, and getting the error. Followed by changing the calculctePlasticity.cc file , and then running "make release"

Hope these two tips help anyone who is struggling with the same issue on new Ubuntu.

Regards,

Danish

Mohammadreza Yaghoobi

unread,
May 30, 2022, 1:06:18 AM5/30/22
to DANISH KHAN, Prisms-CPFE-users
Thanks Danish for posting your updates here.

Thanks
Reza

--
You received this message because you are subscribed to the Google Groups "Prisms-CPFE-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prisms-cpfe-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prisms-cpfe-users/102de476-e6b6-4fc7-9f4a-ca71eacb65ean%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages