CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] "pvpython" working from command line, but not from of240 shell environment

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 18, 2020, 07:07
Default "pvpython" working from command line, but not from of240 shell environment
  #1
New Member
 
Stu
Join Date: May 2016
Location: Prague
Posts: 6
Rep Power: 10
fluidstu is on a distinguished road
I installed pvpython with the hope of being able to use fabulous pyFoam tools like pyFoamPVSnapshot.py.

If I open new terminal window and type:
Code:
pvpython --help
I receive the expected help print out.

However, if I open new terminal window and initialise OpenFOAM 2.4.0 shell environment first:
Code:
of240
pvpython --help
then I receive the error:
Code:
Executing PVSnapshot with pvpython through a proxy-script options:
Error: Return code -11 executing /tmp/pyFoamPVSnapshot_DuBCZd.py
How can I fix this? Does it have something to do with of240 environment variables?

––––––––––––––

Info: I am running OpenFOAM 2.4.0 and ParaView 4.1.0 on Ubuntu 16.04.

Last edited by fluidstu; February 18, 2020 at 12:12.
fluidstu is offline   Reply With Quote

Old   February 18, 2020, 17:47
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
Does PyFoam still support 2.4?

Why do u still use such an old version? I was vitamin D in an apple when they've released 2.4.
HPE is offline   Reply With Quote

Old   February 19, 2020, 02:33
Default
  #3
New Member
 
Stu
Join Date: May 2016
Location: Prague
Posts: 6
Rep Power: 10
fluidstu is on a distinguished road
Quote:
Originally Posted by HPE View Post
Does PyFoam still support 2.4?
Yes. I'm able to use pyFoam with OF240.

I use it because the modelling system I use was built on this, and I'm too scared to update for fear of breaking something.

Any thoughts on the original question?
fluidstu is offline   Reply With Quote

Old   February 19, 2020, 18:37
Default
  #4
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
No, Im afraid. Yet I believe I gave the best advice.

Hope you solve your problem.
HPE is offline   Reply With Quote

Old   February 20, 2020, 04:14
Default
  #5
New Member
 
Stu
Join Date: May 2016
Location: Prague
Posts: 6
Rep Power: 10
fluidstu is on a distinguished road
Quote:
I was vitamin D in an apple when they've released 2.4.
OF240 was released in 2015. You didn't help at all, only offered incorrect, snarky comment.


Anyone want to address the original question?

Last edited by fluidstu; February 20, 2020 at 06:33.
fluidstu is offline   Reply With Quote

Old   February 20, 2020, 12:45
Default
  #6
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
Its engine is based on 2.x - which was first released in 2011 - and developed throughout 2010. What you don't understand is there is a reason why the version 3.0 was called 3.0, but not 2.5, as it underwent huge change.

>> only offered incorrect, snarky comment.

Sorry, I should have not done that. But, you are right, unfortunately.. I'm sorry..
HPE is offline   Reply With Quote

Reply

Tags
error, of240, pvpython


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.com] Setting of working environment in Ubuntu / WSL christoph81 OpenFOAM Installation 3 March 16, 2024 16:28
[Other] Fish shell environment configuration for OpenFOAM francois OpenFOAM Installation 2 October 22, 2015 17:37
[General] VTK API: Working with values inside the python shell Thoma ParaView 4 January 10, 2013 15:35
Setting working environment variable Arthur FLUENT 0 December 10, 2008 05:33
Debate on Working Environment Debate Main CFD Forum 11 December 20, 2000 00:21


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