Quote:
|
Hi all
I had the same problem with the blank gnuplot's: Quote:
http://software.opensuse.org/search (just search for numpy and scipy and install both). The plots then worked fine. Regards Bernard |
Just another question - is there any way to zoom into certain areas of the plot?
If I right-click on the plot, I get a square that I can drag. I though this would produce a zoom of the area in the square, however I just get the following in the console: Quote:
|
Quote:
|
Quote:
|
Quote:
//Rasmus |
Quote:
Bernhard |
sorting of parsed dictionary
Hello Bernhard,
I have trouble understanding the sorting of your parser using the below expression: f=ParsedParameterFile(fileDict) Keys=f["addLayersControls"]["nameConventions"].keys() for the fileDict: addLayersControls { nameConventions // alphabetic order { GRO { nSurfaceLayers 4; } ROT { nSurfaceLayers 6; } WW { nSurfaceLayers 12; } } } I would like to have the same order as it is listed in the dict; unfortunately I get this order: ['WW', 'GRO', 'ROT']. Do you have a hint or idea, how to get this!? Would be great! Regards! Fabian |
Quote:
def keys(self): return self._order (self._order is used to output stuff int the order of the definition) but this fix will NOT change the order if you iterate over the dictionary itself (without .keys()) Bernhard |
Hi Bernhard,
thanks for the quick response! Quote:
Quote:
Quote:
Fabian |
Quote:
Bernhard |
Hi,
I would like to create a simple script that renders out a paraview state file at some time. I tried to reverse engineer your paraview related pyFoam utiliities and couldn't quite understand how the desired time is set. My terminal command is: Code:
paraview --script=./postproc/paraview/paraPlot.py Code:
from paraview.simple import * My other try: Code:
from paraview.simple import * In both cases the legends aren't scaled to data range. Is there a solution or one should modify the state file instead? What's the command for quiting paraview at the end of the script? Can someone advise some tutorials on python scripting paraview - stream tracer creation, slicing and contour plots, etc? This state file loading is not really impressive, contains a lot of boiler plate stuff, hard to edit and customize. It would be much better the other way around. Thank you! |
Hi,
I think you are better served with Python Scripting http://paraview.org/Wiki/ParaView/Python_Scripting or http://paraview.org/Wiki/Take_a_Scre..._of_a_VTP_File http://www.openfoamworkshop.org/6th_...rle_slides.pdf =>see slide Batch/reproducible workflow "topic macro" |
All times are GMT -4. The time now is 09:44. |