11 research outputs found

    Π Π°ΡΡˆΠΈΡ€Π΅Π½ΠΈΠ΅ языка C для ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠΈ ΠΏΡ€ΠΎΡ†Π΅Π΄ΡƒΡ€Π½ΠΎ-парамСтричСского ΠΏΠΎΠ»ΠΈΠΌΠΎΡ€Ρ„ΠΈΠ·ΠΌΠ°

    Get PDF
    Software development is often about expanding functionality. To improve reliability in this case, it is necessary to minimize the change in previously written code. For instrumental support of the evolutionary development of programs, a procedural-parametric programming paradigm was proposed, which made it possible to increase the capabilities of the procedural approach. This allows to extend both data and functions painlessly. The paper considers the inclusion of procedural-parametric programming in the C language. Additional syntactic constructions are proposed to support the proposed approach. These constructions include: parametric generalizations, specializations of generalizations, generalizing functions, specialization handlers. Their semantics, possibilities and features of technical implementation are described. To check the possibilities of using this approach, models of procedural-parametric constructions in the C programming language were built. The example in the article demonstrates the flexible extension of the program and support of multiple polymorphism.Π Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния Π·Π°Ρ‡Π°ΡΡ‚ΡƒΡŽ связана с Ρ€Π°ΡΡˆΠΈΡ€Π΅Π½ΠΈΠ΅ΠΌ Ρ„ΡƒΠ½ΠΊΡ†ΠΈΠΎΠ½Π°Π»ΡŒΠ½ΠΎΡΡ‚ΠΈ. Для ΠΏΠΎΠ²Ρ‹ΡˆΠ΅Π½ΠΈΡ надСТности Π² этом случаС Π½Π΅ΠΎΠ±Ρ…ΠΎΠ΄ΠΈΠΌΠΎ ΠΌΠΈΠ½ΠΈΠΌΠΈΠ·ΠΈΡ€ΠΎΠ²Π°Ρ‚ΡŒ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠ΅ Ρ€Π°Π½Π΅Π΅ написанного ΠΊΠΎΠ΄Π°. Для ΠΈΠ½ΡΡ‚Ρ€ΡƒΠΌΠ΅Π½Ρ‚Π°Π»ΡŒΠ½ΠΎΠΉ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠΈ ΡΠ²ΠΎΠ»ΡŽΡ†ΠΈΠΎΠ½Π½ΠΎΠΉ Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠΈ ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌ Π±Ρ‹Π»Π° ΠΏΡ€Π΅Π΄Π»ΠΎΠΆΠ΅Π½Π° ΠΏΡ€ΠΎΡ†Π΅Π΄ΡƒΡ€Π½ΠΎ-парамСтричСская ΠΏΠ°Ρ€Π°Π΄ΠΈΠ³ΠΌΠ° программирования, Ρ‡Ρ‚ΠΎ ΠΏΠΎΠ·Π²ΠΎΠ»ΠΈΠ»ΠΎ ΠΏΠΎΠ²Ρ‹ΡΠΈΡ‚ΡŒ возмоТности ΠΏΡ€ΠΎΡ†Π΅Π΄ΡƒΡ€Π½ΠΎΠ³ΠΎ ΠΏΠΎΠ΄Ρ…ΠΎΠ΄Π°. Π­Ρ‚ΠΎ обСспСчиваСт Π±Π΅Π·Π±ΠΎΠ»Π΅Π·Π½Π΅Π½Π½ΠΎΠ΅ Ρ€Π°ΡΡˆΠΈΡ€Π΅Π½ΠΈΠ΅ ΠΊΠ°ΠΊ Π΄Π°Π½Π½Ρ‹Ρ…, Ρ‚Π°ΠΊ Ρ„ΡƒΠ½ΠΊΡ†ΠΈΠΉ, ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΡ ΠΏΡ€ΠΈ этом ΡΡ‚Π°Ρ‚ΠΈΡ‡Π΅ΡΠΊΡƒΡŽ Ρ‚ΠΈΠΏΠΈΠ·Π°Ρ†ΠΈΡŽ. Π’ Ρ€Π°Π±ΠΎΡ‚Π΅ рассматриваСтся Π²ΠΊΠ»ΡŽΡ‡Π΅Π½ΠΈΠ΅ ΠΏΡ€ΠΎΡ†Π΅Π΄ΡƒΡ€Π½ΠΎ-парамСтричСского программирования Π² язык C. ΠŸΡ€Π΅Π΄Π»Π°Π³Π°ΡŽΡ‚ΡΡ Π΄ΠΎΠΏΠΎΠ»Π½ΠΈΡ‚Π΅Π»ΡŒΠ½Ρ‹Π΅ синтаксичСскиС конструкции, ΠΎΡ€ΠΈΠ΅Π½Ρ‚ΠΈΡ€ΠΎΠ²Π°Π½Π½Ρ‹Π΅ Π½Π° ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΡƒ ΠΏΡ€Π΅Π΄Π»Π°Π³Π°Π΅ΠΌΠΎΠ³ΠΎ ΠΏΠΎΠ΄Ρ…ΠΎΠ΄Π°. К Π½ΠΈΠΌ относятся: парамСтричСскиС обобщСния, спСциализации ΠΎΠ±ΠΎΠ±Ρ‰Π΅Π½ΠΈΠΉ, ΠΎΠ±ΠΎΠ±Ρ‰Π°ΡŽΡ‰ΠΈΠ΅ Ρ„ΡƒΠ½ΠΊΡ†ΠΈΠΈ, ΠΎΠ±Ρ€Π°Π±ΠΎΡ‚Ρ‡ΠΈΠΊΠΈ спСциализаций. ΠžΠΏΠΈΡΡ‹Π²Π°ΡŽΡ‚ΡΡ ΠΈΡ… сСмантика, возмоТности ΠΈ особСнности тСхничСской Ρ€Π΅Π°Π»ΠΈΠ·Π°Ρ†ΠΈΠΈ. Для ΠΏΡ€ΠΎΠ²Π΅Ρ€ΠΊΠΈ возмоТностСй использования Π΄Π°Π½Π½ΠΎΠ³ΠΎ ΠΏΠΎΠ΄Ρ…ΠΎΠ΄Π° построСны ΠΌΠΎΠ΄Π΅Π»ΠΈ ΠΏΡ€ΠΎΡ†Π΅Π΄ΡƒΡ€Π½ΠΎ-парамСтричСских конструкций Π½Π° языкС программирования C. ΠŸΡ€ΠΈΠ²Π΅Π΄Π΅Π½Π½Ρ‹ΠΉ ΠΏΡ€ΠΈΠΌΠ΅Ρ€ дСмонстрируСт Π³ΠΈΠ±ΠΊΠΎΠ΅ Ρ€Π°ΡΡˆΠΈΡ€Π΅Π½ΠΈΠ΅ ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΡƒ мноТСствСнного ΠΏΠΎΠ»ΠΈΠΌΠΎΡ€Ρ„ΠΈΠ·ΠΌΠ°

    Simulation of Diffusion-Controlled Growth of Interdependent Nuclei under Potentiostatic Conditions

    No full text
    The problem of diffusion-controlled growth following an instantaneous nucleation event was studied within the framework of a new numerical model, considering the spatial distribution of hemispherical nuclei on the electrode surface and the mutual influence of growing nuclei via the collision of 3D diffusion fields. The simulation of the diffusion-controlled growth of hexagonal and random ensembles was performed at the overpotential-dependent number density of nuclei. The diffusion flow to each nucleus within a random ensemble was simulated by the finite difference method using the derived analytical expressions for the surface areas and the volumes formed at the intersection of 3D diffusion fields with the side faces of a virtual right prism with a Voronoi polygon base. The implementation of this approach provides an accurate calculation of concentration profiles, time dependences of the size of nuclei, and current transients. The results, including total current density transients, growth exponents, and nucleus size distribution, were compared with models developed within the concept of planar diffusion zones, the mean-field approximation and the Brownian dynamics simulation method, as well as with experimental data from the literature. The prospects of the model for studying the initial stages of electrocrystallization were discussed

    Integrability of the limit model for a vacuum diode and a solution to the singular boundary-value problem

    No full text
    This article concerns singular boundary-value problems for a vacuum diode model. We prove the integrability of a system of nonlinear differential equations and construct a complete system of the first integrals; thus developing a method for solving singular boundary value problems. Also we study the asymptotic behavior of the solution in a neighborhood of the singular point

    Simulation of Diffusion-Controlled Growth of Interdependent Nuclei under Potentiostatic Conditions

    No full text
    The problem of diffusion-controlled growth following an instantaneous nucleation event was studied within the framework of a new numerical model, considering the spatial distribution of hemispherical nuclei on the electrode surface and the mutual influence of growing nuclei via the collision of 3D diffusion fields. The simulation of the diffusion-controlled growth of hexagonal and random ensembles was performed at the overpotential-dependent number density of nuclei. The diffusion flow to each nucleus within a random ensemble was simulated by the finite difference method using the derived analytical expressions for the surface areas and the volumes formed at the intersection of 3D diffusion fields with the side faces of a virtual right prism with a Voronoi polygon base. The implementation of this approach provides an accurate calculation of concentration profiles, time dependences of the size of nuclei, and current transients. The results, including total current density transients, growth exponents, and nucleus size distribution, were compared with models developed within the concept of planar diffusion zones, the mean-field approximation and the Brownian dynamics simulation method, as well as with experimental data from the literature. The prospects of the model for studying the initial stages of electrocrystallization were discussed

    Mechanism and Kinetics of the Phase Formation and Dissolution of Na<sub>x</sub>WO<sub>3</sub> on a Pt Electrode in a Na<sub>2</sub>WO<sub>4</sub>–WO<sub>3</sub> Melt

    No full text
    A comprehensive study concerning the phase formation mechanism and growth/dissolution kinetics of sodium tungsten bronze crystals during the electrolysis of a 0.8Na2WO4–0.2WO3 melt was carried out. The regularities of deposit formation on a Pt(111) working electrode were investigated experimentally using cyclic voltammetry, chronoamperometry, scanning electron microscopy, and X-ray diffraction analysis. Models have been developed to calculate the current response during the formation, growth and dissolution of a two-phase deposit consisting of NaxWO3 and metallic tungsten or two oxide tungsten bronzes with different sodium content. These models consider mass transfer to the electrode and nuclei; chemical and electrochemical reactions with the participation of polytungstate ions, Na+, Na0, and O2βˆ’; as well as the ohmic drop effect. The approach was proposed to describe the dissolution of an NaxWO3 crystal with a nonuniform sodium distribution. The fitting of cyclic voltammograms was performed using the Levenberg–Marquardt algorithm. The NaxWO3 formation/growth/dissolution mechanism was determined. Concentration profiles and diffusion coefficients of [WnO3n]βˆ’, reaction rate constants, number density of nuclei, and time dependencies of crystal size were calculated. The proposed approaches and models can be used in other systems for the cyclic voltammogram analysis and study of the mechanism and kinetics of electrode processes complicated by phase formation; parallel and sequential electrochemical and chemical reactions; as well as the formation of a deposit characterized by a nonuniform phase and/or chemical composition

    Simulation of 3D Electrochemical Phase Formation: Mixed Growth Control

    No full text
    Processes of nucleation and growth largely determine the structure and properties of thin films obtained by electrodeposition on foreign substrates. Theoretical aspects of the initial stages of electrochemical phase formation under constant and variable overpotentials are considered in this work. Simulation of multiple nucleation with mixed (charge transfer, and diffusion) controlled growth was performed for three cases (cyclic voltammetry, potentiostatic electrodeposition, and galvanostatic electrodeposition). The influence of the bulk concentration of depositing ions and the exchange current density at the electrolyte/nucleus interface on cyclic voltammograms (CVs), transients of current and overpotential, as well as the number and size of non-interacting new-phase nuclei was analyzed. It is found that, under galvanostatic conditions, the number of nuclei decreases as the concentration of depositing ions increases due to a more rapid decrease in overpotential. The proposed model was applied to determine the diffusion coefficient, exchange current density, and transfer coefficient considering the experimental CV

    Peripheral blood leukocyte NO production and oxidative stress in multiple sclerosis

    No full text
    Background The reason for increased peripheral blood leukocyte ( PBL) nitric oxide ( NO) production in patients with multiple sclerosis ( MS) is unknown. Objective To investigate whether PBL NO production is related to measures of oxidative stress. Methods PBL nitrite, diene conjugates ( DC, a measure of undergone oxidative stress), antiradical activity ( ARA) and antioxidant acitvity ( AOA) were measured in 35 healthy control persons and 80 patients with MS. We investigated the correlation of these measures with a partial correlation analysis, with age as the control variable. Results There was a significant correlation in both MS patients and healthy control persons between PBL nitrite levels and PBL DC, ARA and AOA. The correlations were stronger in healthy control persons. An analysis by disease subtype showed that the correlations were present in patients with relapsing - remitting and secondary progressive MS, but absent in primary progressive MS. Conclusions PBL nitrite levels and measures of oxidative stress are closely related in MS- patients as well as in healthy control persons. Increased serum NO levels in MS may be the result of a physiologic reaction to overall oxidative stress. The differences in the strength of correlation between different disease subtypes may reflect differences in leukocyte biology. Multiple Sclerosis 2008
    corecore