Printer Friendly Your First Run of MOSES Your First Run of MOSES

The purpose of this page is to provide a quick introduction to MOSES and how to run it. Most Windows users prefer to use Windows Explorer to navigate around their directories, so go to c:\ultra\hdesk\started\b_run on most Windows machines, or /ultra/hdesk/started/b_run on most UNIX machines.

In this directory you will find five files:

If there are more files than that here, double click clean.bat. If you right click on the b_run.cif file and select Properties, you will see that this file opens with MOSES.

A double click on b_run.cif will run MOSES and finish. If you now look at the contents of this directory, you will find that there are a few more files. In addition to the original ones, the execution of MOSES produced:

The .ans directory contains results that are formatted so that they can been looked at, and the .dba directory contains the MOSES internal databases. The .ans directory contains:

The log file contains the dialog that you and MOSES had during the run. A dialog you say - I did nothing, but this is not true. What happened when you issued the command was that you told MOSES to use the "root" b_run. MOSES found b_run.cif and, since there was no existing database, it read the commands in b_run.cif and executed them. The log contains the dialog. The output file contains the MOSES output from the last run. This file only gets written to when you tell MOSES to do so. More will be said of its contents later. Finally, the grahics file contains a picture of the model. This can be viewed with GhostView.

If you double click b_run.cif again, something different happens! This time, you get a window and a prompt and nothing else. This time, MOSES detected that a database exists and therefore did not execute the commands in b_run.cif. Instead, he expectes you to issue new commands to change the existing state of affairs. The situation at the end of the first run is remembered, so you can "pick up" where you "left off". In fact, the last few commands from the previous session are displayed, along with the "MOSES Finished" message, and the new startup banner for this second session.

 
 
 
If you mash the home key, you are at the top of the dialog from the previous run. Here, you can use either the scroll bar or the page down key to look at what was done previously.

 
 
 
To obtain a picture of your system, click on the "Pictures" button on the top tool bar. Then, select "GL Rendering" and "Do GL Pictures".

 
 
 
A side view of the barge with cargo will appear. If you click on the cargo, the sidebar on the right will get filled with information. You can move to different tabs to show different types of information. This tab displays useful information about the body, weight, displacement, centers and stability data.

 
 
 
Now, type in
   &status
to see that MOSES remembers where the barge was placed in the previous run.

 
 
 
Click the Help button on the top toolbar, then select "Context Help" and will you get the Help Menu for the currently valid commands.

 
 
 
Click "OK" and MOSES will display the section of the Manual on HYDROSTATICS. You can now page through the manual, or use the tabs at the bottom left to swich between the table of contents, commands index or options index.

 
 
 
Now, input Ctrl G (the ctrl key and G simultaneously). A picture will appear. The left arrow key will translate the picture to the left, the up arrow key will translate in. In Observer mode, the observer moves, while in Model mode, the model moves. You can save this view to a file by clicking on the "Save" icon, located at the top left of the screen, just under the top toolbar. You can either append to the existing .gdv file, or create a .bmp file.

 
 
 
You can use Ctrl W (the ctrl key and W simultaneously) to get a wireframe picture. To save this to a file, click "Picture" on the toolbar, then "Save".

 
 
 
To get rid of the MOSES window, type in
    &FINISH, or Ctrl F
If you now look at the contents of b_run.ans two new files: have appeared. The file log00002.txt is a log of the second MOSES run and gra00002.eps is the second graphics file. This is a Postscript file that can be viewed with Ghostview, a freeware Postscript viewer that is provided with your MOSES distribution. You can right click on the files in this directory, and see the file associations that are defined. For instance, the files b_run.log and out00001.txt can be opened with gVIm, a graphics version of the VI text editor. This is an excellent way to view the MOSES results. Of course, you can use any text editor of your choosing, and modify the file associations as you see fit.

 
 
 
You can right click on b_run.gdv to open Ghostview and view this file.

 
 
 
Notice that MOSES also produces plots to present results. Here, a typical righting arm curve is shown:

 
 
 
Now, suppose that you have an existing database and it is basically wrong for some reason (you had mistakes in your model, issued some bad commands, etc.). You can "get rid of" the existing database by right clicking on b_run.cif, and selecting:
    Tidy (Clear Database)
Here, tidy is a simple program which will delete the database files MOSES creates. If after the tidy, you again double click on b_run.cif, MOSES will execute and behave as it did the first time.

 
 
 

As mentioned above, the database files are created by MOSES and intended to be used only by MOSES. You cannot read them for they are binary. In truth, you need not concern yourself with them, they are MOSES' responsibility, except to tidy when you are through with them or need to start over.

Now back to the files which were intended to be used by the user. You can look at the log file with any editor and see the interaction of the command in the b_run.cif file with MOSES. The lines beginning with > show the commands and any others are the MOSES responses to the commands. What you have done here is:

You may find it interesting to look at the b_run.cif and b_run.dat files to see how little data is actually needed to do all of this. Notice that these are text input files that were previously prepared. The fastest way for a new user to get started with MOSES is to copy files from our extensive set of examples, and modify the data as needed. You can find out more details on running MOSES, tidy, etc by Clicking Here.

FINALLY, A WARNING: The installation structure of MOSES is such that you should never use the directory where the software is installed to do your work. Whenever a new version of MOSES is installed, it will erase anything you have left in the installation directory.




Ultramarine, Inc. | Suite 325 | 3100 S. Gessner | Houston, Texas 77063 | (713)975-8146

Site Map

Copyright(C) 1996-2008 Ultramarine,Inc.