11 research outputs found
Π Π°ΡΡΠΈΡΠ΅Π½ΠΈΠ΅ ΡΠ·ΡΠΊΠ° C Π΄Π»Ρ ΠΏΠΎΠ΄Π΄Π΅ΡΠΆΠΊΠΈ ΠΏΡΠΎΡΠ΅Π΄ΡΡΠ½ΠΎ-ΠΏΠ°ΡΠ°ΠΌΠ΅ΡΡΠΈΡΠ΅ΡΠΊΠΎΠ³ΠΎ ΠΏΠΎΠ»ΠΈΠΌΠΎΡΡΠΈΠ·ΠΌΠ°
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
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
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
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
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
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
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