-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems in calculating tracers with source #79
Comments
No, vsource in the code is the sum. If it's negative (net sink), tracer mass would leave the domain so msource should not be applied. |
Let's consider some scenarios: (1) A grid element has one source ( 0.1m^3/s ) with tracer and one sink (-0.1m^3/s ), no precipation and evaporation. vsource=source+sink=0. "vsource" is zero, but the tracer can still be taken into the water, just like a bowl of water with one pipe putting ink into the bowl and one pipe taking water out of the bowl. The source and sink are in the same grid emelent, but are separated from each other. (2) A grid element has one source (0.1m^3/s) with tracer, and evaporation is -0.1m^3/s,no sink, no precipation. vsource=source+evaporation=0. "vsource" is zero, but tracers can also be taken into water because evaporation does not take tracers out. (3) A grid element has one source (0.1m^3/s) with tracer, and precipation is 0.1m^3/s with no tracer,no sink, no evaporation. vsource=source+precipation=0.2m^3/s. Precipation does not take tracers into water, so "vsource" can not be the sum of source and precipation in the calculation of tr_el. |
See below.
-Joseph
Joseph Zhang
Office: (804) 684 7466
Web: schism.wiki
From: Paul ***@***.***>
Sent: Wednesday, August 31, 2022 1:24 AM
To: schism-dev/schism ***@***.***>
Cc: Y. Joseph Zhang ***@***.***>; Comment ***@***.***>
Subject: Re: [schism-dev/schism] Problems in calculating tracers with source (Issue #79)
[EXTERNAL to VIMS received message]
Let's consider some scenarios:
1. A grid element with one source ( 0.1m^3/s ) and one sink (-0.1m^3/s ), no precipation and evaporation. vsource=source+sink. "vsource" is zero, but the tracer can still be taken into the water, just like a bowl of water with one pipe putting ink into the bowl and one pipe taking water out of the bowl. The source and sink are in the same grid emelent, but are separated from each other.
> Since source and sink are in same elem, they cancel out and we assume the reaction time is short (<dt), so there is no net tracer change.
1. A grid element with one source (0.1m^3/s), with evaporation (-0.1m^3/s),no sink, no precipation. vsource=source+evaporation. "vsource" is zero, but tracers can also be taken into water because evaporation does not take tracers out.
> Evap does take volume/mass/tracer out, and we assume this is to be equivalent to sink. Not perfect assumption, but workable.
1. A grid element with one source (0.1m^3/s), with precipation (0.1m^3/s),no sink, no evaporation. vsource=source+precipation=0.2m^/s. Precipation does not take tracers into water, so "vsource" can not be the sum of source and precipation in the calculation of tr_el.
> Surely precip adds both volume and mass into the water. The tricky part is the tracer concentration of rain water. If nws=2, the rainwater is assume to have S=0 and ambient T..
In general, those assumptions we made are not perfect for sure, but serve as a starting point.
Reply to this email directly, view it on GitHub<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fschism-dev%2Fschism%2Fissues%2F79%23issuecomment-1232477493&data=05%7C01%7Cyjzhang%40vims.edu%7C5199ea72bca44704907f08da8b11086b%7C8cbcddd9588d4e3b9c1e2367dbdf1740%7C0%7C0%7C637975202533590973%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Ot21PK0G7Z1i970opB2zt96ftj9x2%2BTf7szqSC3xOns%3D&reserved=0>, or unsubscribe<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFBKNZY7Y52B2UOQSOYCV33V33T7TANCNFSM6AAAAAAQA3UWYE&data=05%7C01%7Cyjzhang%40vims.edu%7C5199ea72bca44704907f08da8b11086b%7C8cbcddd9588d4e3b9c1e2367dbdf1740%7C0%7C0%7C637975202533590973%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=OWo6G8OM%2FkV88fpEOXp1yfGLeZBT0pBc1nhV85FApyk%3D&reserved=0>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
A simple experiment is prepared for testing. The source is 0 m^3/s, and as we know precipation does not take salinity to the water, salinity should be 0, but salinity increases with time as below. Files of the experiment is attached below. |
Hi Paul: I’d argue that Cases 1 and 2 should NOT give same results; mesh resolution and placement of source/sinks do matter. |
"vsource" and "msource" are used to calculate tr_el (schism_step.F90, line 7469-7487).
According to my understanding, "vsource" used here should be real sources associated with msource, not the sum of vsource, vsink, precipation and evaporation (schism_step.F90, 1602-1641).
The text was updated successfully, but these errors were encountered: