-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define fluxes needed for the ocean coupling
In particular, these are: the non-solar heat flux (Q_NO_SUN), the short-wave flux (Q_SW_OCN), the fresh-water flux (FWFLUX), and the salt flux (SFLUX), all at the ocean surface. I also defined the short wave flux through the base of the ice, but it's zero for now. This is an initial commit. It compiles, but is untested and still a bit messy.
- Loading branch information
Showing
11 changed files
with
107 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/*! | ||
* @file ModelComponent.hpp | ||
* | ||
* @date 1 Jul 2024 | ||
* @date 30 Aug 2024 | ||
* @author Tim Spain <[email protected]> | ||
* @author Einar Ólason <[email protected]> | ||
*/ | ||
|
@@ -71,6 +71,8 @@ namespace Protected { | |
= "SLAB_QDW"; // Slab ocean temperature nudging heat flux, W m⁻² | ||
inline constexpr TextTag SLAB_FDW | ||
= "SLAB_FDW"; // Slab ocean salinity nudging water flux, kg s⁻¹ m⁻² | ||
inline constexpr TextTag FWFLUX = "FWFLUX"; // Fresh-water flux at the ocean surface, kg m⁻² | ||
inline constexpr TextTag SFLUX = "SFLUX"; // Salt flux at the ocean surface, kg m⁻² | ||
} | ||
|
||
namespace Shared { | ||
|
@@ -88,6 +90,9 @@ namespace Shared { | |
inline constexpr TextTag DQIA_DT | ||
= "DQIA_DT"; // Derivative of Qᵢₐ w.r.t. ice surface temperature W m⁻² K⁻¹ | ||
inline constexpr TextTag Q_PEN_SW = "Q_PEN_SW"; // Penetrating shortwave flux W m⁻² | ||
inline constexpr TextTag Q_SW_OW = "Q_SW_OW"; // Net shortwave flux at ocean surface W m⁻² | ||
inline constexpr TextTag Q_SW_BASE | ||
= "Q_SW_BASE"; // Net shortwave flux at the base of the ice W m⁻² | ||
// Mass fluxes | ||
inline constexpr TextTag HSNOW_MELT = "HSNOW_MELT"; // Thickness of snow that melted, m | ||
// Atmospheric conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/*! | ||
* @file SlabOcean.hpp | ||
* | ||
* @date 7 Sep 2023 | ||
* @date 30 Aug 2024 | ||
* @author Tim Spain <[email protected]> | ||
*/ | ||
|
||
|
@@ -38,9 +38,8 @@ class SlabOcean : public ModelComponent, public Configured<SlabOcean> { | |
, cice(getStore()) | ||
, qio(getStore()) | ||
, qow(getStore()) | ||
, newIce(getStore()) | ||
, deltaHice(getStore()) | ||
, deltaSmelt(getStore()) | ||
, fwFlux(getStore()) | ||
, sFlux(getStore()) | ||
{ | ||
} | ||
|
||
|
@@ -82,9 +81,8 @@ class SlabOcean : public ModelComponent, public Configured<SlabOcean> { | |
ModelArrayRef<Shared::Q_IO, RW> qio; | ||
ModelArrayRef<Shared::Q_OW, RW> qow; | ||
// TODO ModelArrayRef to assimilation flux | ||
ModelArrayRef<Shared::NEW_ICE, RW> newIce; | ||
ModelArrayRef<Shared::DELTA_HICE, RW> deltaHice; | ||
ModelArrayRef<Shared::HSNOW_MELT, RW> deltaSmelt; | ||
ModelArrayRef<Protected::FWFLUX, RO> fwFlux; | ||
ModelArrayRef<Protected::SFLUX, RO> sFlux; | ||
|
||
static const std::string sstSlabName; | ||
static const std::string sssSlabName; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters