|
[Sponsors] |
how to calculate mass flow rate on patches and summation of that during the run? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 21, 2013, 10:38 |
|
#61 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
thanks.youtube is blocked as Bernhard said(and also you had guessed).I have a anti filter in my windows don't know work in youtube or not and now I'm in linux.but links are great.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
April 21, 2013, 16:28 |
|
#62 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Calc is somewhat like Excel.
but times in folders that swak4Foam has written have common values as: in flowInlet folder 0 ends in 6.906849*10^-6 and folder 6e-6 starts in 6.008264*10^-6 instead of starting from times after 6.9 micro seconds. so its hard to track times specially due to very folders exist. can't modify it?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
April 21, 2013, 16:35 |
|
#63 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
Anyway, from what I read from Ehsan's response on another thread - although he did not specify what was the status on Google in his country - I no longer know where the truth lies...
__________________
|
||
April 21, 2013, 17:46 |
|
#64 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
what are you speaking about?
yes I'm in Iran. yes google is working in Iran( I think I told it to that arrogant guy).why are you ging to block google in Iran? does it have any immoral thing in it?it's just a well-known search engine.I'm surprised by repeating of this matter but youtube is blocked.but(again) it opens by anti filter.but( again too) due to somewhat low speed of Internet (although I have a 1024kbps that is high here in moderate prices:18 giga byte in 6 months for about 40$ in your currency probably) in transferring videos I gave it up. what can do to outputs of swak4FOAM postProcessing function flowInlet? ------------------------ ps:I just edited above post.but it doubled.so don't tell me later:why are you posting everything twice
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. Last edited by immortality; April 21, 2013 at 20:28. |
|
April 21, 2013, 18:28 |
|
#65 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
And the reply you wrote the other day did not specifically indicate that Google was working. And no, as far as I could understand, he was not being arrogant. The same way that machines are not arrogant, they simply act based on the instructions you provide them; and without sufficient information, they rely on "default values". OpenFOAM solvers don't crash because they are arrogant, they crash because they have insufficient/incorrect information to work with, therefore they crash . Uhm... based on my experience with computer software and science fiction: "Insufficient information. Does not compute. Please rephrase your question."
__________________
|
||
April 21, 2013, 20:22 |
|
#66 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
no its not right.you can ask me about such things that live in iran after this!maybe that site has intended youtube as a part of google.
I've heard that news programs in tv are not allowed to show highways or big biuldings or huge industry in iran and show desert pictures that imply that iran is like that.is it true? So i invite gladly you in iran in my little house to see everything from near But question:in flowInlet there are several folders that have partitioned mass flow rate values.but they have not ordered correctly. Simply imagine first folder has values of 0 until 2 seconds.second folder has values from maybe 1 to 4(in return of 2 to 4) And this makes a lot of effort for me to search among that huge number of numbers to find what value i should use to continue calculation in calc. Was i clear enough? ---------------------------------- this is ending numbers in 0 folder of flowInlet command: Code:
6.325320001e-06 -0.0004481739377 6.328400732e-06 -0.0004481602017 6.331481462e-06 -0.0004481612241 6.334562193e-06 -0.0004481622427 6.337642923e-06 -0.0004481632574 6.340723654e-06 -0.0004481642682 6.343804385e-06 -0.0004481652752 6.346885115e-06 -0.0004481662783 6.349965846e-06 -0.0004481672776 6.353046576e-06 -0.0004481682729 6.356127307e-06 -0.0004481692642 6.359208038e-06 -0.0004481702516 6.362288768e-06 -0.0004481712349 Code:
6.003164557e-06 -0.0004481315483 6.006329114e-06 -0.0004481326495 6.009493671e-06 -0.000448133753 6.012658228e-06 -0.0004481348585 6.015822785e-06 -0.0004481359658 6.018987342e-06 -0.0004481370748 6.022151899e-06 -0.0004481381854 6.025316456e-06 -0.0004481392975 6.028481013e-06 -0.0004481404111 6.03164557e-06 -0.000448141526 6.034810127e-06 -0.0004481426422 6.037964342e-06 -0.0004481333014 6.041118557e-06 -0.0004481344234 6.044272772e-06 -0.0004481355462 6.047426988e-06 -0.0004481366697 I try to progress well but I should want dear Bernhard to correct this issue in swak$FOAM postprocessing functions like flowInlet and flowOutlet whenever he had time.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. Last edited by immortality; April 22, 2013 at 11:05. |
|
April 22, 2013, 14:10 |
|
#67 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
i has taken all the day to obtain total mass by inserting 14 folder of huge numbers with repeated numbers and delete them and calculate mass in each of the sheets.and not have finished yet.
can't modify the calcmassflow or flowinlet function?because i need to repeat it several times untill the end of the work.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. Last edited by wyldckat; April 22, 2013 at 16:21. Reason: changed all text to lower caps... |
|
April 22, 2013, 17:30 |
|
#68 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Ehsan, I've edited your message and changed all of the text to lower case (used Kate, menu "Tools -> lower case"). In case you don't know, using upper case in text is interpreted in forums as shouting: http://en.wikipedia.org/wiki/Wikiped...avoid_shouting
And as for not answering sooner: I was busy at work all day. And you're lucky I came home sooner today... As for the problem you're having, it seems that you forgot to specify a very important step: this only happens if you have to continue running the solver after stopping it between two write intervals. In other words, I was only able to reproduce the same problem if I:
To solve this, there are two possibilities:
Caution:
Bruno
__________________
|
|
April 23, 2013, 07:06 |
|
#69 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
thank you very very much for your help and that useful script.
I guessed the cause would be that. could you please tell briefly how does it work? excuse me.I was so sleepy last night and didn't noticed caps lock was on. I have to set closing time of left patch when a shock that has reflected from right reaches it and wall should exactly start to close when it reaches the left patch again exactly so I had to run,stop it,look into it in paraview to see wht should be precise time,deleting some folders and go back to some extent and start again. this work (wave rotor) that I'm doing i notieced that two persons have done for Phd dessertation in Mitchigan university by Fluent.and one person http://www.cfd-online.com/Forums/ope...imulation.html that wanted to do it by openfoam couldn't at last do that (he replied to my email that he had gave up and had written a Fortran code with simplifications).but it work well after hard days that I was totally disappointed. there are only small issues(compare to before,like this that resolved) still has remained to finish.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. Last edited by immortality; April 23, 2013 at 10:29. |
|
April 26, 2013, 14:08 |
Urgent!
|
#70 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
I have encounter to a problem.
my run is untill .0004 and folders in swak4FOAM-flowInlet also are calculated till that time but when I use the script for merging all in the file is until .000239: Code:
0.0002387777778 -0.002981760061 0.0002388 -0.002981772972 0.0002388222222 -0.002981785983 0.0002388444444 -0.002981799093 0.0002388666667 -0.002981812297 0.0002388888889 -0.002981825595 0.0002389111111 -0.002981838983 0.0002389333333 -0.00298185246 0.0002389555556 -0.002981866022 0.0002389777778 -0.002981879668 0.000239 -0.002981893394
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
April 26, 2013, 19:49 |
|
#71 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Ehsan,
Well, the current script relies on the time folders having the same exact text as the respective column in the output files. For example, my guess is that you have:
But attached is now an improved script, which relies on awk to specifically check these values and print the ones we're looking for. I haven't tested it thoroughly, but it should work. Best regards, Bruno PS: The awk version I'm using: Code:
$ awk -W version mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan
__________________
|
|
April 26, 2013, 23:41 |
|
#72 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
thank you dear Bruno.i'll test it today.
Could you tell me how does this script do replacing action in old and new files? Does it search for a same time in old version that equals to first number of new file and replaces all of new file numbers after that?(did you figure out what i said! ) But i don't see a searching code in the script(although im not familiar with its language!) Please give me a brief description on how it works. Thanks. (i noticed my posts are now mostly in post processing thread it means you will feel relaxed from me and my banal questions soon if you help me more! )
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
April 28, 2013, 06:39 |
|
#73 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Ehsan,
The script relies on Linux/Unix/POSIX applications to get the job done. It uses the paradigm of having a series of small applications that have few or no bugs, because they only perform a well defined set of features. For example:
Best regards, Bruno
__________________
|
||
July 18, 2013, 10:02 |
|
#74 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Hi Bruno
Code:
ehsan@Ehsan-com:~/Desktop/WR_2$ ./arrange sed: can't read surface/faceSource.dat: No such file or directory sed: can't read surface/faceSource.dat: No such file or directory
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
July 18, 2013, 10:15 |
|
#75 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
and remembered to say there are some excess lines between columns.
how to change merge code to ignore them? like Code:
0 # Faces : 54 # Time sum(magSf) sum(phi) Code:
0.0001019237 1.20E-005 -0.0096182241 0.0001019322 1.20E-005 -0.0096181743 0.0001019407 1.20E-005 -0.0096181247 0.0001019492 1.20E-005 -0.0096180752 0.0001019576 1.20E-005 -0.0096180258 0.0001019661 1.20E-005 -0.0096179765 0.0001019746 1.20E-005 -0.0096179272 0.0001019831 1.20E-005 -0.0096178781 0.0001019915 1.20E-005 -0.0096178291 0.000102 1.20E-005 -0.0096177802 0 # Faces : 54 # Time sum(magSf) sum(phi) 0.0001020085 1.20E-005 -0.0096177492 0.0001020169 1.20E-005 -0.0096177184 0.0001020254 1.20E-005 -0.0096176625 0.0001020339 1.20E-005 -0.0096176137 0.0001020424 1.20E-005 -0.0096175648 0.0001020508 1.20E-005 -0.0096175161 0.0001020593 1.20E-005 -0.0096174674 0.0001020678 1.20E-005 -0.0096174189 0.0001020763 1.20E-005 -0.0096173705 0.0001020847 1.20E-005 -0.0096173222 0.0001020932 1.20E-005 -0.0096172741 0.0001021017 1.20E-005 -0.0096172262 0.0001021102 1.20E-005 -0.0096171784 0.0001021186 1.20E-005 -0.0096171308 0.0001021271 1.20E-005 -0.0096170834
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
July 21, 2013, 07:28 |
|
#76 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Ehsan,
Well, there is a saying that says something like: "the machine is always right". It says that the file "surface/faceSource.dat" does not exist. If it said that, it said it because the file doesn't exist... Now, the problem is that you're asking for the impossible here. All I know from the script you've attached is that two of those lines with "faceSource.dat" is giving you these error messages. To know which one it is, edit the arrange script and add this line after the first shebang line: Code:
set -x As for the issue with the 3 line headers instead of just one line: I need an example case. Best regards, Bruno
__________________
|
|
August 21, 2013, 06:45 |
|
#77 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Hi Bruno
I don't want 0 folder for postProcessing.how can exclude it from merge script? this is the messages from arrange script that uses merge script: Code:
grep: 0/totalTemperature_right: No such file or directory sed: can't read 0/totalTemperature_right: No such file or directory grep: 0/totalEnthalpy_right: No such file or directory head: cannot open `0/totalEnthalpy_right' for reading: No such file or directory grep: 0/totalEnthalpy_right: No such file or directory sed: can't read 0/totalEnthalpy_right: No such file or directory grep: 0/faceSource.dat: No such file or directory head: cannot open `0/faceSource.dat' for reading: No such file or directory grep: 0/faceSource.dat: No such file or directory sed: can't read 0/faceSource.dat: No such file or directory grep: surface/faceSource.dat: No such file or directory sed: can't read surface/faceSource.dat: No such file or directory grep: 0/totalPressure_left: No such file or directory head: cannot open `0/totalPressure_left' for reading: No such file or directory grep: 0/totalPressure_left: No such file or directory sed: can't read 0/totalPressure_left: No such file or directory grep: 0/totalTemperature_left: No such file or directory head: cannot open `0/totalTemperature_left' for reading: No such file or directory grep: 0/totalTemperature_left: No such file or directory sed: can't read 0/totalTemperature_left: No such file or directory grep: 0/totalEnthalpy_left: No such file or directory head: cannot open `0/totalEnthalpy_left' for reading: No such file or directory grep: 0/totalEnthalpy_left: No such file or directory sed: can't read 0/totalEnthalpy_left: No such file or directory grep: 0/faceSource.dat: No such file or directory head: cannot open `0/faceSource.dat' for reading: No such file or directory grep: 0/faceSource.dat: No such file or directory sed: can't read 0/faceSource.dat: No such file or directory grep: 0/faceSource.dat: No such file or directory head: cannot open `0/faceSource.dat' for reading: No such file or directory grep: 0/faceSource.dat: No such file or directory sed: can't read 0/faceSource.dat: No such file or directory grep: 0/faceSource.dat: No such file or directory head: cannot open `0/faceSource.dat' for reading: No such file or directory grep: 0/faceSource.dat: No such file or directory sed: can't read 0/faceSource.dat: No such file or directory grep: 0/faceSource.dat: No such file or directory head: cannot open `0/faceSource.dat' for reading: No such file or directory grep: 0/faceSource.dat: No such file or directory sed: can't read 0/faceSource.dat: No such file or directory grep: 0/faceSource.dat: No such file or directory head: cannot open `0/faceSource.dat' for reading: No such file or directory grep: 0/faceSource.dat: No such file or directory sed: can't read 0/faceSource.dat: No such file or directory grep: 0/faceSource.dat: No such file or directory head: cannot open `0/faceSource.dat' for reading: No such file or directory grep: 0/faceSource.dat: No such file or directory sed: can't read 0/faceSource.dat: No such file or directory grep: 0/n2_Maxp: No such file or directory head: cannot open `0/n2_Maxp' for reading: No such file or directory grep: 0/n2_Maxp: No such file or directory sed: can't read 0/n2_Maxp: No such file or directory grep: 0/n2_MaxU: No such file or directory head: cannot open `0/n2_MaxU' for reading: No such file or directory grep: 0/n2_MaxU: No such file or directory sed: can't read 0/n2_MaxU: No such file or directory grep: 0/n2_pressure_minMax: No such file or directory head: cannot open `0/n2_pressure_minMax' for reading: No such file or directory grep: 0/n2_pressure_minMax: No such file or directory sed: can't read 0/n2_pressure_minMax: No such file or directory grep: 0/n2_totalPressure: No such file or directory head: cannot open `0/n2_totalPressure' for reading: No such file or directory grep: 0/n2_totalPressure: No such file or directory sed: can't read 0/n2_totalPressure: No such file or directory grep: 0/U: No such file or directory head: cannot open `0/U' for reading: No such file or directory grep: 0/U: No such file or directory sed: can't read 0/U: No such file or directory grep: 0/T: No such file or directory head: cannot open `0/T' for reading: No such file or directory grep: 0/T: No such file or directory sed: can't read 0/T: No such file or directory grep: 0/p: No such file or directory head: cannot open `0/p' for reading: No such file or directory grep: 0/p: No such file or directory sed: can't read 0/p: No such file or directory grep: 0/rho: No such file or directory head: cannot open `0/rho' for reading: No such file or directory grep: 0/rho: No such file or directory sed: can't read 0/rho: No such file or directory grep: 0/h: No such file or directory head: cannot open `0/h' for reading: No such file or directory grep: 0/h: No such file or directory sed: can't read 0/h: No such file or directory thanks.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
August 21, 2013, 06:52 |
|
#78 | |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Quote:
---------------------------------------------- I saw in wikipedia that it is :#!/bin/sh
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
||
August 21, 2013, 07:21 |
|
#79 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Ehsan,
Bruno
__________________
|
|
August 21, 2013, 08:38 |
|
#80 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
I send emails so that you read them in weekend,but OK.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
|
|