CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

how to calculate mass flow rate on patches and summation of that during the run?

Register Blogs Community New Posts Updated Threads Search

Like Tree23Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2013, 10:38
Default
  #61
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Old   April 21, 2013, 16:28
Default
  #62
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Old   April 21, 2013, 16:35
Default
  #63
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by gschaider View Post
Bruno. Have you looked at the country the guy's from? The school blocking/censoring YouTube is the smallest problem
Hi Bernhard! I've stopped fully trusting the "international media" sometime ago... hell, I can barely trust the local media for that matter Specially when it comes to numbers... irgh... what was the number just the other day... "283.283€" got misplaced or some something like that...

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...
__________________
wyldckat is offline   Reply With Quote

Old   April 21, 2013, 17:46
Default
  #64
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Old   April 21, 2013, 18:28
Default
  #65
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by immortality View Post
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?
The "international media" reported some time ago that Google was being blocked or partially blocked in Iran.
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 .

Quote:
Originally Posted by immortality View Post
what can do to outputs of swak4FOAM postProcessing function flowInlet?
Uhm... based on my experience with computer software and science fiction: "Insufficient information. Does not compute. Please rephrase your question."
__________________
wyldckat is offline   Reply With Quote

Old   April 21, 2013, 20:22
Default
  #66
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
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
and this is for 6e-6 folder,some early numbers:
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
these are not continous and make some mistake.
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.
immortality is offline   Reply With Quote

Old   April 22, 2013, 14:10
Default
  #67
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
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...
immortality is offline   Reply With Quote

Old   April 22, 2013, 17:30
Default
  #68
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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:
  1. Start the solver from the time "0".
  2. Hit Ctrl+C after several iterations and writing several time snapshots, therefore stopping the solver between two write intervals.
  3. Launch the solver again, with the "startTime" set to "latestTime" in "controlDict". This will create a new folder and file for the mass flow done with swak4Foam.

To solve this, there are two possibilities:
  1. Do not stop the solver using Ctrl+C. Use a more deterministic approach of stopping only at the specific writing time. It'll then be easier to merge the two files.
  2. Or use the attached script for performing the mergers for you. To use it:
    1. Unpack the attached file into the case folder you're working on:
      Code:
      tar -xf ./mergeOutputFolderWith0.tar.gz
    2. If you simply run the script, it will tell you how to use it:
      Code:
      ./mergeOutputFolderWith0
      It outputs:
      Code:
      Missing arguments. Description of arguments:
        mergeOutputFolderWith0 <output_folder_that_has_data> <file_name>
      
      Example:
        mergeOutputFolderWith0 swakExpression_flowInlet flowInlet
      Note: it will output the merged list to the current terminal screen.
    3. To run it by sending the resulting list to a file, for example to send it to the new file "flowInlet_test", run:
      Code:
      ./mergeOutputFolderWith0 swakExpression_flowInlet flowInlet > flowInlet_test
      • Note: In my testing example, the folder structure looked like this:
        Code:
        swakExpression_flowInlet/
        ├── 0
        │   └── flowInlet
        ├── 2e-05
        │   └── flowInlet
        └── 8.2e-05
            └── flowInlet
        Command I used for the output above:
        Code:
        tree swakExpression_flowInlet


Caution:
  • The attached script relies on having a good sort application version installed. I used:
    Code:
    $ sort --version
    sort (GNU coreutils) 8.13
    Copyright (C) 2011 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    
    Written by Mike Haertel and Paul Eggert.
    Installed it in Ubuntu (I'm using 12.04) by running:
    Code:
    sudo apt-get install coreutils
  • Complex folder numbers might give out problematic results. For example, a folder with the value "1.2312418726148e-02" might not work properly.
Best regards,
Bruno
Attached Files
File Type: gz mergeOutputFolderWith0.tar.gz (451 Bytes, 7 views)
immortality likes this.
__________________
wyldckat is offline   Reply With Quote

Old   April 23, 2013, 07:06
Default
  #69
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Old   April 26, 2013, 14:08
Default Urgent!
  #70
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
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
is thare a limit on capacity of a text file?how to resolve?
__________________
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.
immortality is offline   Reply With Quote

Old   April 26, 2013, 19:49
Default
  #71
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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:
  • 0.000239 is the text inside the output file
  • 2.39e-04 is the name of the time folder
If this happens, then the previous merging script will not work.

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
Attached Files
File Type: gz mergeOutputFolderWith0_v2.tar.gz (546 Bytes, 3 views)
immortality likes this.
__________________
wyldckat is offline   Reply With Quote

Old   April 26, 2013, 23:41
Default
  #72
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Old   April 28, 2013, 06:39
Default
  #73
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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:
The previously attached scripts use each one of these applications to get the job done. In summary:
  1. Collect the list of time folders and sorts them by value, not by character.
  2. Echo the header line from the first file.
  3. Go through the specified output files, one at a time by ascending order;
  4. Echo the lines while taking into account the value of the next time folder, where anything beyond that time is ignored, since it will be retrieved from the next folder. Oh, and the header line is ignored, since we only need it once.
Here are two extensive guides to learn how to do all of this:
Best regards,
Bruno
immortality likes this.
__________________
wyldckat is offline   Reply With Quote

Old   July 18, 2013, 10:02
Default
  #74
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
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
which line has a mistake in it?
Attached Files
File Type: gz arrange.tar.gz (521 Bytes, 1 views)
__________________
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.
immortality is offline   Reply With Quote

Old   July 18, 2013, 10:15
Default
  #75
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
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)
in:
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.
immortality is offline   Reply With Quote

Old   July 21, 2013, 07:28
Default
  #76
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
Then run the script again. With this option, it will show you the commands the script is running and the error messages should appear right after the guilty command lines.


As for the issue with the 3 line headers instead of just one line: I need an example case.

Best regards,
Bruno
immortality likes this.
__________________
wyldckat is offline   Reply With Quote

Old   August 21, 2013, 06:45
Default
  #77
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
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
and could you please do test on the case I sent you by email?
thanks.
Attached Files
File Type: gz merge.tar.gz (691 Bytes, 1 views)
File Type: gz arrange.tar.gz (526 Bytes, 0 views)
__________________
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.
immortality is offline   Reply With Quote

Old   August 21, 2013, 06:52
Default
  #78
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
Quote:
To know which one it is, edit the arrange script and add this line after the first shebang line:
Code:
set -x
and where I have to add this option?what's shebang line?
----------------------------------------------
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.
immortality is offline   Reply With Quote

Old   August 21, 2013, 07:21
Default
  #79
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Ehsan,
  1. I sent you an email earlier this week indicating that I won't be able to see the emails you send me during this week.
  2. In the merge script, adjust the following line, accordingly to the first time folder you want:
    Code:
    nowtimefolder="0"
  3. The shebang is the first 2 characters on the script, namely the "#!": http://en.wikipedia.org/wiki/Shebang_%28Unix%29
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 21, 2013, 08:38
Default
  #80
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 16:20.