Home › Forum › SOFA › Using SOFA › Model Order Reduction Phase 3 (animation issue)
Tagged: 64_bits, Linux_ubuntu, Plugin_SoftRobots, SOFA_2006
- This topic has 5 replies, 3 voices, and was last updated 3 years, 10 months ago by Félix.
-
AuthorPosts
-
12 November 2020 at 22:03 #17653ArthurBlocked
Hello, I’m trying to use MOR on a simple scene where a disk shaped block of elastic is inflated by a cavity inside.
I am trying to use the default shaking as the function to animate (but I want to learn about how to animate specific functions).
Right now I am using the ipython notebook provided with my own scene, and it works up until phase3, where I get the following error:
[139658486859520] processing threaded sofa task in: /tmp/sofa-launcher-cOJiPc/phase2_prepareECSW.py [139658478466816] processing threaded sofa task in: /tmp/sofa-launcher-ijdbIZ/phase2_prepareECSW.py IOError : there is no /tmp/sofa-launcher-cOJiPc/elmts_disk.txt , check the template log to find why. Here some clue for its probable origin : - Your animation arguments are incorrect and it hasn't find anything to animate --------------------------------------------------------------------------- IndexError Traceback (most recent call last) <ipython-input-16-554842af6312> in <module>() ----> 1 reduceMyModel.phase3() /home/arthur/Documents/sofa/plugins/ModelOrderReduction/tools/../python/mor/reduction/reduceModel.pyc in phase3(self, phasesToExecute, nbrOfModes) 377 u.copyFileIntoAnother(results[self.phaseToSaveIndex]["directory"]+slash+fileName,self.packageBuilder.debugDir+fileName) 378 --> 379 self.reductionParam.massName = glob.glob(results[self.phaseToSaveIndex]["directory"]+slash+"*_reduced.txt")[0] 380 # print("massName -----------------------> ",self.reductionParam.massName) 381 u.copy(self.reductionParam.massName,self.reductionParam.dataDir) IndexError: list index out of range
Can anyone tell me what I am doing wrong? Or point me towards a similar post, I do not fully understand how the animate function works from this documentation.
I’m using the master branch of sofa (so that stlib will compile with it)
The scene and needed files can be found at:
https://uchicago.box.com/s/8v2wkv36csfmadhfk5l5phv0cn4j7sy229 November 2020 at 21:07 #17809ArthurBlocked9 December 2020 at 09:54 #17973ArthurBlockedHello @olivier-goury @felixvanneste,
I found your contact info on the MOR github page and I was wondering if you could help me out here.
I have changed my setup a bit but I am still getting the exact same error. (my code and files can be found here https://github.com/ripl-ttic/SofaFramework-Docker/tree/problem_illustration). [NB: the branch is not the master branch]
About: I am using ubuntu 18.04 and a set of compatible Sofa/STLIB/SoftRobots from this fall, (I couldn’t find a version of STLIB and SoftRobots that was compatible with 20.06 so I am using verions that were compatible with the master branch of sofa)
My environment is fully specified in the Docker file in this git repo where I have specified the commit of each library package I am using. https://github.com/ripl-ttic/SofaFramework-Docker/tree/problem_illustration/Dockerfile
I chose to do this so I could run STLIB and SoftRobots in a stable way, if there is a way to run STLIB/SoftRobots/MOR with Sofa20.06 I could not find it.
To run the code without docker you will need to copy the DiskModelOrderReduction.ipynb file from /workdir/MOR_test and run that.
Note: in order to run jupyter notebooks in docker you need to have x11 forwarding, I use x-docker to do this.
10 December 2020 at 20:43 #17998ArthurBlockedOn a related note, another question for @olivier-goury and @felixvanneste: will Model Order Reduction be compatible with python3 in the near future?
EDIT: My original follow up has seemed to disappear after I tried to edit it. I have posted it below.
Hello @olivier-goury @felixvanneste,
I found your contact info on the MOR github page and I was wondering if you could help me out here.
I have changed my setup a bit but I am still getting the exact same error. (my code can be found here https://github.com/ripl-ttic/SofaFramework-Docker/tree/problem_illustration) [NB: it is not the master branch]
About: I am using ubuntu 18.04 and a set of compatible Sofa/STLIB/SoftRobots, (I couldn’t find a version of STLIB and SoftRobots that was compatible with 20.06 so I am using verions that were compatible with the master branch of sofa)
My environment is fully specified in the Docker file in this git repo where I have specified the commit of each library package I am using. https://github.com/ripl-ttic/SofaFramework-Docker/tree/problem_illustration/Dockerfile
I chose to do this so I could run STLIB and SoftRobots in a stable way, if there is a way to run STLIB/SoftRobots/MOR with Sofa20.06 I could not find it.
To run the code without docker you will need to copy the DiskModelOrderReduction.ipynb file from /workdir/MOR_test and run that.
see also the readme.md on that repo for instructions on running the code.
Note: in order to run jupyter notebooks in docker you need to have x11 forwarding, I use x-docker to do this.
15 December 2020 at 12:32 #18027olivierBlockedHi Arthur,
Sorry for the late reply! I am not sure where the problem comes from, but looking at you scene, there is no reason why it should not work, and I think it should only be a minor issue. I will let @felixvanneste reply as he is more skilled in python related issues.
About the python3 compatibility, the answer is yes, it should become compatible very soon.We keep in touch,
Olivier5 January 2021 at 10:56 #18106FélixBlockedHello Arthur,
sorry for the late reply.
Can you check the log where the reduction is crashing ?
Taking what you have shown above as an example, in :
/tmp/sofa-launcher-cOJiPc/
Maybe we can debug this together by visio if you want, it will be easier.
You can send me a mail directly in order to organize that.Félix
-
AuthorPosts
- You must be logged in to reply to this topic.