# Box model for handling of flows in course, km-scale models

**URL:** <https://forum.croco-ocean.org/t/box-model-for-handling-of-flows-in-course-km-scale-models/387>\
**Category:** dynamics-numerics-params\
**Tags:** physics-params, forcing, dynamics-numerics\
**Created:** [August 30, 2022, 9:09am UTC](https://forum.croco-ocean.org/t/box-model-for-handling-of-flows-in-course-km-scale-models/387 "2022-08-30T09:09:05Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jvmcgovern](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/jvmcgovern/32/668_2.png) [@jvmcgovern](https://forum.croco-ocean.org/u/jvmcgovern)\
**Post date:** [August 30, 2022, 9:09am UTC](https://forum.croco-ocean.org/t/box-model-for-handling-of-flows-in-course-km-scale-models/387/1 "2022-08-30T09:09:05Z")

</div>

Hi All,

This is a very high-level question, but I’m wondering specifically whether anyone has coded offline, or in the gitlab environment, the addition of some sort of box-model capability for handling freshwater inputs into estuaries and bays to accurately model temperature and salinity in the river plume that enters a coarser model domain?

I found from a brief web search that CMCC have developed a box model that is compatible with NEMO, see here:  
[https://www.sciencedirect.com/science/article/pii/S1463500319300642](https://www.sciencedirect.com/science/article/pii/S1463500319300642)

I am interested in this aspect, mainly because the crocotools scripts for river runoff from Dai and Trenberth attributes river temperature and salinity with WOA monthly climatology values on the shelf. In realistic non-climatology runs, this will always lead to inaccurate attribution of T/S from rivers as so much mixing takes place where the river meets the ocean.

I have high resolution (daily) flow data from all rivers entering my model domain, and I also have monthly temperature data. I could assume a salinity of zero but this is not appropriate or a reflection of reality when the river is presented as a point on the coastal shelf.

This point equally applies to nutrient inputs from large rivers, which may be assimilated for growth during favourable conditions in estuaries, bays and harbours.

It could be great to get feedback from this post and any advice in relation to handling of real river data.

---

<div class="post-metadata">

**Author:** ![AndresSepulveda](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/andressepulveda/32/262_2.png) [@AndresSepulveda](https://forum.croco-ocean.org/u/AndresSepulveda)\
**Post date:** [September 2, 2022, 12:36pm UTC](https://forum.croco-ocean.org/t/box-model-for-handling-of-flows-in-course-km-scale-models/387/2 "2022-09-02T12:36:26Z")

</div>

Hi,

Do you want a more realistic croco\_runoff.nc file, or a way to get river input values depending on the T,S,U,V,zeta of the point source discharge cell?

---

<div class="post-metadata">

**Author:** ![jvmcgovern](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/jvmcgovern/32/668_2.png) [@jvmcgovern](https://forum.croco-ocean.org/u/jvmcgovern)\
**Post date:** [September 5, 2022, 9:30am UTC](https://forum.croco-ocean.org/t/box-model-for-handling-of-flows-in-course-km-scale-models/387/3 "2022-09-05T09:30:41Z")

</div>

Hi,

I’m looking to get an accurate salinity and temperature value, given that I have accurate flow data for the rivers.

In the paper I included a link to, the box model derives a completely mixed salinity value for the discharge from estuaries/bays. It also proposes a different flow value.

---

<div class="post-metadata">

**Author:** ![AndresSepulveda](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/andressepulveda/32/262_2.png) [@AndresSepulveda](https://forum.croco-ocean.org/u/AndresSepulveda)\
**Post date:** [September 5, 2022, 12:59pm UTC](https://forum.croco-ocean.org/t/box-model-for-handling-of-flows-in-course-km-scale-models/387/4 "2022-09-05T12:59:16Z")

</div>

You can write your realistic time series of daily or hourly flow, temperature and salinity values directly into the croco\_runoff.nc file. As long as it has the correct range of time values, CROCO will read it.

They have to be calculated offline. Do you want them to depend on the model state?

---

<div class="post-metadata">

**Author:** ![jvmcgovern](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/jvmcgovern/32/668_2.png) [@jvmcgovern](https://forum.croco-ocean.org/u/jvmcgovern)\
**Post date:** [September 5, 2022, 1:33pm UTC](https://forum.croco-ocean.org/t/box-model-for-handling-of-flows-in-course-km-scale-models/387/5 "2022-09-05T13:33:57Z")

</div>

My concern is related to the positioning of the runoff point in the IJ plane. It must be adjacent to the coast, but realistically, if I apply a salinity of 0 psu at that point, it doesn’t reflect the salinity conditions there. Due to mixing, by the time the river meets that grid point…

---

<div class="post-metadata">

**Author:** ![jvmcgovern](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/jvmcgovern/32/668_2.png) [@jvmcgovern](https://forum.croco-ocean.org/u/jvmcgovern)\
**Post date:** [September 5, 2022, 1:36pm UTC](https://forum.croco-ocean.org/t/box-model-for-handling-of-flows-in-course-km-scale-models/387/6 "2022-09-05T13:36:50Z")

</div>

…the plume has a very different characteristic, in both T and S. I want to attribute realistic T/S and volumes of net outflow at the coastal grid point which is meant to be a proxy for the river discharge to an estuary, which may be semi-enclosed for example…

---

<div class="post-metadata">

**Author:** ![jvmcgovern](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/jvmcgovern/32/668_2.png) [@jvmcgovern](https://forum.croco-ocean.org/u/jvmcgovern)\
**Post date:** [September 5, 2022, 1:37pm UTC](https://forum.croco-ocean.org/t/box-model-for-handling-of-flows-in-course-km-scale-models/387/7 "2022-09-05T13:37:50Z")

</div>

…Perhaps this question is more theoretical in nature. I can always proceed on the basis of attributing the monthly observed **river** temperature to the runoff, and 0 psu for salinity.

---

<div class="post-metadata">

**Author:** ![AndresSepulveda](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/andressepulveda/32/262_2.png) [@AndresSepulveda](https://forum.croco-ocean.org/u/AndresSepulveda)\
**Post date:** [September 5, 2022, 2:16pm UTC](https://forum.croco-ocean.org/t/box-model-for-handling-of-flows-in-course-km-scale-models/387/8 "2022-09-05T14:16:51Z")

</div>

You could create a 1-grid wide river and place the discharge at the head of it. See the landmask of the RIVER idealized case. That would allow some mixing before it reaches the coast. The flow value is something you can specify modifying the croco\_runoff.nc file. Do you know how to do it?

---

<div class="post-metadata">

**Author:** ![jvmcgovern](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/jvmcgovern/32/668_2.png) [@jvmcgovern](https://forum.croco-ocean.org/u/jvmcgovern)\
**Post date:** [September 5, 2022, 2:21pm UTC](https://forum.croco-ocean.org/t/box-model-for-handling-of-flows-in-course-km-scale-models/387/9 "2022-09-05T14:21:46Z")

</div>

Thanks Andres, we sometimes do that in my team with other models. I was hoping that someone in the CROCO community might have done a box model approach as per the link in the original post, to better reflect actual estuary/bay volume.

I will give it some more thought and close the thread now.
