SaveData
Re: SaveData
hi daniel,
that sounds really nice!!!!!
it would be fantastic if you can do that for me!
can i use the script with the compiled version?
regards
martin
that sounds really nice!!!!!
it would be fantastic if you can do that for me!
can i use the script with the compiled version?
regards
martin
Re: SaveData
I am going to write it as soon as I can. But my home monitor doesn't work , so I have a typical hardware problem. Give me a couple of days. I will publish this script using my other sourceforge project (https://sourceforge.net/projects/elmerr ... ea/files/) python scripts, which was mentioned in viewtopic.php?f=9&t=319.
Regards
Daniel
Regards
Daniel
Re: SaveData
Ok
I have updated my project https://sourceforge.net/projects/elmerresultsrea/files/
and have added this script.
You have to install python http://python.org/
This script counts iterations for all timesteps in file taken as a output from ElmerSolver.
Remember to set greater then 4.
To have this log file you have to run ElmerSolver with command:
ElmerSolver > log_file
and then:
Elmer_iteration_reader.py in=log_file out=file_with_iterations
file_with_iterations is in format:
#timestep #iterations
1 10
2 9
etc....
In next version of this script I am going to add possibilty, that this script would save also convergance tolerance
Regards
Daniel Kucharski
I have updated my project https://sourceforge.net/projects/elmerresultsrea/files/
and have added this script.
You have to install python http://python.org/
This script counts iterations for all timesteps in file taken as a output from ElmerSolver.
Remember to set
Code: Select all
Max Output Level
To have this log file you have to run ElmerSolver with command:
ElmerSolver > log_file
and then:
Elmer_iteration_reader.py in=log_file out=file_with_iterations
file_with_iterations is in format:
#timestep #iterations
1 10
2 9
etc....
In next version of this script I am going to add possibilty, that this script would save also convergance tolerance
Regards
Daniel Kucharski
Re: SaveData
hi,
thanx for this, i will test it tomorrow.
sorry for beeing not in the forum, i had a removal to my new flat!
regards martin
thanx for this, i will test it tomorrow.
sorry for beeing not in the forum, i had a removal to my new flat!
regards martin
Re: SaveData
hi all,
when i use your script i got this error message:
it seems that the function "search_results" is missing!
i found it in your Elmer_ep.py script, so i put this script into the same folder but again the error!
i tried to import the Elmer_ep.py script in the other one but again errors.
sorry but im not so firm in python to fix it.
regards martin
when i use your script i got this error message:
Code: Select all
ELMER log reader version 0.1 25.02.2010
['C:\\Dokumente und Einstellungen\\Kan\\Desktop\\timetest2\\hand auf tisch\\haut
15_hand_auf_tisch_meereshoehe\\Elmer_iteration_read.py', 'in=log_file', 'out=fil
e_with_iterations']
C:\Dokumente und Einstellungen\Kan\Desktop\timetest2\hand auf tisch\haut15_hand_
auf_tisch_meereshoehe\Elmer_iteration_read.py
in=log_file
['in', 'log_file']
Iterations and Convergance Tolerance are taken from ['in', 'log_file']
out=file_with_iterations
Results will be write to file --> file_with_iterations
I am analysing file....
Traceback (most recent call last):
File "C:\Dokumente und Einstellungen\Kan\Desktop\timetest2\hand auf tisch\haut
15_hand_auf_tisch_meereshoehe\Elmer_iteration_read.py", line 97, in <module>
procedura_poszukiwawcza=search_results
NameError: name 'search_results' is not defined
i found it in your Elmer_ep.py script, so i put this script into the same folder but again the error!
i tried to import the Elmer_ep.py script in the other one but again errors.
sorry but im not so firm in python to fix it.
regards martin
Last edited by Koske on 11 Mar 2010, 17:12, edited 1 time in total.
Re: SaveData
hi,
i fixed the import issue with putting these line into the Elmer_iteration_read.py:
also numpy (for python) is required!
and i have to start the file with the complete directory, like:
but i have a least one error left:
so i thought it is the length of the string and tested this for start:
but again the same error!
regards martin
i fixed the import issue with putting these line into the Elmer_iteration_read.py:
Code: Select all
import Elmer_ep
and i have to start the file with the complete directory, like:
Code: Select all
Elmer_iteration_read.py in=C:\Dokumente und Einstellungen\Kan\Desktop\timetest2\hand auf tisch\haut15_hand_auf_tisch_meereshoehe\log_file out=C:\Dokumente und Einstellungen\Kan\Desktop\timetest2\hand auf tisch\haut15_hand_auf_tisch_meereshoehe\file_with_iterations
Code: Select all
Results will be write to file -->
Traceback (most recent call last):
File "C:\Dokumente und Einstellungen\Kan\Desktop\timetest2\hand auf tisch\haut
15_hand_auf_tisch_meereshoehe\Elmer_iteration_read.py", line 7, in <module>
import Elmer_ep
File "C:\Dokumente und Einstellungen\Kan\Desktop\timetest2\hand auf tisch\haut
15_hand_auf_tisch_meereshoehe\Elmer_ep.py", line 383, in <module>
print "\t\tResults will be write to file --> ",i[1],"\n"
IndexError: list index out of range
Code: Select all
Elmer_iteration_read.py in=C:\hand auf tisch\haut15_hand_auf_tisch_meereshoehe\log_file out=C:\hand auf tisch\haut15_hand_auf_tisch_meereshoehe\file_with_iterations
regards martin
Re: SaveData
Hi
I am going to check this right now. Sorry if there was some mistakes that i have done. Are you using python on windows or linux? which version?
Regards
DK
I am going to check this right now. Sorry if there was some mistakes that i have done. Are you using python on windows or linux? which version?
Regards
DK
Re: SaveData
Hi
I'm terrible sorry. I have checked this script, and it works good for me. Why? Because I'm using linux, and never test it under windows. There is one line which gives error. I forget to remove this line. When you run this script under windows this line search for a removed procedure. In linux this line is neglected. You have to remove line:
or you could download repaired script.
I have checked new version under windows and it works. If something is wrong, pls let me know.
Information about software needed to run both scripts are here:
viewtopic.php?f=9&t=319
Sorry and Regards
DK
I'm terrible sorry. I have checked this script, and it works good for me. Why? Because I'm using linux, and never test it under windows. There is one line which gives error. I forget to remove this line. When you run this script under windows this line search for a removed procedure. In linux this line is neglected. You have to remove line:
Code: Select all
if "win" in sys.platform:
procedura_poszukiwawcza=search_results
I have checked new version under windows and it works. If something is wrong, pls let me know.
Information about software needed to run both scripts are here:
viewtopic.php?f=9&t=319
Sorry and Regards
DK
Re: SaveData
hi daniel,
i have to say sorry for using windows!!!
the script works perfect!!!!!! thanks for this
regards martin
i have to say sorry for using windows!!!
the script works perfect!!!!!! thanks for this
regards martin
Re: SaveData
Hi
No problem. If you ever want some other script just ask me. If I would have enough time, I try.
Try also this second script Elmer_ep.py!
Regards
Daniel Kucharski
No problem. If you ever want some other script just ask me. If I would have enough time, I try.
Try also this second script Elmer_ep.py!
Regards
Daniel Kucharski