oil_tracer module reference
A tracer package to mimic dissolved oil.
Data Types
the maximum number of tracers in this module. |
Functions/Subroutines
Register oil tracer fields and subroutines to be used with MOM. |
|
Initialize the oil tracers and set up tracer output |
|
Apply sources, sinks, diapycnal mixing and rising motions to the oil tracers |
|
Calculate the mass-weighted integral of the oil tracer stocks, returning the number of stocks it has calculated. If the stock_index is present, only the stock corresponding to that coded index is returned. |
|
This subroutine extracts the surface fields from this tracer package that are to be shared with the atmosphere in coupled configurations. This particular tracer package does not report anything back to the coupler. |
|
Deallocate memory associated with this tracer package |
Detailed Description
By Alistair Adcroft and Robert Hallberg, 2010 *
In the midst of the Deepwater Horizon oil spill, it became evident that models were needed to predict the long-term fate of dissolved oil in the open ocean. This tracer packages mimics the transport, dilution and decay of dissolved oil plumes in the ocean.
This tracer package was central to the simulations used by Adcroft et al., GRL 2010, to prove that the Deepwater Horizon spill was an important regional event, with implications for dissolved oxygen levels in certains regions, see above reference for details.
Type Documentation
- type, public :: oil_tracer_CS
the maximum number of tracers in this module.
The control structure for the oil tracer package
- Parameters
ntr
The number of tracers that are actually used.
coupled_tracers
These tracers are not offered to the coupler.
IC_file
The file in which the age-tracer initial values can be found, or an empty string for internal initialization.
Z_IC_file
If true, the IC_file is in Z-space. The default is false.
oil_source_longitude
Latitude of source location (geographic) [degrees_N]
oil_source_latitude
Longitude of source location (geographic) [degrees_E]
oil_source_i
Local i of source location (computational index location)
oil_source_j
Local j of source location (computational index location)
oil_source_rate
Rate of oil injection [kg T-1 ~> kg s-1]
oil_start_year
The time at which the oil source starts [years]
oil_end_year
The time at which the oil source ends [years]
Time
A pointer to the ocean model's clock.
tr_Reg
A pointer to the MOM tracer registry
tr
The array of tracers used in this subroutine, [kg m-3]
IC_val
The (uniform) initial condition value [kg m-3]
land_val
The value of tr used where land is masked out [kg m-3]
oil_decay_rate
Decay rate of oil [T-1 ~> s-1] calculated from oil_decay_days
oil_source_k
Layer of source
oil_may_reinit
If true, oil tracers may be reset by the initialization code if they are not found in the restart files.
ind_tr
Indices returned by atmos_ocn_coupler_flux if it is used and the surface tracer concentrations are to be provided to the coupler.
tr_desc
Descriptions and metadata for the tracers
diag
A structure that is used to regulate the timing of diagnostic output.
restart_CSp
A pointer to the restart control structure
Functions/Subroutine Documentation
- function register_oil_tracer(HI, GV, US, param_file, CS, tr_Reg, restart_CS)
Register oil tracer fields and subroutines to be used with MOM.
- Parameters
HI [in]
A horizontal index type structure
GV [in]
The ocean's vertical grid structure
US [in]
A dimensional unit scaling type
param_file [in]
A structure to parse for run-time parameters
CS
A pointer that is set to point to the control structure for this module
tr_Reg
A pointer that is set to point to the control structure for the tracer advection and diffusion module
restart_CS [inout]
MOM restart control struct
oil_decay_days
Decay time scale of oil [days]
Callees call graph
Text view
oil_tracer::register_oil_tracer → mom_couplertype_infra::atmos_ocn_coupler_flux
oil_tracer::register_oil_tracer → mom_error_handler::mom_error
oil_tracer::register_oil_tracer → mom_file_parser::interface::get_param
oil_tracer::register_oil_tracer → mom_file_parser::interface::log_param
oil_tracer::register_oil_tracer → mom_file_parser::interface::log_version
oil_tracer::register_oil_tracer → mom_string_functions::slasher
oil_tracer::register_oil_tracer → mom_tracer_registry::register_tracer
Callers call graph
- subroutine initialize_oil_tracer(restart, day, G, GV, US, h, diag, OBC, CS, sponge_CSp)
Initialize the oil tracers and set up tracer output
- Parameters
restart [in]
.true. if the fields have already been read from a restart file.
day [in]
Time of the start of the run.
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
US [in]
A dimensional unit scaling type
h [in]
Layer thicknesses [H ~> m or kg m-2]
diag [in]
A structure that is used to regulate diagnostic output.
OBC
This open boundary condition type specifies whether, where, and what open boundary conditions are used.
CS
The control structure returned by a previous call to register_oil_tracer.
sponge_CSp
Pointer to the control structure for the sponges.
Callees call graph
Text view
oil_tracer::initialize_oil_tracer → mom_error_handler::mom_error
oil_tracer::initialize_oil_tracer → mom_io::interface::mom_read_data
oil_tracer::initialize_oil_tracer → mom_io_infra::interface::file_exists
oil_tracer::initialize_oil_tracer → mom_restart::interface::query_initialized
oil_tracer::initialize_oil_tracer → mom_restart::interface::set_initialized
oil_tracer::initialize_oil_tracer → mom_tracer_z_init::tracer_z_init
Callers call graph
- subroutine oil_tracer_column_physics(h_old, h_new, ea, eb, fluxes, dt, G, GV, US, CS, tv, evap_CFL_limit, minimum_forcing_depth)
Apply sources, sinks, diapycnal mixing and rising motions to the oil tracers
- Parameters
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
h_old [in]
Layer thickness before entrainment [H ~> m or kg m-2].
h_new [in]
Layer thickness after entrainment [H ~> m or kg m-2].
ea [in]
an array to which the amount of fluid entrained from the layer above during this call will be added [H ~> m or kg m-2].
eb [in]
an array to which the amount of fluid entrained from the layer below during this call will be added [H ~> m or kg m-2].
fluxes [in]
A structure containing pointers to thermodynamic and tracer forcing fields. Unused fields have NULL ptrs.
dt [in]
The amount of time covered by this call [T ~> s]
US [in]
A dimensional unit scaling type
CS
The control structure returned by a previous call to register_oil_tracer.
tv [in]
A structure pointing to various thermodynamic variables
evap_CFL_limit [in]
Limit on the fraction of the water that can be fluxed out of the top layer in a timestep [nondim]
minimum_forcing_depth [in]
The smallest depth over which fluxes can be applied [H ~> m or kg m-2]
Callees call graph
Callers call graph
External calls
- time_manager_mod
time_type_to_real (time_manager_mod::time_type_to_real)
- function oil_stock(h, stocks, G, GV, CS, names, units, stock_index)
Calculate the mass-weighted integral of the oil tracer stocks, returning the number of stocks it has calculated. If the stock_index is present, only the stock corresponding to that coded index is returned.
- Parameters
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
h [in]
Layer thicknesses [H ~> m or kg m-2]
stocks [out]
The mass-weighted integrated amount of each tracer, in kg times concentration units [kg conc]
CS
The control structure returned by a previous call to register_oil_tracer.
names [out]
the names of the stocks calculated.
units [out]
the units of the stocks calculated.
stock_index [in]
the coded index of a specific stock being sought.
oil_stock
The number of stocks calculated here.
Callees call graph
- subroutine oil_tracer_surface_state(sfc_state, h, G, GV, CS)
This subroutine extracts the surface fields from this tracer package that are to be shared with the atmosphere in coupled configurations. This particular tracer package does not report anything back to the coupler.
- Parameters
G [in]
The ocean's grid structure.
GV [in]
The ocean's vertical grid structure
sfc_state [inout]
A structure containing fields that describe the surface state of the ocean.
h [in]
Layer thickness [H ~> m or kg m-2].
CS
The control structure returned by a previous call to register_oil_tracer.
Callees call graph
Callers call graph
- subroutine oil_tracer_end(CS)
Deallocate memory associated with this tracer package
- Parameters
CS
The control structure returned by a previous call to register_oil_tracer.