Comments (8)
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.
from schism.
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.
from schism.
from schism.
A simple experiment is prepared for testing.
Main configuration:
1 element with size 10mx10m, no open boundary, depth is 5m
initial condition: temperature(20 degC), salinity(0)
1 source, no sink
vsource: 0 m^3/s
msource: temperature (20 degC), salinity (35)
impose_net_flux=1, precipation-evaporation: 0.001kg/m^2/s
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.
coarse_prec.zip
from schism.
from schism.
Hi Joseph,
I know that there may be no perfect method, but I think using vsoure <0 only for original sources is a slightly better choice.
(1) case1, one grid element with size 10mx10m, the source and sink are in the same element.
Results show salt are not taken into the water ( salinity is 0, top right panel in the figure ), since vsource and vsink cancel out according to current method.
(2) case2, refine the grid, with 4 grid elements of size 5mx5m. After refining the grid, the source and sink are in two separate elements. Results show that salt are taken into the water ( salinity reaches 35, top right panel in the figure ),. The results of case1 and case2 are not consistent.
(3) case3, same to case1 except using vsource <0 only for original sources.
The result is now consistent with case2 ( top right panel in the figure ).
I will check how other models (EFDC, Delft3d, Mike, etc.) deals with the case when sink and source are in the same element if needed.
from schism.
Hi Paul:
I’d argue that Cases 1 and 2 should NOT give same results; mesh resolution and placement of source/sinks do matter.
from schism.
from schism.
Related Issues (20)
- Error copying Fortran module "include/schism_glbl.mod" HOT 23
- Incorrect Pi value in read_output10_xyz.f90 HOT 2
- Help SCHISM-WWM III HOT 1
- Update ugrid conventions HOT 13
- Help - pschism seems to not able to find the hdf5 libraries and netcdf-c libraries. HOT 3
- General Info: how to run Pschism on AWS pcluster with Spack HOT 1
- Format overflow in staout HOT 1
- Issue Running with Sflux generated from HAFS HOT 10
- No rule to make target 'pschism' / BLD_STANDALONE HOT 5
- Exit code is zero even when simulator fails HOT 3
- Compile GOTM 3.2.5 HOT 2
- Updating variable names in hotstart.nc HOT 6
- latest version in git wants deprecated NetCDF-Fotran build (with f90) HOT 7
- set_mask error during compilation of SCHISM-FABMv2-(ECOSMO) HOT 6
- FABM/SCHISM: UNFULFILLED DEPENDENCY: downwelling_photosynthetic_radiative_flux HOT 6
- Error when run a 2D model with tidal elevation and velocity ( 23: ABORT: STEP: wetted cross section length on open bnd <=0; boundary ndx= 1 , length= 0.000000000000000E+000) HOT 3
- Support for the Intel 2024+ compilers
- Julian Date Calculation Imprecision Leads to Issues with Time Indices Slicing in the sflux_air_1.0001.nc File HOT 3
- Missing inverse barometer effect? HOT 3
- Initial timesteps results for a hotstart run HOT 25
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from schism.