<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="en"><front><journal-meta><journal-id journal-id-type="publisher-id">donstu</journal-id><journal-title-group><journal-title xml:lang="en">Advanced Engineering Research (Rostov-on-Don)</journal-title><trans-title-group xml:lang="ru"><trans-title>Advanced Engineering Research (Rostov-on-Don)</trans-title></trans-title-group></journal-title-group><issn pub-type="epub">2687-1653</issn><publisher><publisher-name>Don State Technical University</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.23947/2687-1653-2023-23-2-212-224</article-id><article-id custom-type="elpub" pub-id-type="custom">donstu-2039</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="en"><subject>INFORMATION TECHNOLOGY, COMPUTER SCIENCE AND MANAGEMENT</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="ru"><subject>ИНФОРМАТИКА, ВЫЧИСЛИТЕЛЬНАЯ ТЕХНИКА И УПРАВЛЕНИЕ</subject></subj-group></article-categories><title-group><article-title>Simulation of Vertical Movements of Seawater in Stratified Reservoirs</article-title><trans-title-group xml:lang="ru"><trans-title>Моделирование вертикальных движений морской воды в стратифицированных водоемах</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0003-4723-0906</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Кудинов</surname><given-names>Н. В.</given-names></name><name name-style="western" xml:lang="en"><surname>Kudinov</surname><given-names>N. V.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Никита Валерьевич Кудинов, кандидат технических наук, доцент кафедры программного обеспечения вычислительной техники и автоматизированных систем</p><p>344003, РФ, г. Ростов-на-Дону, пл. Гагарина, 1</p></bio><bio xml:lang="en"><p>Nikita V. Kudinov, Cand.Sci. (Eng.), Associated Professor of the Computer and Automated Systems Software Department</p><p>1, Gagarin sq., Rostov-on-Don, 344003, RF</p></bio><email xlink:type="simple">kudinov_nikita@mail.ru</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-9878-0900</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Филина</surname><given-names>А. А.</given-names></name><name name-style="western" xml:lang="en"><surname>Filina</surname><given-names>A. A.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Алёна Александровна Филина, кандидат технических наук, научный сотрудник отдела системного программного обеспечения</p><p>347900, РФ, Таганрог, пер. Итальянский, 106</p></bio><bio xml:lang="en"><p>Alena A. Filina, Cand.Sci. (Eng.), Researcher of the System Software Department</p><p>106, Italyansky lane, Taganrog, Rostov Region, 347900, RF</p></bio><email xlink:type="simple">j.a.s.s.y@mail.ru</email><xref ref-type="aff" rid="aff-2"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0001-7257-962X</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Никитина</surname><given-names>А. В.</given-names></name><name name-style="western" xml:lang="en"><surname>Nikitina</surname><given-names>A. V.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Алла Валерьевна Никитина, доктор технических наук, профессор кафедры программного обеспечения вычислительной техники и автоматизированных систем</p><p>347900, РФ, Ростовская область, Таганрог, пер. Итальянский, 106</p></bio><bio xml:lang="en"><p>Alla V. Nikitina, Dr.Sci. (Eng.), Professor of the Computer and Automated Systems Software Department</p><p>1, Gagarin sq., Rostov-on-Don, 344000, RF</p></bio><email xlink:type="simple">nikitina.vm@gmail.com</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Бондаренко</surname><given-names>Д. В.</given-names></name><name name-style="western" xml:lang="en"><surname>Bondarenko</surname><given-names>D. V.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Денис Вадимович Бондаренко, магистрант кафедры программного обеспечения вычислительной техники и автоматизированных систем</p><p>344003, г. Ростов-на-Дону, пл. Гагарина, 1</p></bio><bio xml:lang="en"><p>Denis V. Bondarenko, Graduate Student of the Computer and Automated Systems Software Department</p><p>1, Gagarin sq., Rostov-on-Don, 344003, RF</p></bio><email xlink:type="simple">denis.bondarenko.dev@gmail.com</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Развеева</surname><given-names>И. Ф.</given-names></name><name name-style="western" xml:lang="en"><surname>Razveeva</surname><given-names>I. F.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Ирина Федоровна Развеева, старший преподаватель кафедры математики и информатики</p><p>344003, г. Ростов-на-Дону, пл. Гагарина, 1</p></bio><bio xml:lang="en"><p>Irina F. Razveeva, Senior Lecturer of the Mathematics and Informatics Department</p><p>(1, Gagarin sq., Rostov-on-Don, 344003, RF</p></bio><email xlink:type="simple">razveevai@mail.ru</email><xref ref-type="aff" rid="aff-1"/></contrib></contrib-group><aff-alternatives id="aff-1"><aff xml:lang="ru"><institution>Донской государственный технический университет</institution><country>Россия</country></aff><aff xml:lang="en"><institution>Don State Technical University</institution><country>Russian Federation</country></aff></aff-alternatives><aff-alternatives id="aff-2"><aff xml:lang="ru"><institution>Научно-исследовательский центр супер-ЭВМ и нейрокомпьютеров</institution><country>Россия</country></aff><aff xml:lang="en"><institution>“Supercomputers and Neurocomputers Research Center” Co Ltd</institution><country>Russian Federation</country></aff></aff-alternatives><pub-date pub-type="collection"><year>2023</year></pub-date><pub-date pub-type="epub"><day>14</day><month>07</month><year>2023</year></pub-date><volume>23</volume><issue>2</issue><fpage>212</fpage><lpage>224</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Kudinov N.V., Filina A.A., Nikitina A.V., Bondarenko D.V., Razveeva I.F., 2023</copyright-statement><copyright-year>2023</copyright-year><copyright-holder xml:lang="ru">Кудинов Н.В., Филина А.А., Никитина А.В., Бондаренко Д.В., Развеева И.Ф.</copyright-holder><copyright-holder xml:lang="en">Kudinov N.V., Filina A.A., Nikitina A.V., Bondarenko D.V., Razveeva I.F.</copyright-holder><license license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>This work is licensed under a Creative Commons Attribution 4.0 License.</license-p></license></permissions><self-uri xlink:href="https://www.vestnik-donstu.ru/jour/article/view/2039">https://www.vestnik-donstu.ru/jour/article/view/2039</self-uri><abstract><sec><title>Introduction</title><p>Introduction. In the field of computational mathematics, there are many ways to approximate the model of fluid mechanics. Methods and estimates of approximation quality criteria, such as stability and convergence, are developed, while a combination of approaches to constructing economical difference schemes, such as splitting by physical processes, regularization by B. N. Chetverushkin, a linear combination of the Upwind and Standard Leapfrog difference schemes in aggregate has not been implemented and evaluated before. The authors were faced with the task of approximating each part of the hydrodynamic model split by physical processes with the most adequate scheme and further investigating the correctness of this approach.</p></sec><sec><title>Materials and Methods</title><p>Materials and Methods. The mathematical model of hydrophysical processes is closed by the empirical equation of the state of salt water. Significant properties were selected, a mathematical model was built. Difference operators approximated differential operators. An algorithm for layer-by-layer modeling of transients was constructed. The algorithm has been implemented in the form of the program, which mainly contains elementwise (massively-parallel) operations.</p></sec><sec><title>Results</title><p>Results. Mathematical models of hydrodynamic processes in reservoirs were obtained, taking into account three equations of motion in the presence of a density gradient of the aqueous medium when hydrostatic approximation was abandoned. A new method of calculating the pressure field using B. N. Chetverushkin’s regularizers in the continuity equation was tested. A software module for numerical simulation of hydrophysical processes of water movement with different salinity and density was developed. This is open-source software that provides not only the redefinition of empirical dependences (as algebraic functions), but also the connection of external simulating modules to display dependences algorithmically.</p><p>Discussion and Conclusion. The developed model of hydrophysics, taking into account the properties of salt water and the dynamic relationship of the mechanical movement of water with salinity, can be used to study the formation of a nonequilibrium distribution of parameters and identify the most stable parameters of the aquatic environment. The model explains the downward movement of oxygen. That will help in the future to estimate the values of the parameters of the aquatic environment, which are difficult to measure directly. It can be used in the procedure of parametric identification of hard-to-measure parameters of the aquatic environment.</p></sec></abstract><trans-abstract xml:lang="ru"><sec><title>Введение</title><p>Введение. В области вычислительной математики известно множество способов аппроксимации модели механики жидкости. Учеными выработаны методы и оценки критериев качества аппроксимации, таких как устойчивость и сходимость. Комбинация подходов построения экономичных разностных схем, таких как расщепление по физическим процессам, регуляризация по Б. Н. Четверушкину, линейная комбинация разностной схемы «кабаре» и «крест» в совокупности ранее не реализовывалась и не оценивалась. Перед авторами стояла задача аппроксимировать каждую часть расщеплённой по физическим процессам модели гидродинамики наиболее адекватной схемой и далее исследовать корректность данного подхода.</p></sec><sec><title>Материалы и методы</title><p>Материалы и методы. Математическая модель гидрофизических процессов замыкается эмпирическим уравнением состояния соленой воды. Выбираются значимые свойства, строится математическая модель. Разностные операторы аппроксимируют дифференциальные операторы. Строится алгоритм послойного моделирования переходных процессов. Алгоритм реализован в виде программы, которая, в основном, содержит поэлементные (массивно параллельные) операции.</p></sec><sec><title>Результаты исследования</title><p>Результаты исследования. Получены математические модели гидродинамических процессов в водоемах, учитывающие три уравнения движения при наличии градиента плотности водной среды при отказе от гидростатического приближения. Апробирован новый способ вычисления поля давления с применением регуляризаторов по Б. Н. Четверушкину в уравнении неразрывности. Разработан программный модуль численного моделирования гидрофизических процессов движения воды с различной солёностью и плотностью. Это открытое программное обеспечение, допускающее не только переопределение эмпирических зависимостей (как алгебраических функций), но и подключение внешних моделирующих модулей для отображения зависимостей алгоритмически.</p></sec><sec><title>Обсуждение и заключение</title><p>Обсуждение и заключение. Разработанная модель гидрофизики, учитывающая свойства солёной воды и динамическую связь механического движения воды с солёностью, может применяться для изучения формирования неравновесного распределения параметров и идентификации наиболее стабильных параметров водной среды. Модель объясняет нисходящее движение кислорода, что позволит в будущем оценивать величины параметров водной среды, которые сложно измерить непосредственно. Она может быть использована в процедуре параметрической идентификации трудноизмеряемых параметров водной среды.</p></sec></trans-abstract><kwd-group xml:lang="ru"><kwd>математическая модель</kwd><kwd>стратификация</kwd><kwd>модель динамики морской воды</kwd><kwd>квазигидродинамическая модель</kwd><kwd>метод заполненности ячеек</kwd><kwd>центрально-разностная схема</kwd><kwd>метод прогонки</kwd><kwd>ВВЦП</kwd><kwd>Кабаре</kwd><kwd>Крест</kwd></kwd-group><kwd-group xml:lang="en"><kwd>mathematical model</kwd><kwd>stratification</kwd><kwd>seawater dynamics model</kwd><kwd>quasi-hydrodynamic model</kwd><kwd>cell occupancy method</kwd><kwd>central difference scheme</kwd><kwd>sweep method</kwd><kwd>FTCS scheme</kwd><kwd>Upwind Leapfrog</kwd><kwd>Standard Leapfrog</kwd></kwd-group><funding-group><funding-statement xml:lang="ru">Работа выполнена при поддержке РНФ (проект № 22–71–10102).</funding-statement><funding-statement xml:lang="en">The research is done with the financial support from Russian Science Foundation (project no. 22–71–10102).</funding-statement></funding-group></article-meta></front><body><p>Introduction. One of the critical tasks related to the ecology and life safety of people living in coastal areas is forecasting and modeling the movement of water in the seas and large regional reservoirs. Moreover, it is important to study the process of transport of substances dissolved in an aqueous medium, taking into account stratification and the dependence of water density on many variable factors. Such predictive modeling is likely to make it possible not only to assess water quality, but also to manage it under conditions of climate change and industrial impacts. A more general and major goal is to link water quality to the number and species diversity of natural hydrobiocenoses living in the hydrosphere. When solving these problems, it is necessary to take into account the hydrodynamic characteristics of the aquatic environment, features of external influencing factors, such as the heterogeneity of temperature distribution, salinity, oxygen saturation of water, the amount of gases dissolved in water, acidity. These parameters are some key parameters of the biological activity of the aquatic ecosystem [<xref ref-type="bibr" rid="cit1">1</xref>].</p><p>The water area of the reservoir can also be considered as a transport system that transfers oxygen from the atmosphere to bottom sediments. However, there are cases of the formation of chemical gradients of large magnitude at relatively small depth differences — in boundary layers with a relatively small value outside these zones. The reason for the appearance of such sites with the general stratification of water by density in universal gravity on the one hand, and the radiation effect of the sun on the water, causing its heating, on the other. These processes can cause a decrease in the rate of production, destruction and recycling of biogenic elements and bio-organisms until these processes stop, as well as predetermine the biodiversity of hydrobionts in general and species composition in particular [<xref ref-type="bibr" rid="cit2">2</xref>]. Temperature stratification affects significantly the distribution of organisms in the water column, the transfer and deposition of impurities harmful to bio-organisms. An increase in the temperature of surface waters causes a violation of vertical water exchange and, accordingly, a decrease in aeration of the deep-water zone, a decrease in solubility and oxygen concentration in water. Stratification by density, temperature and chemical composition limits the convective rise of biogenic elements, carbon dioxide and products of incomplete oxidation of organic substances entering the hypolimnion (cold, salty, dense layers of water) as a result of sedimentation of seston into the surface layers of water. From the beginning of stratification until its end, the surface layer is depleted, and the hypolimnion, on the contrary, is enriched with these substances. As a result, physico-chemical stratification causes an uneven distribution of a number of biologically significant substances in depth and is the reason for the self-organization of a complex structure of ecological niches [<xref ref-type="bibr" rid="cit3">3</xref>]. Mathematical modeling of mechanical, chemical and biological processes occurring in aquatic ecosystems is urgent, it is associated with problems of ecology and life safety of the population of coastal territories.</p><p>We should name the outstanding scientists who made a significant contribution to the study of hydrology and oceanology. V.P. Dymnikov was engaged in the study of climate and oceanology, modeling of the atmosphere and ocean. A.S. Monin and M.Y. Belevich investigated the processes of kinematics of the aquatic environment, turbulence and microstructure of the ocean. Soviet scientist A.S. Sudolsky studied the dynamics of waters and coastal processes in various reservoirs in relation to solving the problems of designing, building and operating specific hydraulic structures, and rational economic use of reservoirs in general [<xref ref-type="bibr" rid="cit4">4</xref>]. According to V.I. Vernadsky, one of the most important manifestations of life is the gas exchange of organisms and the environment, mainly respiration processes based on oxygen consumption [<xref ref-type="bibr" rid="cit5">5</xref>]. Some outstanding Russian scientists, including S.V. Bruevich, whose works were devoted to the development of analytical research methods, the formulation of the basics of hydro- and bio-hydrochemistry, were engaged in the study of hydrobiological processes of reservoirs. G.G. Matishov and V.G. Ilyichev actively study the conditions of optimal exploitation of water resources, develop models of transport of pollutants in water bodies, and investigate the assessment of their impact on the bioresources of the aquatic environment [<xref ref-type="bibr" rid="cit6">6</xref>].</p><p>To study the influence of these processes of the aquatic environment, a complex of interrelated mathematical models is being developed. It is based on the use of accurate predictive models and software implementation of economical numerical methods, which provide detailed investigation of the kinematics of the process, cause-effect relationships, and the state of the modeling object. The existing methods and means of predictive modeling of the state of the aquatic environment, taking into account a number of biotic and abiotic factors, including the processes of distribution of oxygen, carbon dioxide, salts, are based on general scientific approaches, simplified mathematical models with low adaptability, lack of modeling of nonlinear dynamic processes characteristic of most aquatic ecosystems, incorrect setting of the boundaries of the computational domain. In some cases, the studies are accompanied by a formal definition of boundary conditions, and give rather rough and approximate simulation results.</p><p>When modeling the substance transfer process based on the advection-diffusion equations, a good approximation of advective terms, which are gradients of pressure, mass density and total energy, momentum of motion, is required. The use of standard difference schemes with large estimates of similarity parameters causes loss of calculation accuracy due to an increase in the approximation error and increased restrictions on the time step due to the stability condition of the difference scheme. In the works of A.I. Suhinov, A.E. Chistyakov and others [<xref ref-type="bibr" rid="cit7">7</xref>][<xref ref-type="bibr" rid="cit8">8</xref>], it is shown how to effectively use a linear combination of the Upwind and Standard Leapfrog difference schemes with the optimal values of weight coefficients for the approximation of the transport equation. The efficiency of these methods is achieved by optimization of the approximation error of discrete-continuum model, the exact solution of the mass transfer with constant speed. Studies have shown that this approach also extends to hydrodynamic models with a variable (sign-alternating) velocity without the effect of grid viscosity. Another positive quality of such approximations is that they can be used to simulate complex flow structure, e.g., vortex. Currently, numerous researchers use such a scheme for the simulation of turbulent flows. Members of leading foreign research organizations, such as Stanford University, Imperial College London, etc., as well as members of the Institute of Computational Mathematics of the Russian Academy of Sciences E.M. Volodin, A.V. Glazunov, A.S. Gritsun, N.G. Yakovlev and others [<xref ref-type="bibr" rid="cit9">9</xref>] published works in which mathematical modeling of climatic changes, hydrodynamic and atmospheric processes and phenomena are carried out on the basis of eddy-resolving schemes. The quasi-hydrodynamic approximation of a continuous medium enables to further reduce the time step requirement and increase the spatial resolution of the model with limited computer memory. In practice, a small term proportional to the second derivative in time or density is added to the system of Navier-Stokes and continuity equations. This approach makes it possible to smooth out non-physical fluctuations in mass density and momentum, as well as total energy, brought along the spatial grid faster than the speed of sound.</p><p>Existing universal application software packages (e.g., “Mars3d” software package, Ecointegrator, CHARISMA software package, SALMO complex, CHTDM, CARDINAL software package, packages for modeling various processes of aerohydrodynamics, PHOENICS, FLUENT, GAS DYNAMICS TOOL software packages) do not take into account some properties of the simulated complex systems, thus reducing the accuracy and efficiency of modeling. These properties include spatial heterogeneity of the aquatic environment motion, vortex structures of currents. Mathematical models and algorithms for their numerical implementation do not take into account the probability of a significant change in the depth and density of the aquatic environment, which can cause instability of the numerical solutions obtained. For this reason, such specialized software packages can be used to simulate a limited variety of hydrophysical processes of water systems. Most of the well-known specialized software (ADAM, CAL3QHC, Chensi, TASCflow, ISC–3, PANACHE, REMSAD, UAM-IV, ECOLOGIST, PRISM, VITECON), designed to simulate the process of spreading pollutants, the interaction of hydrobionts, is mainly focused on uniprocessors, represented mainly by personal computers. In such systems, only single component modules of these systems (e.g., ECOSIM and MAQSIP) are scaled to parallel systems. In practice, a small term proportional to the second derivative in time or density is added to the system of Navier-Stokes equations and continuity. This approach makes it possible to smooth out non-physical fluctuations in mass density, momentum and total energy brought along the spatial grid faster than the speed of sound.</p><p>Materials and Methods. The success of the development of a mathematical model of hydrophysical and hydrobiological processes depends on the availability and elaboration of test cases and tasks for investigating steadily observed phenomena in the seas, such as vertical mixing and redistribution of salinity and oxygen, halocline and thermocline. To study these phenomena, the paper uses a model of hydrodynamics that takes into account the balance of mass forces and cross-border flows [<xref ref-type="bibr" rid="cit1">1</xref>][<xref ref-type="bibr" rid="cit2">2</xref>]:</p><p>,</p><p>,</p><p>,</p><p>where  — flow density;  — kinetic-energy density rate;  — self-energy density rate;  — stress tensor ;  — mass force;  — heat flux density;  — specific heat inflow due to radiation. Due to the fact that these phenomena are usually described by a vertical distribution of parameters over depth, it is reasonable to obtain a simplified model that provides rapid identification of unobservable parameters. We select a cylindrical region V with bases on the bottom and surface of the water with a cross-sectional area S. We project the velocities, flows and forces to the vertical direction, assuming that the partial derivatives in x, y of the parameters to the horizontal direction are equal to zero outside the cylinder, i.e., assume horizontal uniformity of the parameters of the aqueous medium. Let us write system (1) in a conservative form so that it enables to determine the mass density (), mechanical momentum () and total energy density (), . In the cylinder, we allocate infinitesimal volume and assume that each such volume, which is V, is affected by the reaction force of the support (bottom of the reservoir), equal to hydrostatic pressure, and a force similar to the friction force caused by the viscosity of the fluid and momentum transfer, not equal to zero with vertical movements of the fluid.</p><p>If we neglect horizontal fluid movements and assume that only vertical movements are essential, and the fact that the density of the aqueous medium significantly depends on salinity, accept the simplifications and conventions outlined earlier, then the equations of hydromechanics [1–3] in compact form are presented by a system of partial differential equations [<xref ref-type="bibr" rid="cit2">2</xref>]:</p><p> (1)</p><p>where ,  — the empirical equation of the state of seawater and the equation, closing the system by internal energy, respectively; p — total hydrodynamic pressure;  — local density of the aquatic environment;  — projection of the velocity vector function on the vertical (z axis is directed upwards from the bottom to the surface);  — volume density of internal energy;  — pressure of the gas enclosed in an elementary volume between adjacent layers; — volume density of the generalized force (sum of forces) applied to elementary volumes of fluid, in addition to pressure;  — salt concentration;  — cross-sectional area of the cylindrical selected area in which the most intensive upwelling and salt transport process is assumed;  — absolute water temperature;  — temperature of the water external to the allocated volume;  — thermal conductivity of water;  — acceleration of gravity;  — coefficient characterizing the intensity of momentum transfer due to viscosity.</p><p>The boundary conditions characterizing the property of impermeability of fluid through the rock that makes up the bottom of a water body for system (1) can be written in the form of equalities:</p><p>. (2)</p><p>Where n — the normal vector directed inside the computational domain.</p><p>The International Thermodynamic Equation of Seawater [<xref ref-type="bibr" rid="cit10">10</xref>] defines density  of seawater as a function of salinity , temperature  and hydrostatic pressure p, which has the form:</p><p> (3)</p><p>where  — average modulus of elasticity; digit 0 corresponds to one standard atmosphere (101,325 Pa).</p><p>Under numerical modeling based on (1) – (3), also in demand as (3), we establish an algebraic relationship of pressure with density, temperature and salinity. The quadratic equation has two roots:</p><p> (4)</p><p> (5)</p><p>where , , ,  — variable parameters whose relation to temperature, salinity and density is determined by the standard model of seawater; , where  — water Celsius temperature. The speed of sound in salt water can be expressed by the formula: .</p><p>Suppose that the momentum, salinity and heat of a volume of water, bounded by a cylindrical surface, change only when the parameters at the boundary of the domain (Dirichlet boundary conditions) change, in particular, the salinity changes on the surface of the water. The behavior of mechanical parameters — density, momentum — is set by Neumann conditions and is inaccessible to external influence. Regardless of these assumptions, within the boundary of the aqueous medium, the system of equations (1) can be written in the vector form of a transfer-reaction model with a source additive [<xref ref-type="bibr" rid="cit11">11</xref>][<xref ref-type="bibr" rid="cit5">5</xref>]:</p><p> (6)</p><p>where — vector characterizing the interaction of the flow with the surrounding fluid and the planet;  — vector of conservative state variables;  — vector of flows acting as feedback and closing the balance equation. From the components of vector  common multiplier can be derived .</p><p>In practice, to solve the transfer equation of form (6), a difference scheme has proven itself well, whose layered transition operator is obtained by a linear combination of similar transition operators of the Upwind and Standard Leapfrog schemes [12–15]. Taking into account the relationship between mass flows and density changes turned out to be more effective for a quasi-hydrodynamic system regularized according to B.N. Chetverushkin, approximated according to the FTCS scheme (forward-time central-space).</p><p>The discretization of the continuum model will be carried out by the integro-interpolation method on a uniform grid  , , where  — vertical grid step, i — index of the node (control/final volume in terms of the Godunov method) when numbering in space,  — grid step in time,  — the number of the time layer. We describe a finite-difference approximation of the model. The difference schemes used to approximate the first-order balance equations give relatively acceptable results only with a very small grid step [<xref ref-type="bibr" rid="cit3">3</xref>], which causes an active consumption of resources of computing devices and developers who create algorithms and programs that numerically implement them.</p><p>The problem of setting boundary conditions and their coordinated assignment at alternating speeds was solved by the method of filling control cells [<xref ref-type="bibr" rid="cit7">7</xref>]. Taking into account the maximum occupancy and expressing its functional dependence on the node number makes it possible to increase the accuracy of approximation of boundary conditions.</p><p>Investigations on the theoretical and experimental selection of approximation methods and schemes led to the choice of splitting methods [<xref ref-type="bibr" rid="cit13">13</xref>] and regularization. The continuity equations were regularized by B. N. Chetverushkin. The given equation was subjected to a difference approximation according to the FTCS scheme. The balance (transfer) equations of momentum, salinity and total energy were replaced by explicit equations obtained by linear combination of various approximations of the transfer operator (leapfrog and Upwind Leapfrog) [<xref ref-type="bibr" rid="cit12">12</xref>][<xref ref-type="bibr" rid="cit15">15</xref>]. According to the splitting method, the transfer of momentum (and velocity), salinity, and total energy was approximated in a fractional step. The water velocity variation, which determined the intensity of transport and mass flows, was introduced at the second fractional step by solving the wave equation. Denote , , , , , , . In the split form [<xref ref-type="bibr" rid="cit16">16</xref>], after the introduction of a regularizer into the continuity equation and semi-discretization on grid , approximation of the partial derivative in time by the FTCS scheme, the first two equations of system (1) can be written as:</p><p>, (7)</p><p>,</p><p>, (8)</p><p> (9)</p><p>Equations (7) and (9) are a discrete analogue of the momentum transfer and change model — the second equation of system (1). Equation (8) predicts a change in the pressure field taking into account the continuity of the flow and information about internodal (intercellular) and boundary flows. Assuming time constancy at each step of the speed of sound, equation (8) can be approximated by an implicit time difference scheme and solved by sweeping. It was this direction in numerical modeling that was selected for the study.</p><p>Equation (7) and the fourth equation (1) are approximated on an equidistant grid by an explicit difference scheme [<xref ref-type="bibr" rid="cit13">13</xref>]. Summands (8) determining the wave properties during the propagation of the pulse (the right side of the equation) are approximated by the central differences in space:</p><p>, (10)</p><p>where  — occupancy of the cell to the right of the node with index ;  — occupancy of the cell to the left of the node with index ;  — degree of occupancy of the control area , located in the neighborhood of the node with index i (, ,  —  index-dependent variables) [<xref ref-type="bibr" rid="cit7">7</xref>].</p><p>The remaining two summands (8) determine the relationship of the rate of change in density with its flow. (8) includes the ratio of the rate of change in density to the time interval, expressed by the difference with a forward shift:</p><p>,</p><p>the mass flow is transferred to the right side (8) and approximated by the central differences:</p><p> (11)</p><p>where , ,  — degree of occupancy of the areas located in the vicinity of the cells with number [<xref ref-type="bibr" rid="cit7">7</xref>];  characterizes the occupancy of the area ;  — ,  — .</p><p>Balance equations of the mechanical impulse and pressure (9) are approximated by FTCS:</p><p> (12)</p><p>Let us present the problem of solving the difference approximation of equation (8) in the form of a matrix sweep problem with a vector variable in time on the right side :</p><p>.</p><p>The approximation of equation (8), defined on a three-point difference template, in the form of a linear system of equations , solvable with respect to pressure (p), has the form:</p><p> (13)</p><p>A similar band matrix is obtained during a similar approximation of the other two terms (8).</p><p>The model can take into account dynamic changes in the flow at the boundaries and other parameters, such as temperature, salinity, oxygen content. Therefore, the simulation of water movement must be performed in a time cycle in layers with the retention of operational information about the parameters on at least two time-adjacent layers of the solution to the grid equation. The algorithm for calculating hydrodynamic parameters on a two-index grid in space and time includes:</p><p>When algorithmizing the method for solving a system of split equations, the following are introduced:</p><p>Such variable index shifts are used in calculating gradient approximations both in the volume of the continuum model and at the boundaries with the second order of accuracy according to discrete analogues of equations (7) – (9) approximated by FTCS and by a linear combination of Leapfrog and Upwind Leapfrog schemes [12–14]:</p><p> (14)</p><p>where is characteristic q for transfer of salt () and momentum .</p><p>Parameter m is a “switch” of the flow when the sign of the velocity changes in the difference approximations of the pressure gradients and the mass flow:</p><p>, </p><p>When using such a switch, the approximation of the gradient in solving the transfer problem for momentum and salinity can be written by the formula:</p><p>. (15)</p><p>The use of the cell occupancy method makes it possible to correctly approximate the boundary conditions when placing water state parameters in computer memory with an array of numerical values, and variable index shifts enable to reduce the volume of symbolic recording of the subroutine for performing layer-by-layer iterative changes of state variables assigned to the nodes of the difference scheme [<xref ref-type="bibr" rid="cit17">17</xref>].</p><p>The matrix equation with a band tridiagonal matrix A (13) is solved by sweeping [<xref ref-type="bibr" rid="cit18">18</xref>]. For the initial verification of the software implementation, a simplified model of the state of salt water in the form of P. S. Lineikin’s equation was used.</p><p>Research Results. The simulation was performed on the basis of a software package written in MATLAB. Debugging was performed using the GNU Octave interpreter. Operation also presupposes the availability of libraries of this system. The software package consists of 16 functional modules. The selection of this interpreter and the corresponding language was due to the ability to write and test a program that operates with an array of state variables, which is a projection of the desired functions , ,  on a spatial grid. At this stage of the study, the authors abstracted from the specifics of performing element-by-element operations on arrays of real numbers.</p><p>The software system consists of the interconnected subprograms:</p><p>The constructed model was used in a test run to estimate the density change under an increase in the salinity of the surface of the aquatic environment by 1% at the 30th second from the start of the simulation and a maximum depth of 1 km. Density transients in a set of cross-sections (function ), spaced from each other, caused by an instantaneous change in salt concentration, are finite in time (Fig. 1), and the density pulse front is greatly weakened when moving in space.</p><fig id="fig-1"><caption><p>Fig. 1. Graphs of dependence of density on time with a sharp change in salinity on the water surface</p></caption><graphic xlink:href="donstu-23-2-g001.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2023/2/M838l4L9K47tglUuz76wxulI2ggnGV7NFUHOp9vd.jpeg</uri></graphic></fig><p>Discussion and Conclusion. The presented spatially distributed model does not yet allow predicting a steady redistribution of density and a change in the salinity gradient in numerical calculations, because it does not take into account the buoyancy of less salty water and its change during salinization of the upper layers. Mathematics and software, which greatly simplify the modeling of processes leading to the observed effects of halocline, chemocline and pycnocline, has been tested and debugged on a variety of test tasks (momentum and salt transport, pressure wave propagation). For high-precision modeling of the observed physico-chemical phenomena in the seas, it is required to solve additional tasks of identifying model parameters, taking the data of observations and remote sensing of the Earth as initial information.</p></body><back><ref-list><title>References</title><ref id="cit1"><label>1</label><citation-alternatives><mixed-citation xml:lang="ru">Михайлов В.Н., Добровольский А.Д., Добролюбов С.А. Гидрология. 2-е изд., испр. Москва: Высшая школа, 2007. 464 с. URL: https://www.geokniga.org/bookfiles/geokniga-mihaylov-vn-dobrovolskiy-ad-gidrologiya-2007.pdf (дата обращения: 01.04.2023).</mixed-citation><mixed-citation xml:lang="en">Mikhailov VN, Dobrovolskii AD, Dobrolyubov SA. Gidrologiya, 2nd ed. Moscow: Vysshaya shkola; 2007. 464 p. URL: https://www.geokniga.org/bookfiles/geokniga-mihaylov-vn-dobrovolskiy-ad-gidrologiya-2007.pdf (accessed: 01.04.2023) (In Russ.)</mixed-citation></citation-alternatives></ref><ref id="cit2"><label>2</label><citation-alternatives><mixed-citation xml:lang="ru">Ильичев В.Г. Устойчивость, адаптация и управление в экологических системах. Монография. Москва: Физматлит; 2008. 231 с. URL: https://www.evolbiol.ru/docs/docs/large_files/ilyichev.pdf (дата обращения: 01.04.2023).</mixed-citation><mixed-citation xml:lang="en">Il’ichev VG. Ustoichivost', adaptatsiya i upravlenie v ehkologicheskikh sistemakh. Monograph. Moscow: Fizmatlit; 2008. 231 p. URL: https://www.evolbiol.ru/docs/docs/large_files/ilyichev.pdf (accessed: 01.04.2023) (In Russ.)</mixed-citation></citation-alternatives></ref><ref id="cit3"><label>3</label><citation-alternatives><mixed-citation xml:lang="ru">Богданов Н.И. Биологическая реабилитация водоемов. Пенза: РИО ПГСХА; 2008. 126 с. URL: https://microalgae.ru/f/bogdanov_na_biologicheskaya_reabilitaciya_vodoemov_2008.pdf (дата обращения: 01.04.2023).</mixed-citation><mixed-citation xml:lang="en">Bogdanov NI. Biologicheskaya reabilitatsiya vodoemov. Penza: RIO PGSKHA; 2008. 126 p. URL: https://microalgae.ru/f/bogdanov_na_biologicheskaya_reabilitaciya_vodoemov_2008.pdf (accessed: 01.04.2023) (In Russ.).</mixed-citation></citation-alternatives></ref><ref id="cit4"><label>4</label><citation-alternatives><mixed-citation xml:lang="ru">Судольский А.С. Динамические явления в водоемах. Ленинград: Гидрометиоиздат; 1991. 260 c. URL: http://elib.rshu.ru/files_books/pdf/img-217140610.pdf (дата обращения: 01.04.2023).</mixed-citation><mixed-citation xml:lang="en">Sudolskii AS. Dinamicheskie yavleniya v vodoemakh. Leningrad: Gidrometioizdat; 1991. 260 p. URL: http://elib.rshu.ru/files_books/pdf/img-217140610.pdf (accessed: 01.04.2023) (In Russ.)</mixed-citation></citation-alternatives></ref><ref id="cit5"><label>5</label><citation-alternatives><mixed-citation xml:lang="ru">Геворкьян В.Х. Литологические аспекты учения В. И. Вернадского о биосфере. Геология и полезные ископаемые Мирового океана. 2010;3(21):37–56. URL: https://core.ac.uk/download/38371310.pdf (дата обращения: 01.04.2023).</mixed-citation><mixed-citation xml:lang="en">Gevorkyan VKh. Litologicheskie aspekty ucheniya V. I. Vernadskogo o biosfere. Geology and Mineral Resources of World Ocean. 2010;21(3):37–56. URL: https://core.ac.uk/download/38371310.pdf (accessed: 01.04.2023).</mixed-citation></citation-alternatives></ref><ref id="cit6"><label>6</label><citation-alternatives><mixed-citation xml:lang="ru">Il’ichev V.G., Rokhlin D.B. Internal Prices and Optimal Exploitation of Natural Resources. Mathematics. 2022;10(11):1860. https://doi.org/10.3390/math10111860</mixed-citation><mixed-citation xml:lang="en">Il’ichev VG, Rokhlin DB. Internal Prices and Optimal Exploitation of Natural Resources. Mathematics. 2022;10(11):1860. https://doi.org/10.3390/math10111860</mixed-citation></citation-alternatives></ref><ref id="cit7"><label>7</label><citation-alternatives><mixed-citation xml:lang="ru">Sukhinov A.I., Chistyakov A.E., Belova Yu.V., et al. Supercomputer Modeling of Hydrochemical Condition of Shallow Waters in Summer Taking into Account the Influence of the Environment. Communications in Computer and Information Science. 2018;910:336–351. https://doi.org/10.1007/978-3-319-99673-8_24</mixed-citation><mixed-citation xml:lang="en">Sukhinov AI., Chistyakov AE., Belova YuV., et al. Supercomputer Modeling of Hydrochemical Condition of Shallow Waters in Summer Taking into Account the Influence of the Environment. Communications in Computer and Information Science. 2018;910:336–351. https://doi.org/10.1007/978-3-319-99673-8_24</mixed-citation></citation-alternatives></ref><ref id="cit8"><label>8</label><citation-alternatives><mixed-citation xml:lang="ru">Nikitina A.V., Kravchenko L., Semenov I.S., et al. Modeling of Production and Destruction Processes in Coastal Systems on a Supercomputer. MATEC Web of Conference. 2018;226:04025. https://doi.org/10.1051/matecconf/201822604025</mixed-citation><mixed-citation xml:lang="en">Nikitina AV, Kravchenko L, Semenov IS, et al. Modeling of Production and Destruction Processes in Coastal Systems on a Supercomputer. MATEC Web of Conference. 2018;226(2):04025. https://doi.org/10.1051/matecconf/201822604025</mixed-citation></citation-alternatives></ref><ref id="cit9"><label>9</label><citation-alternatives><mixed-citation xml:lang="ru">Iakovlev N.G., Volodin E.M., Gritsun A.S. Simulation of the Spatiotemporal Variability of the World Ocean Sea Surface Height by the INM Climate Models. Atmospheric and Oceanic Physics. 2016;52(4):376–385. https://doi.org/10.1134/S0001433816040125</mixed-citation><mixed-citation xml:lang="en">Iakovlev NG, Volodin EM, Gritsun AS. Simulation of the Spatiotemporal Variability of the World Ocean Sea Surface Height by the INM Climate Models. Atmospheric and Oceanic Physics. 2016;52(4):376–385. https://doi.org/10.1134/S0001433816040125</mixed-citation></citation-alternatives></ref><ref id="cit10"><label>10</label><citation-alternatives><mixed-citation xml:lang="ru">Mcdougall T.J., Millero F.J., Feistel R., et al. The International Thermodynamic Equation of Seawater - 2010: Calculation and Use of Thermodynamic Properties. Paris: UNESCO; 2010. 196 p.</mixed-citation><mixed-citation xml:lang="en">Mcdougall TJ, Millero FJ, Feistel R, et al. The International Thermodynamic Equation of Seawater - 2010: Calculation and Use of Thermodynamic Properties. Paris: UNESCO; 2010. 196 p.</mixed-citation></citation-alternatives></ref><ref id="cit11"><label>11</label><citation-alternatives><mixed-citation xml:lang="ru">Кудинов Н.В., Нейдорф Р.А., Журавлёв Л.А., и др. Использование пакета Simulink для опорно-параметрического моделирования переходных процессов на участке магистрального газопровода. Вестник Донского государственного технического университета. 2012;12(1–2):60–66. URL: https://www.vestnik-donstu.ru/jour/article/view/498 (дата обращения: 02.02.2023).</mixed-citation><mixed-citation xml:lang="en">Kudinov NV, Neydorf RA, Zhuravlev LA, et al. Using Simulink Package for Transient Support-Parametric Simulation in Gas Pipeline Section. Vestnik of DSTU. 2012;12(1-2):60–66. URL: https://www.vestnik-donstu.ru/jour/article/view/498 (accessed: 02.02.2023).</mixed-citation></citation-alternatives></ref><ref id="cit12"><label>12</label><citation-alternatives><mixed-citation xml:lang="ru">Сухинов А.И., Чистяков А.Е., Проценко Е.А. Разностная схема для решения задач гидродинамики при больших сеточных числах Пекле. Компьютерные исследования и моделирование. 2019;11(5):833–848. https://doi.org/10.20537/2076-7633-2019-11-5-833-848</mixed-citation><mixed-citation xml:lang="en">Sukhinov AI, Chistyakov AE, Protsenko EA. Difference Scheme for Solving Problems of Hydrodynamics for Large Grid Peclet Numbers. Computer Research and Modeling. 2019;11(5):833–848. https://doi.org/10.20537/2076-7633-2019-11-5-833-848</mixed-citation></citation-alternatives></ref><ref id="cit13"><label>13</label><citation-alternatives><mixed-citation xml:lang="ru">Сухинов А.И., Чистяков А.Е., Проценко Е.А., и др. Линейная комбинация схем «кабаре» и «крест» с весовыми коэффициентами, полученными из условия минимизации порядка погрешности аппроксимации. Чебышевский сборник. 2020;21(4):243–256. https://doi.org/10.22405/2226-8383-2020-21-4-243-256</mixed-citation><mixed-citation xml:lang="en">Sukhinov AI, Chistyakov AE, Protsenko EA, et al. Linear Combination of Upwind and Standard Leapfrog Difference Schemes with Weight Coefficients Obtained by Minimizing the Approximation Error. Chebyshevskii Sbornik. 2020;21(4):243–256. https://doi.org/10.22405/2226-8383-2020-21-4-243-256</mixed-citation></citation-alternatives></ref><ref id="cit14"><label>14</label><citation-alternatives><mixed-citation xml:lang="ru">Сухинов А.И., Белова Ю.В., Чистяков А. Е. Моделирование биогеохимических циклов в прибрежных системах Юга России. Математическое моделирование. 2021;33(3):20–38. https://doi.org/10.20948/mm-2021-03-02</mixed-citation><mixed-citation xml:lang="en">Sukhinov AI, Belova YuV, Chistyakov AE. Mathematical Modeling of Biogeochemical Cycles in Coastal Systems of the South Russia. Mathematical Models and Computer Simulations. 2021;13(6):930-942. https://doi.org/10.20948/mm-2021-03-02</mixed-citation></citation-alternatives></ref><ref id="cit15"><label>15</label><citation-alternatives><mixed-citation xml:lang="ru">Сухинов А.И., Чистяков А.Е., Проценко Е.А. О разностных схемах кабаре и крест. Вычислительные методы и программирование. 2019;20:170–181. https://doi.org/10.26089/NumMet.v20r216</mixed-citation><mixed-citation xml:lang="en">Sukhinov AI, Chistyakov AE, Protsenko EA. Upwind and Standard Leapfrog Difference Schemes. Numerical Methods and Programming. 2019;20(2):170–181. https://doi.org/10.26089/NumMet.v20r216</mixed-citation></citation-alternatives></ref><ref id="cit16"><label>16</label><citation-alternatives><mixed-citation xml:lang="ru">Гущин В.А. Разработка и применение метода расщепления по физическим факторам для исследования течений несжимаемой жидкости. Компьютерные исследования и моделирование. 2022;14(4):715–739. https://doi.org/10.20537/2076-7633-2022-14-4-715-739</mixed-citation><mixed-citation xml:lang="en">Gushchin VA. Development and Application of the Method of Splitting by Physical Factors for the Study of the Incompressible Fluid Flows. Computer Research and Modeling. 2022;14(4):715–739. https://doi.org/10.20537/2076-7633-2022-14-4-715-739</mixed-citation></citation-alternatives></ref><ref id="cit17"><label>17</label><citation-alternatives><mixed-citation xml:lang="ru">Кудинов Н.В., Никитина А.В. Компьютерные модели осесимметричного движения газа по каналам для решения технических и естественно-научных задач. В: Интеллектуальные информационные технологии и математическое моделирование: Труды Международной научной конференции Интеллектуальные информационные технологии и математическое моделирование (ИИТ&amp;ММ-2022). Дивноморское, Краснодарский край; Донской государственный технический университет ДГТУ; 2022. С. 93–100.</mixed-citation><mixed-citation xml:lang="en">Kudinov NV, Nikitina AV. Komp'yuternye modeli osesimmetrichnogo dvizheniya gaza po kanalam dlya resheniya tekhnicheskikh i estestvenno-nauchnykh zadach. In: Proc. Int. Conf. “Intellektual'nye informatsionnye tekhnologii i matematicheskoe modelirovanie (IIT&amp;MM-2022)”. Don State Technical University; 2022. P. 93–100. (In Russ.).</mixed-citation></citation-alternatives></ref><ref id="cit18"><label>18</label><citation-alternatives><mixed-citation xml:lang="ru">Sukhinov A.I., Chistyakov A.E., Nikitina A.V., et al. A Method of Solving Grid Equations for Hydrodynamic Problems in Flat Areas. Mathematical Models and Computer Simulations. 2023;35(3):35–58. https://doi.org/10.20948/mm-2023-03-03</mixed-citation><mixed-citation xml:lang="en">Sukhinov AI, Chistyakov AE, Nikitina AV, et al. A Method of Solving Grid Equations for Hydrodynamic Problems in Flat Areas. Mathematical Models and Computer Simulations. 2023;35(3):35–58. https://doi.org/10.20948/mm-2023-03-03</mixed-citation></citation-alternatives></ref></ref-list><fn-group><fn fn-type="conflict"><p>The authors declare that there are no conflicts of interest present.</p></fn></fn-group></back></article>
