Jump to content
qchen

How to use python to load Flux project and to post process

Recommended Posts

Hi, everyone

 

This may seem a dumb question. I need to do some repetitive work in Flux. I know I can use the python editor to in Flux to run some commands, but what I am trying to do is to use python IDE to run the python commands to load FLU  project and of course do other stuff such as changing parameter and post processing, without having to open Supervisor to launch the project and do work in Flux as what people usually do.

 

I can not find any useful material related to this...so if someone can tell me how to do this, or give an example/tutorial, it would be of great help. Thanks!

 

PS: I've tried similar work by using MATLAB, but changing the python command into MATLAB command is really hideous work...

 

Kind regards,

 

Qibin Chen

Share this post


Link to post
Share on other sites
1 hour ago, Yann Le FLoch said:

Hi,

You can find in the installation directory of Flux an exemple of used of the python API for Flux.

"install directory"\flux\Flux\Api\Jython\

 

Regards

 

Yann

 

Dear Yann,

 

Thanks for you reply.

 

I tried to run the flux_mp.py as you suggested with Python 2.7.15, but the error ' NameError: name 'FMP_startLocaleServer' is not defined ' shows up (I already changed the working directory in the FMP_startLocaleServer function). May I ask why?

 

Kind regards,

 

Qibin

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...