Question about revinp 回答済み

I am running a simulation with parameter sweep and getting over 100 simulation files at the end. To save the time, I want to write a revinp script to process the data. Is it possible to read files in different folders recursively in revinp (like in a for loop)? 
 
In addition, when I use revinp file to plot the data (same code as the online tutorial), the plot pops out and crashes immediately after I run the review. I am able to save the data into file, but just not able to keep the plot. What is the problem and is there a way to solve it?

3件のコメント

  • 正式なコメント

    Hi Jessica,

    Yes it is possible to set up a loop to read in the different outputs from the sequential folder numbers:

    do MyLoop I 1 $nfiles 1

    c Read data
    text fName = '$I/simoutput.flxhst'
    read f1 $fName

    c Perform some post processing...

    end$ MyLoop

     

    Can you point me towards the review tutorial you are using and we can review?

    Thanks,

    Kevin

     

     

     

    コメントアクション Permalink
  • https://support.onscale.com/hc/en-us/articles/360017960392-What-is-Review-

     

    Thanks for your response! This is the tutorial that I used. I just put the simple code as:

    read f1 'xx.flxhst'
    
    grph
        plot f1 1
        writ mydata.txt
        end

    The text file is okay but the plot crashes immediately when I run the review.

    コメントアクション Permalink
  • Hi Jessica,

    This code is correct, the plot should just flash up and close. If you want to view the plot, add a term after the plot. This will terminate the code (and allow you to view the plot) until you click run again or enter term into the console.

    e.g.

    read f1 'xx.flxhst'
    
    grph
        plot f1 1
        writ mydata.txt
        end
    term

    Best Regards,

    Chloe

    コメントアクション Permalink

サインインしてコメントを残してください。

お探しのものを見つけられませんでしたか?

新規投稿