Git Product home page Git Product logo

floatchen / coawst-roms-oil Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kthyng/coawst-roms-oil

0.0 1.0 0.0 304.13 MB

Some code in ROMS has been altered for offline tracer simulations

Makefile 0.59% C 6.24% Fortran 82.60% C++ 4.68% Assembly 0.01% M4 0.05% TeX 0.02% Shell 1.53% Awk 0.01% Perl 0.20% MATLAB 3.90% nesC 0.01% Batchfile 0.01% Python 0.01% HTML 0.08% M 0.01% OCaml 0.01% Prolog 0.01% NCL 0.05% EmberScript 0.01%

coawst-roms-oil's Introduction

ROMS-OIL

Oil plume model coupled with ROMS

Oil plume model utilizes Lagrangian float option in ROMS with added vertical velocity determined from the oil droplet sizes, oil component wegith fraction, density. At the surface, oil droplets are subject to weathering (evaporation) and wind drift (optional). Oil droplet size is assigned by generating random number from Gamma distribution. Two alogirhtms calculating vertical velocity of oil droplets are available and defined by users (two-equation or integrated).

The oil module resides in the directory ROMS/Nonlinear/Oil. However, there are multiple changes throughout the ROMS code to incroporate the oil module, oil array passing, and I/O. Several new script files have been added in the ROMS directories. Thus it is recommended to copy whole ROMS directory into COAWST.

To compile Oil module, one needs to add directories with the oil module and includes/headers in makefile script: ifdef USE_ROMS includes += ROMS/Nonlinear
ROMS/Nonlinear/Biology
ROMS/Nonlinear/Oil
ROMS/Nonlinear/Sediment
...

ifdef USE_ROMS modules += ROMS/Nonlinear
ROMS/Nonlinear/Biology
ROMS/Nonlinear/Oil
...

Note the floats include file has been modified to add input information for the oil model: e.g., more _floats.in

NFLOATS == 16000
Lfloats == T
Fprint == T
FRREC == 0
Nocmp == 3
OilComp == saturates aromatics res_asph
OilDens == 800.0 860.0 1030.0
DoilMn == 500.0e-6
FlxVoilDay == 3000.0
CWndOil == 0.02
DfsOil == 15.0\

POS = G, C, T, N, Ft0, Fx0, Fy0, Fz0, Fdt, Fdx, Fdy, Fdz\

  1  1  1  2000    0.d0   -88.367d0 28.737d0 -1400.d0 0.01d0 0.d0   0.d0  0.d0
  1  1  1  2000    0.d0   -88.369d0 28.739d0 -1400.d0 0.01d0 0.d0   0.d0  0.d0
  1  1  1  2000    0.d0   -88.372d0 28.742d0 -1400.d0 0.01d0 0.d0   0.d0  0.d0
  1  1  1  2000    0.d0   -88.369d0 28.735d0 -1400.d0 0.01d0 0.d0   0.d0  0.d0
  1  1  1  2000    0.d0   -88.372d0 28.732d0 -1400.d0 0.01d0 0.d0   0.d0  0.d0
  1  1  1  2000    0.d0   -88.364d0 28.734d0 -1400.d0 0.01d0 0.d0   0.d0  0.d0
  1  1  1  2000    0.d0   -88.361d0 28.731d0 -1400.d0 0.01d0 0.d0   0.d0  0.d0
  1  1  1  2000    0.d0   -88.365d0 28.738d0 -1400.d0 0.01d0 0.d0   0.d0  0.d0

Change definitions in the .h To turn the oil model on with Lagrangian -> Euler mapping of the oil fields two-equaltion algorithm for the oil plume is implemented

#define FLOATS
#define FLOAT_OIL
#define FLOAT_VWALK
#undef WOIL_INTEGRATED
#undef OIL_DEBUG
#define OIL_EULR\

wind drift is automaticly "on" when bulk fluxes are defined unless CWndOil =0 in the _floats.in

#define BULK_FLUXES\

To turn off the oil model and ROMS as a stand-alone model:

#undef FLOATS
#undef FLOAT_OIL
#undef FLOAT_VWALK
#undef WOIL_INTEGRATED
#undef OIL_DEBUG
#undef OIL_EULR\

Do not turn OIL_DEBUG on, this will produce large log file. OIL_EULR can be turned off if mapping is not needed.

Note the code is still under development. The uploaded version is working but not final. Report any bugs to [email protected].

coawst-roms-oil's People

Contributors

dkobashi avatar kthyng avatar vrx- avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.