|
[Sponsors] |
[PyFoam] fatal error on line 464 of pyFoamApplication.py |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 15, 2014, 23:09 |
fatal error on line 464 of pyFoamApplication.py
|
#1 |
New Member
Marta Drabek
Join Date: Oct 2014
Posts: 7
Rep Power: 12 |
Hello, I'm trying to post-process my results using pyFoamSamplePlot. This is what I have:
Code:
pyFoamSamplePlot.py --dir=sets ./postProcessing/ --info Times : ['0', '0.5', '1', '1.5', '2', '2.5', '3', '3.5', '4', '4.5', '5', '5.5', '6', '6.5', '7', '7.5', '8', '8.5', '9', '9.5', '10', '10.5', '11'] Lines : ['outletLine'] Fields: ['U'] Code:
pyFoamSamplePlot.py --dir=sets --field=U --time=1 ./postProcessing/ Code:
Error in /home/feba/OpenFOAM/PyFoam-0.6.3/bin/pyFoamSamplePlot.py : FatalError in PyFoam: 'PyFoam FATAL ERROR on line 464 of file /home/feba/OpenFOAM/PyFoam-0.6.3/lib/python2.7/site-packages/PyFoam/Applications/PyFoamApplication.py: No plots produced. Nothing done' in Application-class: SamplePlot The lines 460-464 of that PyFoamApplication.py file read as follows: Code:
def error(self,*args): """Raise a error exception. How it will be handled is a different story @param args: Arguments to the exception """ raise PyFoamApplicationException(self,*args) I'd appreciate your advice! |
|
November 16, 2014, 19:20 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
The problem seems to be that the utility can't find a line to plot that fits the specification. My first idea would be that the problem is that U is probably a vector. Then it would be a bug. Or the problem is that you specified the postProcessing-directory as the case (try --dir=postProcessing/sets instead).
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
November 17, 2014, 02:06 |
|
#3 |
New Member
Marta Drabek
Join Date: Oct 2014
Posts: 7
Rep Power: 12 |
Thank you for replying! I have realised that my .xy files are empty... I checked that they were created after running 'sample', but didn't open to see the content. Obviously, it can't see a line to plot, I'm sorry to have wasted your time on that.
However, the issue of 'sample' not sampling over the line persist. I have also tried appending a function in the controlDict file, and it's the same problem - it recognises the function and creates the .xy file, but no data inside (works just fine with point probes though). I've quadruple checked my coordinates, but is the coordinate system perhaps inconsistent with how we define the geometry in blockMeshDict? Any idea what might be causing this? Thanks! |
|
November 17, 2014, 06:07 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Anyway: have you checked the coordinates? Maybe the points you specified are outside. One way to check this is open your geometry in Paraview. Create from the "Sources"-menu a "Line". Enter the coordinates you specified and see if the line is where you expect it to be. In fact in the PyFoam-sources in the folder "examples/paraview3" there is a utility that does this for you. But it is unsupported and I haven't used it for some time so I'm not sure whether it works with current PV-versions
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] Structured meshing in Gmsh | the_phew | OpenFOAM Meshing & Mesh Conversion | 19 | August 24, 2022 04:19 |
[OpenFOAM] Take derivative of mean velocity in paraFoam | hiuluom | ParaView | 13 | April 26, 2016 07:44 |
[blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 06:42 |
Problems of Duns Codes! | Martin J | Main CFD Forum | 8 | August 15, 2003 00:19 |
error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 16:16 |