You are on page 1of 23

Numerical Modeling of Thermal Systems Using Object Oriented Programming

VISHNU R ROLL NO: 18 M-TECH(ICTM) GEC , THRISSUR

INTRODUCTION
MODELING AND SIMULATION
Modeling means make use of objects(models) to conceptualize and construct systems

The term system simulation means observing a synthetic system


that imitates the performance of a real system. Enables designer to test whether design specifications are met virtually rather than physically. Particularly important for a multi disciplinary system.

IMPORTANCE
Shortens the design cycle and reduces the cost of design. Immediate feedback on design decisions. Comprehensive exploration of design alternatives. Optimal system performance.

Basic Requirements of Simulation


Modeling language
Sufficiently expressive to model the nonlinear, multi-disciplinary, hybrid continuousdiscrete phenomena encountered in the design prototypes.
The earliest simulation languages, based on CSSL (Continuous System Simulation Language), were procedural and provided a low-level description of a system in terms of ordinary differential equations. From these languages emerged two important developments: declarative (or equation-based) modeling, and object-oriented modeling.

Object Oriented Programming


Object oriented programming is a technique for programming an example for writing good programs for a set of problems. -A programming language that provides mechanisms that support the object oriented style of programming well .

Single-Domain Simulation
Simulation modeling defined for a single domain such as mechanical or electrical systems is a mature area, with several companies offering robust simulation packages. As for mechanical systems, a tight integration with the 3D design environment is essential. From the review above, it is clear that many singledomain simulation environments are closely integrated with design tools.

VISUAL BASIC
Visual Basic is a high level object oriented programming language developed by the Microsoft Corporation during the 90s. It is the advanced version of the BASIC language. But recently, the astonishing changes brought in the VB helped programmers to use it in almost every field.

NUMERICAL METHODS
Methods for solving equations involve linearization which leads to repeatedly solving linear systems of the form ax=b. Solution of nonlinear equations always requires iteration . That is unlike linear systems where if solutions exist they can be obtained exactly with Gaussian elimination with nonlinear equations only approximate solutions are obtained. However in principle the approximations can be improved by increasing the number of iterations. Some of the important numerical methods are Newton Raphson method and Gauss Seidel iterative method.

SCOPE OF WORK
The project consist of methods of solving using computational iterations such as in Newton Raphson and Gauss Seidel Method. Both the methods are applied on typical mathematical representations of problems underlying in mechanical engineering based. The projects are developed using Microsoft Visual Basic of Microsoft Visual Studio Professional Edition, one of the powerful object oriented programming language using today.

NEWTON RAPHSON METHOD

N-R Method Solution

The absolute relative approximate error at the end of each iteration is given by:

FLOW CHART-N-R METHOD


START NO If AS= IP VAL YES

DECLARE VARIABLES

NO DECLARE FUNCTIONS

If FV< .629

YES

STOP TIMER RUN TIMER PRINT RESULTS STOP

User interface- VB IDE

VB MODULE CODE EDITOR

VB CODE EDITOR

PROGRAM OUTPUT

Application with output generated

Output window separated

GAUSS SEIDEL METHOD


The relation between temperatures at three different points of a thermal system is shown under in the form of nonlinear equations. Our aim is to correct the equations based on a guessed value. This is being carried out with the help of iterations.

FLOW CHART-G-S METHOD


START NO If AS= IP VAL NO DECLARE FUNCTIONS YES

DECLARE VARIABLES

If Temp diff(a,b, c)<.000 01

YES

STOP TIMER RUN TIMER PRINT RESULTS STOP

User interface- VB IDE

VB MODULE CODE EDITOR VISUAL BASIC CODE EDITOR

PROGRAM OUTPUT

VB Output Windows

OUTPUT TABULATED

CONCLUSION
Current research further builds on these developments by moving towards component-based modeling and by providing support for hybrid (mixed continuous-discrete event) systems. Another requirement is that simulation models are easy to create and reuse. Creating high-fidelity simulation models is a complex activity that can be quite time-consuming. Object-oriented languages provide clear advantages with respect to model development, maintenance, and reuse. In addition, to take full advantage of simulation in the context of design, it is necessary to develop a modeling paradigm that is integrated with the design environment, and that provides a simple and intuitive interface that requires a minimum of analysis expertise.

REFERENCES
[1] http://numericalmethods.eng.usf.edu
[2] Ascher, U. M. and Petzold, L. R., Computer Methods for Ordinary Differential Equations and Differential-Algebraic Equations. Philadelphia, Pennsylvania: SIAM, 1998. [3] Design of Thermal Systems by Stoecker [4] MODELING AND SIMULATION METHODS FOR DESIGN OF ENGINEERING SYSTEMS, Rajarishi Sinha , Vei-Chung Liang, Christiaan J.J. Paredis,Pradeep K. Khosla, Carnegie Mellon University, Pittsburgh, PA 15213, USA

You might also like