Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
FDS How to run a Batch File (I have the necessary files but not sure where I am going wrong)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ronald  
View profile  
 More options Jul 12 2012, 3:34 pm
From: Ronald <rnt...@gmail.com>
Date: Thu, 12 Jul 2012 12:34:20 -0700 (PDT)
Local: Thurs, Jul 12 2012 3:34 pm
Subject: FDS How to run a Batch File (I have the necessary files but not sure where I am going wrong)

*Introduction*
I am fairly new to FDS (just started working with it for a couple of weeks
now), and forgive me for asking a very basic question. But if anyone can
help me pinpoint the problem in the code, you help will be greatly
appreciated.

*The Code (changed the original file when FDS was downloaded)*
*The Run_All_MIST.sh file:*

#!/bin/bash -f
export FDS=/opt/FDS/FDS5/bin/fds5_linux_64                      /this is
where the fds program/exe file resides in
export RUNFDS=~/TestCasesv1/Run_All_MIST.sh                /this is where
the sh files resides in
export BASEDIR=`pwd`

./FDS_MIST_cases.csh                                                    
 /this is when the files uses the csh file listed below.

echo FDS cases submitted

*This is the file FDS_MIST_cases.csh:*

#!/bin/csh -f

$RUNFDS Test0 MIST_77_725       /this just lists all of the files that I
want to run and $RUNFDS is defined in the Run_All_MIST.sh file
$RUNFDS Test1 MIST_71_725       /the folder Test0-Test5 is in the folder
TestCasesv1 defined on the line RUNFDS in the sh file
$RUNFDS Test2 MIST_77_675      
$RUNFDS Test3 MIST_77_775          
$RUNFDS Test4 MIST_80_725                
$RUNFDS Test5 MIST_83_725            

So the problem is not with the individual files from Test0-Test5. When I
run these files individually, the simulation works perfectly fine for each
of them separately. The problem arises only when I am try to run each file
in sequence from Test0 to Test5. It seems to run in an infinite loop where
it does not read the first test, Test0 MIST_77_725.

*Original Files*
I thought I had changed the code relatively parallel to the original files
that came with downloading FDS:

*For the Run_All.sh file that I thought I had mimicked:*
#!/bin/bash -f
export SVNROOT=~/FDS-SMV                                           /was not
relevant to the files I was trying to run (?)
export FDS=$SVNROOT/FDS_Compilation/intel_linux_64/fds5_intel_linux_64    
 /again this is where the exe file is
export RUNFDS=$SVNROOT/Utilities/Scripts/runfds.sh                        
                      /wherever the .sh files are
export BASEDIR=`pwd`

./FDS_Cases.csh

echo FDS cases submitted

cd $BASEDIR/SMV_Scripts        

./SMV_Cases.csh                             /only needed the fds files to
be ran to produce smv results so this was taken out.

echo SMV cases submitted

*For the smv_cases.sh*
#!/bin/csh -f
$RUNFDS Atmospheric_Effects lee_waves             fire41
$RUNFDS Transient_Inflow linear_ramp_inflow_4mesh fire73
$RUNFDS Atmospheric_Effects stack_effect          fire41      
   /basically just has the folder and the file name which I also had.

                Although I wasn't quite sure what the last line was.

I hope the comments I made makes sense as those were my thought processes
to create my own .sh and .csh files that I had thought closely resembled
the original code. I've looked at other discussion threads, but they don't
address the same problem I have since the original files run perfectly
fine. The reason I want to create these batch files is that these are the
initial 6 cases I am looking at, but eventually more cases will be run, and
these batch files will save time.

If anything needs to be clarified, please post, but please post something
constructive. Again your help is greatly appreciated. Thank you!

-Ronald


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kristopher Overholt  
View profile  
 More options Jul 12 2012, 3:52 pm
From: Kristopher Overholt <koverh...@gmail.com>
Date: Thu, 12 Jul 2012 15:52:30 -0400
Local: Thurs, Jul 12 2012 3:52 pm
Subject: Re: [fds-smv] FDS How to run a Batch File (I have the necessary files but not sure where I am going wrong)

This line in your Run_All_MIST.sh script:

export RUNFDS=~/TestCasesv1/Run_All_MIST.sh

is running the Run_All_MIST.sh script itself when you get to
./FDS_MIST_cases.csh.
This is why you are getting an infinite loop.

In the original Run_All.sh script, you will notice that we point to:

export RUNFDS=$SVNROOT/Utilities/Scripts/runfds.sh

runfds.sh is a script that we use on our cluster to run FDS in a queueing
system. For your purposes, you should just be able have one Run_All_MIST.sh
file with:

#!/bin/bash -f
export FDS=/opt/FDS/FDS5/bin/fds5_linux_64

$FDS Test0/MIST_77_725.fds >& Test0/MIST_77_725.err &
$FDS Test1/MIST_71_725.fds >& Test1/MIST_71_725.err &
$FDS Test2/MIST_77_675.fds >& Test2/MIST_77_675.err &
$FDS Test3/MIST_77_775.fds >& Test3/MIST_77_775.err &
$FDS Test4/MIST_80_725.fds >& Test4/MIST_80_725.err &
$FDS Test5/MIST_83_725.fds >& Test5/MIST_83_725.err &

which is really just a list of commands to run FDS in the background and
redirect the output to an .err file. You don't need all of the other
environment variables.

Kris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ronald  
View profile  
 More options Jul 16 2012, 1:17 am
From: Ronald <rnt...@gmail.com>
Date: Sun, 15 Jul 2012 22:17:06 -0700 (PDT)
Local: Mon, Jul 16 2012 1:17 am
Subject: Re: [fds-smv] FDS How to run a Batch File (I have the necessary files but not sure where I am going wrong)

Okay thank you so much for your timely response! I will try this
alternation tomorrow in the lab. Much appreciated.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »