Explore chapters and articles related to this topic
Functions in Arduino
Published in Amartya Mukherjee, Nilanjan Dey, Smart Computing with Open Source Platforms, 2019
Amartya Mukherjee, Nilanjan Dey
It initializes the environment. The entire initialization task has to be written in this function. The setup() function can be written as public void or sometimes void. The publicvoid is an access modifier that tells that the function is publicly available. The void is the return type that tells that the function by default returns nothing. As the setup() function is an initializer, we can mostly perform variable initializations, serial port initialization, and pin mode setup, or start using any libraries. When sketch starts running, the setup() function executes once during the very beginning of the system initialization.
C Programming
Published in Paul W. Ross, The Handbook of Software for Engineers and Scientists, 2018
This cube() function is called twice in Figure 13.34. Figure 13.35 takes two parameters and returns no value. The keyword “void” as the return type indicates that this function returns no value. (In some programming languages, this form of module would be called a “procedure” rather than a function.) If the return type is left blank, rather than void, the C compiler assumes that a function returns int. That is not what is intended in this case.
Higher-Level Programming
Published in Syed R. Rizvi, Microcontroller Programming, 2016
Void is also a data type. A void type has no values therefore we cannot declare it as variable as we did in the case of integer and float. A void data type is normally used with function to specify its type. Our “Hello World!” program is an example where we declared “main()” as void type because it does not return any value. A single character can be defined as a character type of data. In other words, character type variable can hold a single character. Characters are usually stored in 1 byte of internal storage. The qualifier signed or unsigned can be explicitly applied to char. The following code block shows the use of character data type. { char Letter; Letter = ‘z’; }Helpful Hint: With object-oriented programming, a programmer can create new data types to meet application needs. Languages that leave little room for programmers to define their own data types are said to be strongly typed languages.Self-Learning: Do some research from the Internet and books on C programming and find out the standard range for various fundamental data types used in C.
Effects of Carbon on Void Nucleation in Self-Ion–Irradiated Pure Iron
Published in Nuclear Science and Engineering, 2023
The C concentration is not the only parameter that affects void nucleation rate profiles. The dpa rate is another key parameter to influence the profile shape and peak location. Figure 5a shows the dpa rate effect by reducing the peak damage rate from 5 × 10−3 dpa/s to 1 × 10−5 dpa/s. All calculations have the same background C concentrations at 120 appm C. The ion irradiation temperature is fixed at 600 K. The solid line corresponds to 5 × 10−3 dpa/s. The dash line corresponds to 1 × 10−3 dpa/s. The dash dot dot line corresponds to 1 × 10−4 dpa/s. The dotted line corresponds to 1 × 10−5 dpa/s. At the highest dpa rate of 5 × 10−3 dpa/s, the void nucleation rate peaks near the surface. At a lower dpa rate of 1 × 10−3 dpa/s, the void nucleation profile exhibits a transition toward deeper nucleation. The nucleation peak shifts deeper, and the profile tail continues up to a depth of about 1.5 μm. At the dpa rate of 1 × 10−4 dpa/s, void nucleation begins to peak at about 1.3 μm. At the lowest dpa rate of 1 × 10−5 dpa/s, the whole nucleation profile shifts lower, but the peak depth still remains at 1.3 μm.
Plane waves in nonlocal thermoelastic solid with voids
Published in Journal of Thermal Stresses, 2019
Figures 5a–c, 6a–c and 7a–c depict the effect of void parameter β on the phase speeds, attenuation coefficients and specific loss of various coupled dilatational waves. It can be seen that the -wave is not affected by the change of void parameter β, while the propagation characteristics of other two sets of coupled dilatational waves are significantly affected. A similar effect of void parameter ξ is also observed on the coupled dilatational waves and the corresponding nature of influence have been depicted through Figures 8a–c, 9a–c and 10a–c. We also note that the attenuation coefficient of -wave is also not affected by the void parameters β and The thermal parameter γ is found to be such which has significant effect on the characteristics of all the coupled dilatational waves. The effect of γ on phase speeds, attenuation and specific loss of coupled dilatational waves has been shown through Figures 11a–c, 12a–c and 13a–c. Coupled thermal parameter m is also found to influence the propagation characteristics of all the coupled dilatational waves, but is less prominent than the parameter Note that the attenuation coefficient and specific losses S1 and S2 are not at all affected by the parameter m. These have been depicted through Figures 14a–c, 15a–c, and 16a–c.
Assessment of the CUPID Code for Bubbly Flows in Horizontal Pipes
Published in Nuclear Technology, 2018
Dong Hun Lee, Seungjin Kim, Han Young Yoon, Jae Jun Jeong
Figures 4, 5, and 6 show the results of the sensitivity calculations at L/D = 244. Figure 4 shows that for the case of run 01 (jl= 4 m/s and jg= 0.15 m/s) (Ref. 6), CTD of 0.1 yields the best results. Using CTD= 0.05, bubbles were concentrated too much in the upper part of the pipe. For the cases of 0.25 and 0.5, bubbles were dispersed too much. Figure 5 shows the radial void distribution under three different flow conditions using CTD= 0.1. It can be seen that the void fraction is overpredicted under low void fraction conditions and underpredicted under high void fraction conditions. This implies that the turbulent mixing of the liquid phase is lowered as the amount of liquid phase in the upper region of the pipe decreases. Thus, CTD needs to be properly modified as a function of void fraction. Based on the results of additional calculations,27 a simplified model for CTD is suggested: