In this paper we show how Scilab can be used to solve Navier-stokes equations, for the incompressible and stationary planar flow. Three examples have been presented and some comparisons with reference solutions are provided.
International Journal of Engineering Research and Applications (IJERA) is an open access online peer reviewed international journal that publishes research and review articles in the fields of Computer Science, Neural Networks, Electrical Engineering, Software Engineering, Information Technology, Mechanical Engineering, Chemical Engineering, Plastic Engineering, Food Technology, Textile Engineering, Nano Technology & science, Power Electronics, Electronics & Communication Engineering, Computational mathematics, Image processing, Civil Engineering, Structural Engineering, Environmental Engineering, VLSI Testing & Low Power VLSI Design etc.
IJRET : International Journal of Research in Engineering and Technology is an international peer reviewed, online journal published by eSAT Publishing House for the enhancement of research in various disciplines of Engineering and Technology. The aim and scope of the journal is to provide an academic medium and an important reference for the advancement and dissemination of research results that support high-level learning, teaching and research in the fields of Engineering and Technology. We bring together Scientists, Academician, Field Engineers, Scholars and Students of related fields of Engineering and Technology
AN EFFICIENT PARALLEL ALGORITHM FOR COMPUTING DETERMINANT OF NON-SQUARE MATRI...ijdpsjournal
One of the most significant challenges in Computing Determinant of Rectangular Matrices is high time
complexity of its algorithm. Among all definitions of determinant of rectangular matrices, Radic’s
definition has special features which make it more notable. But in this definition, C(N
M
) sub matrices of the
order m×m needed to be generated that put this problem in np-hard class. On the other hand, any row or
column reduction operation may hardly lead to diminish the volume of calculation. Therefore, in this paper
we try to present the parallel algorithm which can decrease the time complexity of computing the
determinant of non-square matrices to O(N).
International Journal of Engineering Research and Applications (IJERA) is an open access online peer reviewed international journal that publishes research and review articles in the fields of Computer Science, Neural Networks, Electrical Engineering, Software Engineering, Information Technology, Mechanical Engineering, Chemical Engineering, Plastic Engineering, Food Technology, Textile Engineering, Nano Technology & science, Power Electronics, Electronics & Communication Engineering, Computational mathematics, Image processing, Civil Engineering, Structural Engineering, Environmental Engineering, VLSI Testing & Low Power VLSI Design etc.
IJRET : International Journal of Research in Engineering and Technology is an international peer reviewed, online journal published by eSAT Publishing House for the enhancement of research in various disciplines of Engineering and Technology. The aim and scope of the journal is to provide an academic medium and an important reference for the advancement and dissemination of research results that support high-level learning, teaching and research in the fields of Engineering and Technology. We bring together Scientists, Academician, Field Engineers, Scholars and Students of related fields of Engineering and Technology
AN EFFICIENT PARALLEL ALGORITHM FOR COMPUTING DETERMINANT OF NON-SQUARE MATRI...ijdpsjournal
One of the most significant challenges in Computing Determinant of Rectangular Matrices is high time
complexity of its algorithm. Among all definitions of determinant of rectangular matrices, Radic’s
definition has special features which make it more notable. But in this definition, C(N
M
) sub matrices of the
order m×m needed to be generated that put this problem in np-hard class. On the other hand, any row or
column reduction operation may hardly lead to diminish the volume of calculation. Therefore, in this paper
we try to present the parallel algorithm which can decrease the time complexity of computing the
determinant of non-square matrices to O(N).
Numerical approach of riemann-liouville fractional derivative operatorIJECEIAES
This article introduces some new straightforward and yet powerful formulas in the form of series solutions together with their residual errors for approximating the Riemann-Liouville fractional derivative operator. These formulas are derived by utilizing some of forthright computations, and by utilizing the so-called weighted mean value theorem (WMVT). Undoubtedly, such formulas will be extremely useful in establishing new approaches for several solutions of both linear and nonlinear fractionalorder differential equations. This assertion is confirmed by addressing several linear and nonlinear problems that illustrate the effectiveness and the practicability of the gained findings.
Quantum algorithm for solving linear systems of equationsXequeMateShannon
Solving linear systems of equations is a common problem that arises both on its own and as a subroutine in more complex problems: given a matrix A and a vector b, find a vector x such that Ax=b. We consider the case where one doesn't need to know the solution x itself, but rather an approximation of the expectation value of some operator associated with x, e.g., x'Mx for some matrix M. In this case, when A is sparse, N by N and has condition number kappa, classical algorithms can find x and estimate x'Mx in O(N sqrt(kappa)) time. Here, we exhibit a quantum algorithm for this task that runs in poly(log N, kappa) time, an exponential improvement over the best classical algorithm.
In this paper, block-oriented systems with linear parts based on Laguerre functions is used to
approximation of a cone crusher dynamics. Adaptive recursive least squares algorithm is used to
identification of Laguerre model. Various structures of Hammerstein, Wiener, Hammerstein-Wiener models
are tested and the MATLAB simulation results are compared. The mean square error is used for models
validation.It has been found that Hammerstein-Wiener with orthonormal basis functions improves the
quality of approximation plant dynamics. The mean square error for this model is 11% on average
throughout the considered range of the external disturbances amplitude. The analysis also showed that
Wiener model cannot provide sufficient approximation accuracy of the cone crusher dynamics. During the
process it is unstable due to the high sensitivity to disturbances on the output.The Hammerstein-Wiener
model will be used to the design nonlinear model predictive control application.
THE LEFT AND RIGHT BLOCK POLE PLACEMENT COMPARISON STUDY: APPLICATION TO FLIG...ieijjournal
It is known that if a linear-time-invariant MIMO system described by a state space equation has a number of states divisible by the number of inputs and it can be transformed to block controller form, we can design a state feedback controller using block pole placement technique by assigning a set of desired Block poles. These may be left or right block poles. The idea is to compare both in terms of system’s response.
On selection of periodic kernels parameters in time series predictioncsandit
In the paper the analysis of the periodic kernels parameters is described. Periodic kernels can
be used for the prediction task, performed as the typical regression problem. On the basis of the
Periodic Kernel Estimator (PerKE) the prediction of real time series is performed. As periodic
kernels require the setting of their parameters it is necessary to analyse their influence on the
prediction quality. This paper describes an easy methodology of finding values of parameters of
periodic kernels. It is based on grid search. Two different error measures are taken into
consideration as the prediction qualities but lead to comparable results. The methodology was
tested on benchmark and real datasets and proved to give satisfactory results.
International Journal of Engineering Research and Applications (IJERA) is an open access online peer reviewed international journal that publishes research and review articles in the fields of Computer Science, Neural Networks, Electrical Engineering, Software Engineering, Information Technology, Mechanical Engineering, Chemical Engineering, Plastic Engineering, Food Technology, Textile Engineering, Nano Technology & science, Power Electronics, Electronics & Communication Engineering, Computational mathematics, Image processing, Civil Engineering, Structural Engineering, Environmental Engineering, VLSI Testing & Low Power VLSI Design etc.
International Journal of Engineering Research and Applications (IJERA) is an open access online peer reviewed international journal that publishes research and review articles in the fields of Computer Science, Neural Networks, Electrical Engineering, Software Engineering, Information Technology, Mechanical Engineering, Chemical Engineering, Plastic Engineering, Food Technology, Textile Engineering, Nano Technology & science, Power Electronics, Electronics & Communication Engineering, Computational mathematics, Image processing, Civil Engineering, Structural Engineering, Environmental Engineering, VLSI Testing & Low Power VLSI Design etc.
STUDY ANALYSIS ON TRACKING MULTIPLE OBJECTS IN PRESENCE OF INTER OCCLUSION IN...aciijournal
The object tracking algorithm is used to tracking multiple objects in a video streams. This paper provides
Mutual tracking algorithm which improve the estimation inaccuracy and the robustness of clutter
environment when it uses Kalman Filter. using this algorithm to avoid the problem of id switch in
continuing occlusions. First the algorithms apply the collision avoidance model to separate the nearby
trajectories. Suppose occurring inter occlusion the aggregate model splits into several parts and use only
visible parts perform tracking. The algorithm reinitializes the particles when the tracker is fully occluded.
The experimental results using unmanned level crossing (LC) exhibit the feasibility of our proposal. In
addition, comparison with Kalman filter trackers has also been performed.
Numerical approach of riemann-liouville fractional derivative operatorIJECEIAES
This article introduces some new straightforward and yet powerful formulas in the form of series solutions together with their residual errors for approximating the Riemann-Liouville fractional derivative operator. These formulas are derived by utilizing some of forthright computations, and by utilizing the so-called weighted mean value theorem (WMVT). Undoubtedly, such formulas will be extremely useful in establishing new approaches for several solutions of both linear and nonlinear fractionalorder differential equations. This assertion is confirmed by addressing several linear and nonlinear problems that illustrate the effectiveness and the practicability of the gained findings.
Quantum algorithm for solving linear systems of equationsXequeMateShannon
Solving linear systems of equations is a common problem that arises both on its own and as a subroutine in more complex problems: given a matrix A and a vector b, find a vector x such that Ax=b. We consider the case where one doesn't need to know the solution x itself, but rather an approximation of the expectation value of some operator associated with x, e.g., x'Mx for some matrix M. In this case, when A is sparse, N by N and has condition number kappa, classical algorithms can find x and estimate x'Mx in O(N sqrt(kappa)) time. Here, we exhibit a quantum algorithm for this task that runs in poly(log N, kappa) time, an exponential improvement over the best classical algorithm.
In this paper, block-oriented systems with linear parts based on Laguerre functions is used to
approximation of a cone crusher dynamics. Adaptive recursive least squares algorithm is used to
identification of Laguerre model. Various structures of Hammerstein, Wiener, Hammerstein-Wiener models
are tested and the MATLAB simulation results are compared. The mean square error is used for models
validation.It has been found that Hammerstein-Wiener with orthonormal basis functions improves the
quality of approximation plant dynamics. The mean square error for this model is 11% on average
throughout the considered range of the external disturbances amplitude. The analysis also showed that
Wiener model cannot provide sufficient approximation accuracy of the cone crusher dynamics. During the
process it is unstable due to the high sensitivity to disturbances on the output.The Hammerstein-Wiener
model will be used to the design nonlinear model predictive control application.
THE LEFT AND RIGHT BLOCK POLE PLACEMENT COMPARISON STUDY: APPLICATION TO FLIG...ieijjournal
It is known that if a linear-time-invariant MIMO system described by a state space equation has a number of states divisible by the number of inputs and it can be transformed to block controller form, we can design a state feedback controller using block pole placement technique by assigning a set of desired Block poles. These may be left or right block poles. The idea is to compare both in terms of system’s response.
On selection of periodic kernels parameters in time series predictioncsandit
In the paper the analysis of the periodic kernels parameters is described. Periodic kernels can
be used for the prediction task, performed as the typical regression problem. On the basis of the
Periodic Kernel Estimator (PerKE) the prediction of real time series is performed. As periodic
kernels require the setting of their parameters it is necessary to analyse their influence on the
prediction quality. This paper describes an easy methodology of finding values of parameters of
periodic kernels. It is based on grid search. Two different error measures are taken into
consideration as the prediction qualities but lead to comparable results. The methodology was
tested on benchmark and real datasets and proved to give satisfactory results.
International Journal of Engineering Research and Applications (IJERA) is an open access online peer reviewed international journal that publishes research and review articles in the fields of Computer Science, Neural Networks, Electrical Engineering, Software Engineering, Information Technology, Mechanical Engineering, Chemical Engineering, Plastic Engineering, Food Technology, Textile Engineering, Nano Technology & science, Power Electronics, Electronics & Communication Engineering, Computational mathematics, Image processing, Civil Engineering, Structural Engineering, Environmental Engineering, VLSI Testing & Low Power VLSI Design etc.
International Journal of Engineering Research and Applications (IJERA) is an open access online peer reviewed international journal that publishes research and review articles in the fields of Computer Science, Neural Networks, Electrical Engineering, Software Engineering, Information Technology, Mechanical Engineering, Chemical Engineering, Plastic Engineering, Food Technology, Textile Engineering, Nano Technology & science, Power Electronics, Electronics & Communication Engineering, Computational mathematics, Image processing, Civil Engineering, Structural Engineering, Environmental Engineering, VLSI Testing & Low Power VLSI Design etc.
STUDY ANALYSIS ON TRACKING MULTIPLE OBJECTS IN PRESENCE OF INTER OCCLUSION IN...aciijournal
The object tracking algorithm is used to tracking multiple objects in a video streams. This paper provides
Mutual tracking algorithm which improve the estimation inaccuracy and the robustness of clutter
environment when it uses Kalman Filter. using this algorithm to avoid the problem of id switch in
continuing occlusions. First the algorithms apply the collision avoidance model to separate the nearby
trajectories. Suppose occurring inter occlusion the aggregate model splits into several parts and use only
visible parts perform tracking. The algorithm reinitializes the particles when the tracker is fully occluded.
The experimental results using unmanned level crossing (LC) exhibit the feasibility of our proposal. In
addition, comparison with Kalman filter trackers has also been performed.
Topics to be discussed-
Introduction
How Does FEM Works?
Types Of Engineering Analysis
Uses of FEM in different fields
How can the FEM Help the Design Engineer?
How can the FEM Help the Design Organization?
Basic Steps & Phases Involved In FEM
Advantages and disadvantages
The Future Scope
References.
A simple finite element solver for thermo-mechanical problems - margonari eng...Scilab
In this paper we would like to show how it is possible to develop a simple but effective finite element solver to deal with thermo-mechanical problems. In many engineering situations it is necessary to solve heat conduction problems, both steady and unsteady state, to estimate the temperature field inside a medium and, at the same time, compute the induced strain and stress states.
To solve such problems many commercial software tools are available. They provide user-friendly interfaces and flexible solvers, which can also take into account very complicated boundary conditions, such as radiation, and nonlinearities of any kind, to allow the user to model the reality in a very accurate and reliable way.
However, there are some situations in which the problem to be solved requires a simple and standard modeling: in these cases it could be sufficient to have a light and dedicated software able to give reliable solutions. Moreover, other two desirable features of such a software could be the possibility to access the source to easily program new tools and, last but not least, to have a cost-and-license free product. This turns out to be very useful when dealing with the solution of optimization problems.
Keeping in mind these considerations, we used the Scilab platform and the gmsh (which are both open source codes) to show that it is possible to build tailored software tools, able to solve standard but complex problems quite efficiently.
Urban strategies to promote resilient cities The case of enhancing Historic C...inventionjournals
This research tackles disaster prevention problems in dense urban areas, concentrating on the urban fire challenge in Historic Cairo district, Egypt, through disaster risk management approach. The study area suffers from the strike of several urban fire outbreaks, that resulted in disfiguring historic monuments and destroying unregulated traditional markets. Therefore, the study investigates the significance of hazard management and how can urban strategies improve the city resilient through reducing the impact of natural and man-made threats. The main findings of the research are the determination of the vulnerability factors in Historic Cairo district, either regarding management deficiency or issues related to the existing urban form. It is found that the absence of the mitigation and preparedness phases is the main problem in the risk management cycle in the case study. Additionally, the coping initiatives adopted by local authorities to address risks are random and insufficient. The study concludes with recommendations which invoke incorporating hazard management stages (pre disaster, during disaster and post disaster) into the process of evolving development planning. Finally, solutions are offered to mitigate, prepare, respond and recover from fire disasters in the case study. The solutions include urban policies, land-use planning, urban design outlines, safety regulation and public awareness and training.
A nonlinear model for the vibration suppression of a smart composite elastic plate using graphical representation involving fuzzy control is presented. The plate follows the von Kármán and Kirchhoff plate bending theories and the oscillations are caused by external transversal loading forces, which are applied directly on it. Two different control forces, one continuous and one located at discrete points, are considered. The mechanical model is spatially discretized by using the time spectral Galerkin and collocation methods. The aim is to suppress vibrations through a simulation process within a modern graphical computing environment. Here we use MATLAB/SIMULINK, while other similar packages can be used as well. The nonlinear controller is designed, based on an application of a Mamdani-type fuzzy inference system. A computational algorithm, proposed and tested here is not only effective but robust as well. Furthermore, all elements of the study can be replaced or extended, due to the flexibility of the used SIMULINK environment.
ABSTRACT: A set of equations for removing and adding of a parameter were found in a scalar type vector function. By using the Cauchy-Euler differential operator in an exponential form, equations for calculation of the partial derivative with respect to the parameter were developed. Extensions to multiple vector and higher rank functions were made.
Similar to Scilab Finite element solver for stationary and incompressible navier-stokes equations (20)
Why electric vehicles need model-based design?
Because of the rising complexity in new vehicles, model-based design & systems engineering is needed to cascade the requirements and trace back any modification along the engineering lifecycle. Find out more in this presentation of a customer case about electric motor optimization.
Keynote of the French Space Agency CNES on the Asteroidlander MASCOT boarding the Hayabusa2 mission in collaboration with the Japanese Space Agency JAXA and the German Aerospace Center DLR
Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...Scilab
Rapid Prototyping becomes very popular for faster algorithm development. With a graphical representation of the algorithm and the possibility to simulate complete designs, engineers can help to reduce the time to market. A tight integration with MPLAB-X IDE allows the combination with standard C-coding to easily get mass production code. This solution was used to optimise a sensorless field oriented controlled PMSM motor driven pump efficiency. A model for closed loop simulation was developed using X2C blocks [1][2] for the FOC algorithm based on the existing application note AN1292 [3]. Enhancements to the original version were implemented and verified with simulation. The X2C Communicator was used to generate code of the new algorithm. With the online debugging capabilities and the scope functionality the algorithm was further tuned and optimized to achieve the highest possible efficiency of the pump.
Scilab and Xcos for Very Low Earth Orbits satellites modellingScilab
Very Low Earth Orbits are orbits in altitudes lower than 450 km. The interaction between the atmosphere particles and the surfaces of the spacecraft is responsible for the aerodynamic torques and forces. Simulating several aspects of the performance of a satellite flying in VLEO is very important to make decisions about the design of the spacecraft and the mission.
X2C -a tool for model-based control development and automated code generation...Scilab
Peter Dirnberger, Stefan Fragner
Nowadays, the market demands compact, stable, easy maintain-and customizable embedded systems. To meet these requirements, afast, simple and reliable implementation of control algorithms is crucial. This paper demonstrateshow model-based design with the help of Scilab/Xcosand X2C, developed by LCM,simplifiesand speedsup the development and implementation of controlalgorithms. As an example, acontrol schemefor a bearingless motoris presented.
A Real-Time Interface for Xcos – an illustrative demonstration using a batter...Scilab
As part of an EU-founded research project, the Scilab based development tool LoRra (Low-Cost Rapid Control Prototyping Platform) was created. This allows the realization of the continuously model based and highly automated Rapid Control Prototyping (RCP) design process for embedded software within the Scilab / Xcos environment (cf. Figure 1). Based on the application battery management system (BMS), this paper presents a Real-Time interface for Scilab.
Aircraft Simulation Model and Flight Control Laws Design Using Scilab and XCosScilab
The increasing demand in the aerospace industry for safety and performance has been requiring even more resourceful flight control laws in all market segments, since the airliners until the newest flying cars. The de facto standard for flight control laws design makes extensive use of tools supporting numerical computing and dynamic systems visual modeling, such that Scilab and XCos can nicely suit this kind of development.
Multiobjective optimization and Genetic algorithms in ScilabScilab
In this Scilab tutorial we discuss about the importance of multiobjective optimization and we give an overview of all possible Pareto frontiers. Moreover we show how to use the NSGA-II algorithm available in Scilab.
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxR&R Consult
CFD analysis is incredibly effective at solving mysteries and improving the performance of complex systems!
Here's a great example: At a large natural gas-fired power plant, where they use waste heat to generate steam and energy, they were puzzled that their boiler wasn't producing as much steam as expected.
R&R and Tetra Engineering Group Inc. were asked to solve the issue with reduced steam production.
An inspection had shown that a significant amount of hot flue gas was bypassing the boiler tubes, where the heat was supposed to be transferred.
R&R Consult conducted a CFD analysis, which revealed that 6.3% of the flue gas was bypassing the boiler tubes without transferring heat. The analysis also showed that the flue gas was instead being directed along the sides of the boiler and between the modules that were supposed to capture the heat. This was the cause of the reduced performance.
Based on our results, Tetra Engineering installed covering plates to reduce the bypass flow. This improved the boiler's performance and increased electricity production.
It is always satisfying when we can help solve complex challenges like this. Do your systems also need a check-up or optimization? Give us a call!
Work done in cooperation with James Malloy and David Moelling from Tetra Engineering.
More examples of our work https://www.r-r-consult.dk/en/cases-en/
Overview of the fundamental roles in Hydropower generation and the components involved in wider Electrical Engineering.
This paper presents the design and construction of hydroelectric dams from the hydrologist’s survey of the valley before construction, all aspects and involved disciplines, fluid dynamics, structural engineering, generation and mains frequency regulation to the very transmission of power through the network in the United Kingdom.
Author: Robbie Edward Sayers
Collaborators and co editors: Charlie Sims and Connor Healey.
(C) 2024 Robbie E. Sayers
Saudi Arabia stands as a titan in the global energy landscape, renowned for its abundant oil and gas resources. It's the largest exporter of petroleum and holds some of the world's most significant reserves. Let's delve into the top 10 oil and gas projects shaping Saudi Arabia's energy future in 2024.
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...Amil Baba Dawood bangali
Contact with Dawood Bhai Just call on +92322-6382012 and we'll help you. We'll solve all your problems within 12 to 24 hours and with 101% guarantee and with astrology systematic. If you want to take any personal or professional advice then also you can call us on +92322-6382012 , ONLINE LOVE PROBLEM & Other all types of Daily Life Problem's.Then CALL or WHATSAPP us on +92322-6382012 and Get all these problems solutions here by Amil Baba DAWOOD BANGALI
#vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore#blackmagicformarriage #aamilbaba #kalajadu #kalailam #taweez #wazifaexpert #jadumantar #vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore #blackmagicforlove #blackmagicformarriage #aamilbaba #kalajadu #kalailam #taweez #wazifaexpert #jadumantar #vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore #Amilbabainuk #amilbabainspain #amilbabaindubai #Amilbabainnorway #amilbabainkrachi #amilbabainlahore #amilbabaingujranwalan #amilbabainislamabad
Water scarcity is the lack of fresh water resources to meet the standard water demand. There are two type of water scarcity. One is physical. The other is economic water scarcity.
Welcome to WIPAC Monthly the magazine brought to you by the LinkedIn Group Water Industry Process Automation & Control.
In this month's edition, along with this month's industry news to celebrate the 13 years since the group was created we have articles including
A case study of the used of Advanced Process Control at the Wastewater Treatment works at Lleida in Spain
A look back on an article on smart wastewater networks in order to see how the industry has measured up in the interim around the adoption of Digital Transformation in the Water Industry.
Cosmetic shop management system project report.pdfKamal Acharya
Buying new cosmetic products is difficult. It can even be scary for those who have sensitive skin and are prone to skin trouble. The information needed to alleviate this problem is on the back of each product, but it's thought to interpret those ingredient lists unless you have a background in chemistry.
Instead of buying and hoping for the best, we can use data science to help us predict which products may be good fits for us. It includes various function programs to do the above mentioned tasks.
Data file handling has been effectively used in the program.
The automated cosmetic shop management system should deal with the automation of general workflow and administration process of the shop. The main processes of the system focus on customer's request where the system is able to search the most appropriate products and deliver it to the customers. It should help the employees to quickly identify the list of cosmetic product that have reached the minimum quantity and also keep a track of expired date for each cosmetic product. It should help the employees to find the rack number in which the product is placed.It is also Faster and more efficient way.
Scilab Finite element solver for stationary and incompressible navier-stokes equations
1. powered by
EnginSoft SpA - Via della Stazione, 27 - 38123 Mattarello di Trento | P.I. e C.F. IT00599320223
SCILAB FINITE ELEMENT SOLVER
FOR STATIONARY AND
INCOMPRESSIBLE NAVIER-STOKES
EQUATIONS
Author: Massimiliano Margonari
Keywords. Scilab; Open source software; Navier-Stokes equations
Abstract: In this paper we show how Scilab can be used to solve Navier-stokes
equations, for the incompressible and stationary planar flow. Three
examples have been presented and some comparisons with
reference solutions are provided.
Contacts m.margonari@openeering.com
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0
Unported License.
2. Navier-Stokes finite element solver
www.openeering.com page 2/15
1. Introduction
Scilab is an open source software package for scientific and numerical computing
developed and freely distributed by the Scilab Consortium (see [1]).
Scilab offers a high level programming language which allows the user to quickly
implement his/her own applications in a smart way, without strong programming skills.
Many toolboxes, developed by the users all over the world and made available through the
internet, represent a real opportunity to create complex, efficient and multiplatform
applications.
Scilab is regarded almost as a clone of the well-known MATLAB®
. The two technologies
have many points in common: the programming languages are very similar, they both use
a compiled version of numerical libraries to make basic computations more efficient, they
offer nice graphical tools. In brief, they both adopt the same philosophy, but Scilab has the
advantage of being completely free.
Unfortunately, Scilab is not yet widely used in industrial area where, on the contrary,
MATLAB®
and MATLAB SIMULINK®
are the most known and frequently used. This is
probably due to the historical advantage that MATLAB®
has over all the competitors.
Launched to the markets in the late 70’s, it was the first software of its kind. However, we
have to recall that MATLAB®
has many built-in functions that Scilab does not yet provide.
In some cases, this could be determinant. While the number of Scilab users, their
experiences and investments have grown steadily, the author of this article thinks that the
need to satisfy a larger and more diverse market, also led to faster software developments
in recent years. As in many other cases, also the marketing played a fundamental role in
the diffusion of the product.
Scilab is mainly used for teaching purposes and, probably for this reason, it is often
considered inadequate for the solution of real engineering problems. This is absolutely
false, and in this article, we will demonstrate that it is possible to develop efficient and
reliable solvers using Scilab also for non trivial problems.
To this aim, we choose the Navier-Stokes equations to model a planar stationary and
incompressible fluid motion. The numerical solution of such equations is actually
considered a difficult and challenging task, as it can be seen reading [3] and [4] just to
provide two references. If the user has a strong background in fluid dynamics he/she can
obviously implement more complex models than the one proposed in this document using
the same Scilab platform.
Anyway, there are some industrial problems that can be adequately modeled through
these equations: heat exchangers, boilers and more just to name a few possible
applications.
Figure 1: The Scilab logo (on the left) and the puffin logo (on the right). Dr. Hu Baogang, Contributor
Member of Scilab Scientific Board, chose a puffin because “The image of puffin reflects a spirit of
freedom with proud, as carried in the endeavor of developing open-source software [...]”.
3. Navier-Stokes finite element solver
www.openeering.com page 3/15
2. The Navier-Stokes equations for the incompressible fluid
Navier-Stokes equations can be derived applying the basic laws of mechanics, such as the
conservation and the continuity principles, to a reference volume of fluid (see [2] for more
details). After some mathematical manipulation, the user usually reaches the following
system of equations:
(1)
which are known as the continuity, the momentum and the energy equation respectively.
They have to be solved in the domain , taking into account appropriate boundary
conditions. The symbols “ ” and “ ” are used to indicate the divergence and the gradient
operator respectively, while , and are the unknown velocity vector, the pressure and
the temperature fields. The fluid properties are the density , the viscosity , the thermal
conductivity and the specific heat which could depend on temperature.
We have to remember that in the most general equations (1), other terms we have
neglected in this case (e.g. heat sources, body forces) could be involved. For sake of
simplicity we imagine all the fluid properties as constant and we will consider, as
mentioned above, only two dimensional domains. The former hypothesis represents a very
important simplification because the energy equations completely decouple and therefore,
it can be solved separately once the velocity field has been computed using the first two
equations. The latter one can be easily removed, with some additional effort in
programming.
It is fundamental to note that the momentum equation is non-linear, because of the
presence of the advection term . Moreover, the correct treatment of this term
requires a special attention, as it will be briefly discussed in the following paragraphs,
especially when its contribution becomes predominant with respect to the diffusive term.
Another source of difficulty is given by the first equation, which represents the
incompressibility condition: in the followings we will discuss also this aspect, even if the
interested reader is addressed to the literature (see [2], [3]) for a more detailed discussion
on these topics.
For the solution of the equations reported in (1) we decide to use a traditional Galerkin
weighted residual approach. As explained above, the energy equation can be solved
separately and, for this reason, only the first two equations will be considered in the
following. The same procedure identically applies also for the third one.
It is necessary to introduce two virtual fields, and , which multiply the first and the
second equation respectively and integrate them in the domain:
(2)
the divergence theorem can be invoked to rewrite the second equation in a more treatable
way. It is possible to write:
(3)
The integral over the boundary vanishes, in view of the incompressibility constraint, and
4. Navier-Stokes finite element solver
www.openeering.com page 4/15
therefore the system (2) can be rewritten as:
(4)
where the order of the equation has been changed. To solve numerically the above
system it is necessary to introduce a discretization of the domain and choose some
appropriate test functions. It is well known (see [2]) that, in this case, the test functions
used for virtual velocity and pressure fields have to be chosen in order to satisfy the inf-
sup condition (also known as Babuska-Brezzi condition). For this reason we decide to use
the six-noded triangular elements depicted in Figure 2; the velocity field is modeled using
quadratic shape functions and two unknowns at each node are considered, while the
pressure is modeled using linear shape functions and only three unknowns are used at the
corner nodes. In this way we have three unknowns in the corner nodes and only two in the
element midside nodes.
Equations (4) can be rewritten, once the discretization has been introduced, as the
appropriate sum over the elements of certain contributions that can be computed
numerically by means of a standard Gauss integration. The single element contribution
can be seen, in matrix form, as:
(5)
where:
is the diffusivity contribution, a (6 x 6) symmetric matrix The
matrix (2 x 6) collects the first derivatives in the two directions of the quadratic
shape functions.
is the convective non-linear contribution, a (6 x 6)
unsymmetric matrix. The vector collects the quadratic shape functions.
is the pressure contribution, a (6 x 3) matrix. The vector
collects the first derivatives of the linear shape functions in the specified direction.
is the term coming from the incompressibility condition, a (3 x 6)
matrix. The vector collects the linear shape functions while collects the first
derivatives of the quadratic shape functions in the specified direction.
All the integrals have to be evaluated on the element ; these contributions have been
always computed using a “master element” (it is common practice in a finite element
approach) and a Gauss technique with seven points.
The element matrix is clearly unsymmetric and it contains also the nonlinear terms due to
the convection. The peculiar structure of matrix (5), with some zero diagonal terms,
suggests interpreting the pressure unknowns as a sort of Lagrangian multipliers which
introduce a linear constraint in the model. This constraint is actually given by the
incompressibility condition as imposed by the continuity equation.
The element matrix and the known vector, which in our case is always zero, have to be
assembled into a global matrix and vector taking into account the applied boundary
conditions.
5. Navier-Stokes finite element solver
www.openeering.com page 5/15
The solution strategy adopted to deal with the nonlinear nature of the equations system is
probably the simplest one and it is usually known as the recursive approach (or Picard
approach). An initial guess for the velocity field has to be provided and a first system of
linear equations can be assembled and solved. In the element matrix reported above
the term collects the guess velocity field.
Once the linear system has been solved, the new computed velocity field can be
compared with the guessed field. If no significant differences are found, the solution
process can be stopped otherwise a new iteration has to be performed using the new
computed velocity field.
This process usually leads to the solution in a reasonable amount of iterations and it has
the advantage to be very easy to implement. There are more effective techniques, such as
the Newton-Raphson scheme, but they usually require to compute the Jacobian of the
system and they are harder to implement.
We decide to use the following criterion to stop the iteration process:
(6)
where the index i represents the iteration step and is the solution vector, collecting both
the velocity and pressure unknowns.
The approach used in this document, that is a standard Galerkin weighted residuals, is not
ideally suited for convection dominated problems: it is actually known that when the so-
called Peclet number, which expresses the ratio between convective and diffusion
contributions, grows the computed solution suffers from a non-physical oscillatory behavior
(see [2] for details). The same problem appears also when dealing with the energy
equation (the third one in (2)), when the convective contribution is sufficiently high.
This phenomenon can uniquely be ascribed to some deficiency of the numerical
technique; for this reason many workarounds have been proposed to correctly deal with
convection dominated problems. The most known are surely the streamline upwinding
schemes, the Petrov-Galerkin, least square Galerkin approaches and other stabilization
techniques.
In this work we do not adopt any of these techniques, knowing that the computed solution
with a pure Galerkin approach will be reliable only in the case of diffusion dominated
problems. As already mentioned above, it could be in principle possible to implement
whatever technique to improve the code and to make the solution process less sensitive to
the flow nature, but this is not the objective of the work.
Figure 2: The six-noded finite element used to discretize the fluid domain. The velocity field is
modeled using quadratic shape functions and two unknowns at each black node are considered (Vx
and Vy), while the pressure (P) is modeled using linear shape functions and only three unknowns are
used at the corner nodes (the red ones).
6. Navier-Stokes finite element solver
www.openeering.com page 6/15
3. Implementation details
The first step to deal with is surely to define the domain and its discretization. The best
would be to have a parametric definition of the geometry in order to allow an easy, may be
automatic, modification of the domain. To this aim we decided to use another open source
software, Gmsh (see [2]), which has been chosen among the many others available
because it is really easy to use, powerful, and it can be used also as a postprocessor and
a graphical tool to visualize results.
Then a text input file where the user provides all the information needed to define the
model has to be organized. We decided to define some sections inside which the user
specifies the fluid properties and the boundary conditions. In Figure 3 the input file for the
channel problem solved in the following is shown. The section $Fluid, $Velocity and
$Pressure can be easily recognized. In the first one a list of fluid properties for each fluid
domain in the model is provided, while in the last two sections the velocity field in the two
directions and the pressure on the boundaries are given.
The Scilab solver has been organized in six files containing functions grouped according to
their role. In this way it is extremely easy to add and remove components to the solver
leading to an easier software development.
The main.sce function is in charge of managing the entire process calling the proper
functions when needed. First, it is necessary to read the text file (*.msh) written by Gmsh
containing the mesh and the input file given by the user. Then, all the data structures have
to be organized and the matrices and vectors required for the subsequent numerical
solution have to be allocated.
The iterative process described above can now start: the global system of equations is
computed and then solved: the best strategy to adopt in this case for the matrix storage is
surely the sparse scheme, in order to reduce as much as possible the memory waste
during the solution. The taucs library can be invoked to solve the linear system by means
to an LU decomposition and get a result very fast and easy. It is worth mentioning that the
solution of the linear system is invoked in Scilab with just three command lines: with the
first one the LU decomposition is computed, with the second command the backward
process is perform and finally the memory is cleaned up.
This friendly and easy way of managing the solution of a linear system allows the user to
access a very efficient library without spending too much time in developing dedicated
code.
At the end of each step the convergence has to be checked and eventually the process
has to be iterated. Once the final solution has been found a result file is written and it can
be read by Gmsh.
7. Navier-Stokes finite element solver
www.openeering.com page 7/15
$Fluid
9 1 1.e-3 !Physical index, density, viscosity
$End
$Velocity
1 1 1 0 0 !Physical index, code x, code y (1=assigned
vel. in dir, 0=unknown vel. in dir), ux, uy
3 1 1 0 0
5 1 1 0 0
6 1 1 0 0
7 1 1 0 0
8 1 1 0 0
4 1 1 0.3 0
$End
$Pressure
2 0 !Physical index, pressure value
$End
Figure 3: The input file used to set up the channel problem used as a benchmark problem. It has a
very simple structure: there are some sections where the user can define the fluid properties and the
boundary conditions directly on the physical (geometrical) entities defined in the model, and not on
the nodes. This obviously simplifies a lot the set up phase, allowing a very compact, clear and easy
to change way to specify complex conditions also on different meshes of the same model.
4. Benchmark computations of a laminar flow around a cylinder
In order to test the solver written with Scilab we decided to solve a simple problem which
has been used by different authors (see [3], [6]) as a benchmark problem. This benchmark
can test different numerical approaches for the solution of the incompressible, steady and
unsteady, Navier-Stokes equations. In Figure 4 the problem is drawn, where the geometry
and the boundary conditions can be found. The fluid density is set to 1 and the viscosity to
10-3
. A parabolic (Poiseulle) velocity field in x direction is imposed on the inlet, as shown in
equation (7),
(7)
with , a zero pressure condition is imposed on the outlet. The velocity in both
directions is imposed to be zero on the other boundaries. The Reynolds number is
computed as , where the mean velocity at the inlet ( ), the circle
diameter and the kinematic viscosity have been used.
In Figure 5 the adopted meshes have been drawn. The first has 809 elements, 1729
nodes, totally 3486 unknowns while the second has 2609 elements, 5409 nodes, totally
11478 unknowns.
The computations can be performed on a common laptop. In our case, the user has to wait
around 43 [sec] to solve the first mesh, while the total solution time is around 310 [sec] for
the second model; in both cases 17 iterations are necessary to reach the convergence.
8. Navier-Stokes finite element solver
www.openeering.com page 8/15
The longest part of the solution time is spent to compute the element contributions and fill
the matrix: this is mainly due to the fact that the system solution invokes the taucs, which
is a compiled library, while the matrix fill-in is done directly in Scilab which is interpreted,
and not compiled, leading to a less performing run time.
The whole solution time is however always acceptable even for the finest mesh.
The same problem has been solved also with ANSYS-Flotran (2375 elements, 2523
nodes) and results can be compared with the ones provided by our solver. The
comparison is encouraging because the global behavior is well captured also with the
coarser mesh and the numerical differences registered between the maximum and
minimum values are always acceptable, considering that different grids are used by the
solvers.
Other two quantities have been computed and compared with the analogous quantities
proposed in [6]. The first one is the recirculation length that is the region behind the circle
where the velocity along x is not positive, whose expected value is between 0.0842 and
0.0852; the coarser mesh provides a value of 0.0836 and the finer one a value of 0.0846.
The second quantity which can be compared is the pressure drop across the circle,
computed as the difference between the pressures in (0.15; 0.20) and (0.25; 0.20); the
expected value should fall between 0.1172 and 0.1176. In our case the coarser mesh
gives 0.1191 while the finer gives 0.1177.
Figure 4: The benchmark problem of a laminar flow around a cylinder used to test our solver; the
boundary conditions are drawn in blue. The same problem has been solved using different
computational strategies in [6]; the interested reader is addressed to this reference for more details.
9. Navier-Stokes finite element solver
www.openeering.com page 9/15
Figure 5: The two meshes used for the benchmark. On the top the coarse one (3486 unknowns) and
on the bottom the finer one (11478 unknowns).
Figure 6: The sparsity pattern of the system of linear equations that have to be solved. It has to be
noted that the pattern is symmetric with respect to the diagonal, but unfortunately the matrix is not.
The non-zero terms amount to 60294, leading to a storage requirement of 60294x(8+2*4) = 965 Kbytes
when double precision is used. If a full square matrix were used, 11478*11478*8 = 1053956 Kbytes
would have be necessary!
10. Navier-Stokes finite element solver
www.openeering.com page 10/15
Figure 7: Starting from top, the x and y components of velocity, the velocity magnitude and the
pressure for Reynolds number equal to 20, computed with the finer mesh.
11. Navier-Stokes finite element solver
www.openeering.com page 11/15
Figure 8: Starting from top, the x and y components of velocity, the velocity magnitude and the
pressure for Reynolds number equal to 20, computed with the ANSYS-Flotran solver (2375 elements,
2523 nodes).
12. Navier-Stokes finite element solver
www.openeering.com page 12/15
5. Cavity flow problem
A second standard benchmark for incompressible flow is considered in this section. It is
the flow of an isothermal fluid in a square cavity with unit sides, as schematically
represented in Figure 9; the velocity field has been set to zero along all the boundaries,
except than the upper one, where a uniform unitary horizontal velocity has been imposed.
In order to make the problem solvable a zero pressure has been imposed to the lower left
corner of the cavity.
We would like to guide the interested reader to [3], where the same benchmark problem
has been solved. Some comparisons between the position of the main vortex obtained
with our solver and the analogous quantity computed by different authors and collected in
[3] have been done and summarized in Table 1. In Figure 10 the velocity vector (top) and
magnitude (bottom) are plotted for three different cases; the Reynolds number is
computed as the inverse of the kinematic viscosity, being the reference length, the fluid
density and the velocity all set to one. As the Reynolds number grows the center of the
main vortex tends to mode trough the center of the cavity.
Figure 9: The geometry and the boundary conditions of the second benchmark used to test the
solver.
Reynolds
Number
Author x y
100
Solver proposed in [3] 0.62 0.74
Burggraf (1996) 0.62 0.74
Tuann and Olson (1978) 0.61 0.722
Scilab solver 0.617 0.736
400
Solver proposed in [3] 0.568 0.606
Burggraf (1996) 0.560 0.620
Tuann and Olson (1978) 0.506 0.583
Ozawa (1975) 0.559 0.614
Scilab solver 0.558 0.606
1000
Solver proposed in [3] 0.540 0.573
Ozawa (1975) 0.533 0.569
Goda (1979) 0.538 0.575
Scilab solver 0.534 0.569
Table 1: The results collected in [3] have been reported here and compared with the analogous
quantities computed with our solver (Scilab solver). A satisfactory agreement is observed.
13. Navier-Stokes finite element solver
www.openeering.com page 13/15
Figure 10: The velocity vector (top) and the velocity magnitude (bottom) plotted superimposed to the
mesh for (left), for (center) and for (right). The main vortex tends to the
center of the cavity as the Reynolds numbers grows and secondary vortexes appear.
6. Thermo-fluid simulation of an heat exchanger
The solver has been tested and it has been verified that it provides accurate results for low
Reynolds numbers. A new problem, may be more interesting from an engineering point of
view, has been considered: let us imagine that a warm water flow (density of 1000
[Kg/m3], viscosity of 5∙10-4 [Pa s], thermal conductivity 0.6 [W/m°C] and specific heat
4186 [J/Kg°C]) with a given velocity enters into a sort of heat exchanger where some hot
circles are present. We would like to compute the outlet fluid temperature imaging that the
flow is sufficiently low to allow a pure Galerkin approach.
In Figure 11 the mesh for this model is drawn, together with some dimensioning: we
decided to consider only the upper part of this heat exchanger in view of the symmetry
with respect to the x-axis. The mesh contains 10673 nodes, leading to 22587 velocities
and pressures nodal unknowns and 10302 nodal temperatures unknowns.
The symmetry conditions are simply given by imposing homogeneous vertical velocity and
thermal flux on the boundaries lying on the symmetry axis. The horizontal inlet velocity
follows a parabolic law which goes to zero on the boundary and assume a maximum value
of 1∙10-3 [m/s] on the symmetry axis. The inlet temperature is 20 [°C] and the temperature
of the circle surfaces has been set to 50 [°C]. The outlet pressure has been set to zero in
order to get a unique solution. As explained above, the velocity and pressure fields can be
computed first and then the energy equation can be tackled in a second phase to compute
the temperature in each point.
In Figure 12 the fluid velocity magnitude and in Figure 13 the temperature field are drawn.
14. Navier-Stokes finite element solver
www.openeering.com page 14/15
Figure 11: The heat exchanger considered in this work. The symmetry axis is highlighted in blue and
some dimensioning (in [cm]) is reported.
Figure 12: The velocity magnitude plotted superimposed to the mesh.
Figure 13: The temperature field. It can be seen that the inlet temperature is 20 [°C], the circles
temperature is 50 [°C], while the outlet temperature vary from a minimum of 32.60 [°C] up to a
maximum of 44.58 [°C].
15. Navier-Stokes finite element solver
www.openeering.com page 15/15
7. Conclusions
In this work we have shown how to use Scilab to solve complex problems in an efficient
manner. In order to convince the reader that this is feasible, a solver for the Navier-Stokes
equations for the incompressible and stationary flow has been implemented using the
standard tools provided with the Scilab distribution. Two examples have been proposed
and some comparisons with results provided by commercial software and available in the
literature have been done in order to test the solver.
It is worth mentioning that a certain background in finite element analysis is obviously
mandatory, but no advanced programming skills are necessary to implement the solver.
8. References
[1] http://www.scilab.org/ to have more information on Scilab
[2] The Gmsh can be freely downloaded from: http://www.geuz.org/gmsh/
[3] J. Donea, A. Huerta, Finite Element Methods for Flow Problems, (2003) Wiley
[4] J. H. Ferziger, M. Peric, Computational Methods for Fluid Dynamics, (2002) Springer,
third edition
[5] R. Rannacher, Finite Element Methods for the Incompressible Navier-Stokes
Equations, (1999) downloaded from http://ganymed.iwr.uni-heidelberg.de/Oberwolfach-
Seminar
[6] M. Schafer, S. Turek, Benchmark Computations of laminar Flow Around a Cylinder,
downloaded from http://www.mathematik.uni-
dortmund.de/de/personen/person/Stefan+Turek.html