Run Equest file in command line DOE2

6 posts / 0 new
Last post

Hello,

I have an equest file that I would like to be able to run from the command line. I have plenty of Equest experience, but never DOE2 from the command line. I have been able to find the general syntax: c:\...\run22 exe ModelFile WeatherFile, but it seems like there are some library differences between equest and pure DOE2 that I am not sure how to deal with.

This is what I am seeing from a default Equest project I was trying to get to run:

[cid:image001.png at 01CF23F5.FCA53980]

Ben

Ben
bbrannon4's picture
Offline
Joined: 2014-02-05
Reputation: 0

You have no idea the pleasure your post brings to an old hacker like me,
since that's how I still use DOE-2, including even DOE-2.2, i.e., by
command line batch scripts. My recommendation to you is to be familiar
with MS-DOS commands and then walk through the run22.bat script to see
what it does step-by-step. Keep in mind that all the "smarts" are in
this batch file (run22.bat) that tells the computer to do this, and then
do that.

Setting up a DOE-2 run is really very straightforward (at least to me).
The program needs an input file called INPUT.TMP, a weather file called
WEATHR.TMP, and several utility or library files (BDLLIB.TMP - library
file, BDLKEY.TMP - keyword file, HDRFIL.TMP - hourly report file data,
etc.). Note that these files are all temporary (*.TMP), so the common
procedure is to copy them from their permanent file names, e.g.,
*.inp,*.bin, *.dat, etc.

DOE-2 then runs doebdl, which is an input processor program, and then
runs doesim, which is the actual simulation program. Both produces
output files, called OUTPUT (natch), that are typically concatenated and
then renamed as [input file name].out, or in the case of DOE-2.2,
they're kept separate as *.bdl and *.sim. Once the simulation has been
completed, the temporary files are typically deleted.

If you're looking at the run22.bat supplied with eQUEST, you'll notice
that it contains some "bells and whistles" , like creating a
subdirectory with the input file name, change to it, and then doing the
simulations there. Such embellishments are not necessary, and I like to
keep my scripts simple and direct so I don't have to debug them, but to
each his/her own.

From the looks of the screen dump you've provided, the script is having
trouble finding the needed utility and library files. One surefire way
to fix that is to give the full path, rather than the relative path, for
the permanent copies of these files.

Good luck and I hope you can get /it to work.

Joe Huang

Joe Huang's picture
Offline
Joined: 2011-09-30
Reputation: 406

I use the DOE22.bat file that comes with the installation. At the top of that batch file you see: set doedir=C:\doe22. Change that to the location of your installation. In my case it is: set doedir=I:\doe2h2 (I have multiple versions of DOE22 that correspond to the different eQuest versions).

Then I change my environment so that that directory is in the PATH. That way I can change to the directory containing the .inp file at the DOS prompt run DOE22 from there. That way I keep projects in separate directories.

The other thing required is to make sure the .lib files from the DOE22 installation contain the definitions from the eQuest libraries. I do this by copying the entire eQ_Lib.dat into the DOE22 usrlib.dat file.

Christopher Jones

Chris Jones
crollinjones's picture
Offline
Joined: 2013-12-12
Reputation: 0

Hello, 

I am new with using DOE2.2 and after a lot of trials I got the following messages as shown in the attached image !!!

I tried to copy the required files from EXE48r, but it didn't work also.

Kindly, Could you please help in describing what should be done so it start working?

Thanks

Amr

amr_mamdoh2003's picture
Offline
Joined: 2013-12-07
Reputation: 0
amr_mamdoh2003's picture
Offline
Joined: 2013-12-07
Reputation: 0

Hello, 

I am new with using DOE2.2 and after a lot of trials I got the following messages as shown in the attached image !!!

Could Not Find C:/doe22/lg-off.tmp/BDLKEY.BIN

Could Not Find C:/doe22/lg-off.tmp/BDLLIP.dat

Could Not Find C:/doe22/lg-off.tmp/BDLDFT.dat

Could Not Find C:/doe22/lg-off.tmp/*.dat

Could Not Find C:/doe22/lg-off.tmp/*.bin

Could Not Find C:/doe22/lg-off.tmp/*.tmp

Could Not Find C:/doe22/lg-off.tmp/*.log

Could Not Find C:/doe22/lg-off.tmp/*.out

Could Not Find C:/doe22/lg-off.tmp/for???

I tried to copy the required files from EXE48r, but it didn't work also.

Kindly, Could you please help in describing what should be done so it start working?

Thanks

Amr

amr_mamdoh2003's picture
Offline
Joined: 2013-12-07
Reputation: 0