what is the detailed method to run wsys-particle-win in windows

Asked by Li Zhiyong

Q1. I am completely fresh about the ESyS-Particle, and I have build the esys-particle-win successfully according to the instruction provided in the launchpad, however I do not know what to do next.
I thought I should write a .py file defining initialization, boundary, particles, etc, and then open it by Python or sth else,
There is a bingle .py file in the output folder after running the test in the build procee, it is supposed to open that from Python GUI? or Python.exe? When I open that by Python GUI, the pythonw.exe crashed for some reason.

Q2. I built the esys-particle-win on another windows PC, however, when I run the test python script, it is said that
connect on sock <host=localhost, port=8678> failed, exhaused all end points Unable to connect to "localhost:8678"
sock error:Error = -1

Looking forward to your reply.

Question information

Language:
English Edit question
Status:
Solved
For:
ESyS-Particle Edit question
Assignee:
No assignee Edit question
Solved by:
Feng Chen
Solved:
Last query:
Last reply:
Revision history for this message
Feng Chen (fchen3-gmail) said :
#1

1. You should read ESyS-Particle tutorial before running your own problem, which is suggested in ESyS-Particle manual:-)))

New users are encouraged to read the ESyS-Particle Tutorial:
http://launchpad.net/esys-particle/2.1/esys-particle-2.1/+download/ESyS-Particle_Tutorial-v2.1.pdf

Python file (*.py) can be opened by any text editor, e.g. notepad, notepad++ (which is recommended on windows), but using MS Word is highly discouraged, and vi, vim or emacs, gedit (on Linux), I also suggest google or baidu "python tutorial" if you do not have any previous programming experiences

2. I guess you might not have an internet connection or local network connection OR you have prohibited access to network for mpipython.exe? ESyS-P need a network connection (no matter it is valid or not) to run.

Feng

Revision history for this message
Li Zhiyong (lizhiyong4216) said :
#2

Dear Feng,
To use the modules, I should import the modules path to the python, and before that, I have to added the esys/lsm direction to it, then when I import the esys.lsm, error occurs:
ImportError: cannot import name InstallInfo
It is because of sth wrong with the fiel 'InstallInfo' or '_init_.py'? or sth else?
Regards
Li

Revision history for this message
Li Zhiyong (lizhiyong4216) said :
#3

When I type the command
 "sim = LsmMpi(numWorkerProcesses=nwp, mpiDimList=[nx,ny,nz])"
into the Python command line, the Python.exe crashed at once.
there must be some configuration wrong,But when I build the esys and run the testrun.bat, in is OK,
Regards
Li

Revision history for this message
Best Feng Chen (fchen3-gmail) said :
#4

Hi, Zhiyong:

It appears you need to know some fundamental concepts about MPI and python to understand something behind the instructions. If you have not yet taken any courses in programming languages (such as C/C++/Fortran). I would suggest you read some tutorials about MPI and Python, actually there are numerous good tutorials on the web, below are some links I searched from google, :

About MPI:

https://computing.llnl.gov/tutorials/mpi/

About Python:

http://wiki.python.org/moin/BeginnersGuide

and there is also a Chinese version for this:

http://wiki.python.org/moin/BeginnersGuideChinese

Take a few days to go over these materials before diving into ESyS-Particle (although your still can, it will be very inefficient for you), a workman must first sharpen his tools if he is to do his work well.

Feng

Revision history for this message
Li Zhiyong (lizhiyong4216) said :
#5

Solved

Revision history for this message
Li Zhiyong (lizhiyong4216) said :
#6

Thanks Feng Chen, that solved my question.