It works now with the full path in "pb, state = solve_pde('examples/linear_elasticity/its2D_2.py') "
Let me dive into sfepy to see if I can apply it to evaluate:
1. the displacement caused by mining excavation underground where the displacement field from gravity exist already;
2. plasticity in surrounding rocks
3. coupled liquid-solid fields in porous material to evaluate water flux into excavation from surrounding rocks and stresses etc.
On Tuesday, June 17, 2014 6:10:14 PM UTC+8, Robert Cimrman wrote:
On 06/17/2014 06:01 AM, Ouyang wrote:
> Hi all,
> I am new in sfepy. I have installed sfepy in my window 8 with python(x,y)
> 22.214.171.124 successfully and tested all examples. Everything is fine with that.
> But, as the subject indicated, I got errors when running
> solve_pde(’its2D_2.py’) of in interactive mode of ipython(sh).
> I follow the instructions at
> http://sfepy.org/doc-devel/installation.html#using-ipython to customize ipython.
> When I followed the instruction from 4.5.1 Running Sfepy in interactive
> mode to run "pb, state = solve_pde(’its2D_2.py’)" , I got the
> error: "ImportError: no module named its2D_2" as shown in the figure
You need to use the full path:
pb, state = solve_pde('examples/linear_elasticity/its2D_2.py')
Does that work?
> Any ideas? Thanks very much in advance.
> My system is window 8 and python(x,y) installed is 126.96.36.199 with packages
> of pyparsing-2.0.2.win32-py2.7,umfpackpy_0.2 and msysGit-netinstall-1.9.2.
> I install sfepy at C:/sfepy/ using git bash:
> git clone git://github.com/sfepy/sfepy.git