CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [PyFoam] pyFoamVtkSurface (https://www.cfd-online.com/Forums/openfoam-community-contributions/129178-pyfoamvtksurface.html)

Essy January 30, 2014 06:00

pyFoamVtkSurface
 
Hi

I am using pyFoamSurfacePlot.py to create some animations. It works fine as long as I am importing files from my computer but when I want to use some files from SFTP there is a problem! it seems that it can not access SFTP. Do I need to install especial libs for this purpose?

I appreciate any Idea.

Thanks

Ehsan

gschaider January 30, 2014 06:16

Quote:

Originally Posted by Essy (Post 472527)
Hi

I am using pyFoamVtkSurface.py to create some animations. It works fine as long as I am importing files from my computer but when I want to use some files from SFTP there is a problem! it seems that it can not access SFTP. Do I need to install especial libs for this purpose?

I appreciate any Idea.

Thanks

Ehsan

I'm responsible for a lot of crimes that start with pyFoam and end with .py but that one is new to me. And googling for "pyFoamVtkSurface.py" didn't get me anything relevant. Where have you got that from? (just curious, won't sue anyone for trademark. I Promise)

Essy January 30, 2014 08:44

Thank you Bernhard for your quick reply. Sorry I made a mistake! As You might have guessed the correct name of the script is "pyFoamSurfacePlot.py". Is there any way to have this utility access cases which are on the SFTP?

gschaider January 30, 2014 10:03

Quote:

Originally Posted by Essy (Post 472560)
Thank you Bernhard for your quick reply. Sorry I made a mistake! As You might have guessed the correct name of the script is "pyFoamSurfacePlot.py". Is there any way to have this utility access cases which are on the SFTP?

First reaction was "maybe I wrote a utility of that name and forgot about it"

Anyway: no. There is no direct support for SFTP. And it wouldn't make much sense as in order to plot the files they would have to be loaded over the network (acually TWICE: once to look at them for minima and maxima and a second time for the actual plotting).

Anyway: what I'd suggest is "SSH over FUSE":
http://en.wikipedia.org/wiki/SSHFS
That looks like a regular filesystem (so pyFoamSurfacePlot.py can work with it)

Essy January 31, 2014 01:30

Many thanks for your help Bernhard. It works fine with SSHFS!


All times are GMT -4. The time now is 12:17.