Quote:
Just to clarify: the purpose of the frequency-option is "only redo the plot every x seconds" the purpose of this is that otherwise for small runs with a lot of timesteps the plotting becomes more time-consuming than the actual calculation (because the plotting would occur several times a second) |
Quote:
|
Hi all!
I want to extend the pyFoamPlotWatcher so it also plots the phase fraction. I have an inlet in my computation so it would be nice to see that. As the structure is rather complex i wanted to ask for a hint, where it makes sense to add this function. I have my own (bash)script which gives me this plot, but as a post processing step, and not during runtime. So I think it cant be too difficult to integrate that. Thanks for any hints! |
Quote:
Adding application-specific patterns to PyFoam itself will decrease its overall performance as it will look for that pattern in every line even if the solver doesn't write such a line (and looking for these patterns is currently the bottleneck in the pyFoamWatcher anyway) Bernhard |
Hi Bernhard,
reasonable.. nothing more to say :) thanks for your comment and the hint about the custom regexp Best wishes |
AttributeError
Hi,
after some time of foaming I found some time to investigate pyFoam and I wish it have happened earlier, thank you for it. However I have a problem which seems to be some quotation mark issue or similar, using the templates from the advanced Gothenburg training: Code:
rakai@lab1:~/OpenFOAM/rakai-2.0.0/run/pyFoamAdvanced/pyFoamAdvanced.git/testSeparator$ pyFoamFromTemplate.py constant/polyMesh/blockMeshDict "{'preLen':0.2, 'cavitiyWidth':0.15, 'channelHeight':0.1, 'interLen':0.05, 'cavityDepth':0.02, 'dx':0.005}" Any hints? Thank you Aniko |
Quote:
Best fix I can offer is: go to FromTemplate.py and add the lines with the + (but without the +) after the other two lines: Code:
fName=self.parser.getArgs()[0] |
Problem solved, thank you
Thank you, adding the + lines solved the problem.
The --values-string option I tried but does not work, I am using pyFoam-Version: 0.5.7. Code:
pyFoamFromTemplate.py: error: no such option: --values-string |
Quote:
|
Btw, can pyfoam be used via ssh if I am using a remote cluster? I installed it on the remote cluster and set the path and using ssh -Y option but there is still error. :(
|
Quote:
|
hello Berrnad.
i get this error Quote:
Kind regards Izna |
Quote:
|
hi Bernard.. Even on installing all these i get the error that nympypy does nto exist..
I have found a case on the net and i wish to run ./Allrun and view it but try as i might it is not working.. i am sending you the case. http://openfoamwiki.net/index.php/Fi...emplate.tar.gz Apparently this use the pyfoam library.. Kind regard izna |
Quote:
To check that numpy is not installed try Code:
python -c "import numpy;print numpy.__version__" |
hi Bernard
NUmpy has been installed Quote:
Quote:
|
hi again bernard
By the way i am running this case which i found from the internet... |
1 Attachment(s)
attached is the case..If you wish to check it out..
|
Greetings to all!
@Izna: Clearly the problem is that gnuplot is not installed: Quote:
Code:
sudo apt-get install gnuplot Bruno |
Hi Bruno...
After having installed the application i get errors still Quote:
|
All times are GMT -4. The time now is 21:30. |