Docsity

OASES Version 3.1 User Guide and Reference Manual, Exams of Microwave Engineering and Acoustics

Partial preview of the text

Download OASES Version 3.1 User Guide and Reference Manual and more Exams Microwave Engineering and Acoustics in PDF only on Docsity!

OASES

Version 3.

User Guide and Reference Manual

Henrik Schmidt

Department of Ocean Engineering

Massachusetts Institute of Technology

October 26, 2004

Contents

1 INTRODUCTION 10

1 Introduction

OASES is a general purpose computer code for modeling seismo-acoustic propagation in hor- izontally stratified waveguides using wavenumber integration in combination with the Direct Global Matrix solution technique [1, 2, 3]. It is basically an upgraded version of SAFARI [4]. Compared to SAFARI version 3.0 distributed by SACLANTCEN, OASES provides improved numerical efficiency, and the global matrix mapping has been re-defined to ensure uncondi- tional numerical stability in the few extreme cases where the original SAFARI has proved unstable. OASES is downward compatible with SAFARI, and the preparation of input files follows the guidelines of the SAFARI manual [4]. The SAFARI manual focused on VMS im- plementation, but this note will assume UNIX to be the operating system. However, the bulk of the code is operating system independent and is easily implementyed under VMS, MS-DOS etc.

2 INSTALLING OASES 11

2 Installing OASES

OASES is available on all nodes of the computational environment of the MIT/WHOI acoustics group. The information on installation provided in this section is therefore only intended for recipients of new export versions. The MIT/WHOI user should proceed to Section 3.

2.1 Loading OASES files

For recipients running UNIX, the whole OASES directory tree will be shipped in compressed tar files, compressed with the standard compress and gzip utilities, respectively.

oases.tar.Z oases.tar.gz

The “export” subset of oases is available via anonymous ftp from [email protected]. or via the World-wide-Web: ftp://keel.mit.edu/pub/oases/ The files are placed in the pub/oases directory, which also contains a README file.. To install, download the tar file(s) in your desired root directory $HOME and issue the com- mands

uncompress oases.tar.Z tar xvf oases.tar mv oases_export oases # Only for Export package

or, if you use gzip use the command

gunzip -c oases.tar.gz | tar xvf - mv oases_export oases # Only for Export package

which will install the directory tree:

2 INSTALLING OASES 13

tion. Once the package is built, include the executable directory in your path, e.g. in your .cshrc file:

setenv OASES_SH ${HOME}/Oases/bin # OASES scripts setenv OASES_BIN ${OASES_SH}/${HOSTTYPE}-${OSTYPE} # OASES executables set path = ( $OASES_SH $OASES_BIN $path )

2.2.1 Compiler Definitions

The compiler options are set in the master makefile Makefile in the OASES root directory. Hosts not supported may by added by including in Makefile a block with the compiler/linker definitions, e.g. for a HOSTTYPE hosttype , running OSTYPE ostype

############################################################

host-type Workstations

############################################################

Compiler flags

Fortran statement

FC.hosttype-ostype = f

CC Flags

CFLAGS.hosttype-ostype = -O

Linker/loader flags

LFLAGS.hosttype-ostype =

ranlib definition

RANLIB.hosttype-ostype = ranlib

Additional run-time libraries

LIB_MISC.hosttype-ostype =

Run-time library emulation

MISC.hosttype-ostype =

The default works on most platforms, but for LINUX some changes may be necessary, depending on which compiler you are using. For example, if you use the Absoft FORTRAN compiler on a Linux box (HOSTTYPE = i386-linux, OSTYPE = linux),then the Linux header in Makefile should look as follows:

2 INSTALLING OASES 14

# PC HARDWARE RUNNING LINUX

Compiler flags

For the ABSOFT FORTRAN compiler, un-comment the following

lines:

FC.i386-linux-linux = f77 -f -s -N2 -N9 -N LIB_MISC.i386-linux-linux = -lV77 -lU MISC.i386-linux-linux =

For the standard F2C FORTRAN compiler, un-comment the following

lines:

FC.i386-linux-linux = fort

LIB_MISC.i386-linux-linux = $(LIBDIR)/libsysemu.a

MISC.i386-linux-linux = misc.done

CFLAGS.i386-linux-linux = -I/usr/X11R6/include LFLAGS.i386-linux-linux = -L/usr/X11R6/lib RANLIB.i386-linux-linux = ranlib

After performing the changes, set the default directory to the OASES root directory, and com- pile and link by issuing the command:

make objdir make all

2.2.2 Parameter settings

If the default parameter settings are insufficient they may be altered in the parameter include file

$OASES_ROOT/src/compar.f

3 SYSTEM SETTINGS 16

3 System Settings

Before using OASES you must change your .login to properly.

3.1 Executable Path

First of all, include the directory containing the OASES scripts and executables in your path , e.g using the statement

setenv OASES_SH ${HOME}/Oases/bin # OASES scripts setenv OASES_BIN ${OASES_SH}/${HOSTTYPE}-${OSTYPE} # OASES executables set path = ( $OASES_SH $OASES_BIN $path )

In the MIT/WHOI computational environment the paths to the OASES executables and scripts are

Node Path CPU keel /keel0/henrik/Oases/bin Alpha OSF boreas /keel0/henrik/Oases/bin Alpha Linux frosty1 /fr1/henrik/Oases/bin Alpha OSF frosty2 /fr1/henrik/Oases/bin PC Linux frosty3 /fr3/henrik/bin PC Linux arctic /keel0/henrik/Oases/bin Alpha OSF acoustics /keel0/henrik/Oases/bin PC Linux reverb /reverb0/henrik/Oases/bin PC Linux vibration /reverb0/henrik/Oases/bin PC Linux sonar /keel0/henrik/Oases/bin Alpha Linux monopole /dipole0/henrik/Oases/bin Alpha Linux dipole /dipole0/henrik/Oases/bin PC Linux

3.2 Environmental Parameters

You may want to set your terminal type to avoid having to specify it everytime you use mplot or cplot. If you are running X-windows, set the DISPLAY environmental variable prop- erly and insert the statement

setenv USRTERMTYPE X

3 SYSTEM SETTINGS 17

in your .login file or simply type it in if you are not usually using X-windows. If you are running from a Tektronix 4100-series terminal or emulator, replace ’X’ by ’tek4105’. Similarly, for the Tektronix 4000-series, replace ’X’ by ’tek4010’ or ’tek4014’. The default contour package is MINDIS, creating black and white line contour plots. To make PLOTMTV your default contour package, execute the command, either manually or in your .login file:

MTV environment

setenv CON_PACKGE MTV setenv MTV_WRB_COLORMAP "ON" setenv MTV_COLORMAP hot setenv MTV_PRINTER_CMD "lpr" setenv MTV_PSCOLOR "ON"

The ’hot’ colour scale is chosen in this case, overwriting the WRB colorscale which is a red-to-blue colorscale close to the classical one used e.g. in acoustics, e.g. in Ref. [3]. The other variables should be self-explanatory. The ’hot’ colourscale has the advantage that it yields a gradual greytone scale when printed on a b/w printer. The default MATLAB color scale is ’jet’. Similarly, version 2.1 and later include a filter plp2mtv which translates the line plot plp and plt files to an mtv file and executes plotmtv. This filter may be used directly as a plot command instead of mplot file

plp2mtv file

Alternatively, plotmtv may be chosen as the default line plot package used by the mplot command by setting an environment variable:

setenv PLP_PACKGE MTV

It should be noted that some mplot options may not be fully supported by plp2mtv.

4 OASES - GENERAL FEATURES 19

Value Value Units Re( ) Im( ) Pa Re( ) Im( ) Pa Re( ) Im( ) Pa Re( ) Im( ) Pa Re( ) Im( ) Pa  g/cm

If option Z was specified in the option line, then a slowness diagram is produced for each transversely isotropic layer.

4.1.2 Dispersive Media

For pulse problems where causality is critical, non-zero attenuation must be accompanied by frequency-dependent wave speeds. Since this is of main importance for seismic problems with relatively high attenuation, the specification of dispersive wave speeds has been limited to elastic media only. A dispersive layer is again flagged by a negative value of  :

   : A dispersive layer is specified as followsin the file input.dat :        LTYP The only significant parameters for the layer are the depth , the density  and the roughness parameters  and . The parameter LTYP is a type-identifier for the layer. The frequency dependence of the wave speeds and attenuations should be specified in the file input.dis , which may contain several dispersion laws. The file should contain a block of data in the form of a frequency table, for each value of LTYP specified in input.dat , with the first block corresponding to LTYP = 1, the second corresponding to LTYP = 2 etc. The format for each block is asfollows: NF # Number of freqs. F(1) CC(1) CS(1) AC(1) AS(1) # Freq, speeds, atten. F(2) CC(2) CS(2) AC(2) AS(2) # Freq, speeds, atten. : : : : : F(N) CC(N) CS(N) AC(N) AS(N) # Freq, speeds, atten. The table does not have to be equidistant. OASES will interpolate to create a table consistent with the frequency sampling specified in input.dat.

4 OASES - GENERAL FEATURES 20

4.1.3 Porous Media

As an additional feature of the OASES 2.0 environmental model layers modelled as fluid satu- rated porous media (Biot model) may be included with other layer types. The Biot model and its implementation is described in Appendix A. A porous sediment layer is flagged by stating the usual parameter line for the layer in the environmental data block:        with negative values for both  and . Only the interface depth has significance and must be stated correctly; the other parameters listed on this data line are dummy. This line is imme- diately followed by a line containing the 13 parameters specifying the properties of the porous sediment layer in the order:         where  is the density of the pore fluid in     is the bulk modulus of the pore fluid in Pa is the viscosity of the pore fluid in kg/m-s  is the grain (solid constituent) density in     is the grain bulk modulus in Pa is the sediment porosity is the sediment permeability in  is the pore size factor in m  is the sediment frame shear modulus in Pa is the sediment frame bulk modulus in Pa  is the sediment frame shear attenuation  is the sediment frame bulk attenuation  is a dimensionless virtual mass parameter The sediment frame properties pertain to the drained structure and are assumed to be dis- sipative. In particular, for harmonic motion the frame shear and bulk moduli are taken to be complex in the form     ^     ^. The imaginary parts of the moduli are specified through    ^   and    ^   where  corresponds to the atten- uation measured in dB/ of shear waves in the sediment frame (as in the data specification for elastic layers) when the attenuation is low;  is related to the attenuation of both compression and shear waves. However, it should be noted that in contrast to the elastic layer case, the Biot porous sediment model will yield complex wavespeeds even if the frame is elastic since dissipation is inherent in the relative motion of the pore fluid with respect to the frame. The pore size parameter is treated as an empirical constant which depends on the average