← Back to team overview

yade-dev team mailing list archive

Re: Fixing the examples FEMxDEM

 

I did read https://yade-dev.gitlab.io/trunk/FEMxDEM.html :) Wondering
what I could add there if I manage to make it work.

But no, it still doesn't work.

But I am getting closer. I see that the error is related to missing
file ./py/FEMxDEM/msFEM2D.py, I tried export PYTHONPATH=../../py/FEMxDEM
with this I have a more familiar error:

ImportError: No module named yadeimport

which means that I'm on the right track.


Bruno Chareyre said:     (by the date of Sun, 27 Jan 2019 18:31:28 +0100)

> So it now works? If so congrats.
> I realize you may not be aware of doc pages about using fem*dem. There was
> maybe a solution there.
> Bruno
> 
> Le dim. 27 janv. 2019 17:39, Janek Kozicki <janek_listy@xxxxx> a écrit :
> 
> > I discovered that running this:
> >
> > run-escript yade ./biaxialSmooth.py
> >
> > produces a different error message:
> >
> > Traceback (most recent call last):
> >   File "../yade", line 241, in runScript
> >     execfile(script,globals())
> >   File "./biaxialSmooth.py", line 9, in <module>
> >     from msFEM2D import MultiScale
> > ImportError: No module named msFEM2D
> >
> > So finally importing esys.escript worked.
> >
> >
> > Janek Kozicki said:     (by the date of Sun, 27 Jan 2019 15:54:17 +0100)
> >  
> > > I have found out that if I run from shell /usr/bin/run-escript (which
> > > is a part of python-escript package) then a python shell is started
> > > inside which the command
> > >
> > >   from esys.escript import *
> > >
> > > works. That is some progress. Now I don't know how to make it work
> > > inside yade python shell.
> > >
> > >
> > > Janek Kozicki said:     (by the date of Sun, 27 Jan 2019 01:28:47 +0100)
> > >  
>  [...]  
> > +0100)  
>  [...]  
>  [...]  
>  [...]  
> > >
> > >
> > > --
> > > Janek Kozicki                               http://janek.kozicki.pl/  |
> > >
> > > _______________________________________________
> > > Mailing list: https://launchpad.net/~yade-dev
> > > Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
> > > Unsubscribe : https://launchpad.net/~yade-dev
> > > More help   : https://help.launchpad.net/ListHelp  
> >
> >
> > --
> > Janek Kozicki                               http://janek.kozicki.pl/  |
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~yade-dev
> > Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~yade-dev
> > More help   : https://help.launchpad.net/ListHelp
> >
> >  


-- 
Janek Kozicki                               http://janek.kozicki.pl/  |


Follow ups

References