# How calculate mass transport and salinity flux?

**URL:** <https://forum.croco-ocean.org/t/how-calculate-mass-transport-and-salinity-flux/424>\
**Category:** croco tools (pre/post-processing)\
**Tags:** post-processing\
**Created:** [December 17, 2022, 10:56am UTC](https://forum.croco-ocean.org/t/how-calculate-mass-transport-and-salinity-flux/424 "2022-12-17T10:56:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![javadi](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/j/bcef8e/32.png) [@javadi](https://forum.croco-ocean.org/u/javadi)\
**Post date:** [December 17, 2022, 10:56am UTC](https://forum.croco-ocean.org/t/how-calculate-mass-transport-and-salinity-flux/424/1 "2022-12-17T10:56:25Z")

</div>

Hi

I have the outputs of the simulation. My question is that how can I calculate salinity flux or transport enters our domain on the strait? Is there any code in the Croco tools? Should we define it on the running time?

Best,

Javad

---

<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:** [December 19, 2022, 3:13pm UTC](https://forum.croco-ocean.org/t/how-calculate-mass-transport-and-salinity-flux/424/2 "2022-12-19T15:13:57Z")

</div>

No code that I know of, I think is a post-processing step since you need to define a section of your interest abd then interpolate u and/of v to the rho points and finally  
multiply for the concentration of salinity or the area of each individual cell.
