Process simulation, optimisation and design. P.S.O.D. ORGANIZATION ISSUES . Course scope. Introduction MathCAD Introduction to CAPE Simple simulation of heat exchange process using common software ChemCAD (by dr Robert Kubica). Process simulation, optimisation and design.
01 / 74Process simulation, optimisation and design
1 / 17
Télécharger la présentation
Process simulation, optimisation and design
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation
Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement.Téléchargez la présentation en cliquant sur ce lien.Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.
Course scope • Introduction • MathCAD • Introduction to CAPE • Simple simulation of heat exchange process using common software • ChemCAD (by dr Robert Kubica)
Provide the students with: • using specialized software for mathematical problems solution • clear understanding of what is a process simulation, a process optimization and process design • using commonly available software to solve simulation problems • using specialized software for process simulation
A Model, what is it? • A model is a representation of some aspects of real world objects by: • other parameters easier to measure • scaled down objects • equations and numbers – mathematical models
The Model, what for? • A good model of the apparatus is needed for: • Apparatus design • Process • simulation • optimization • design • apparatus design can be done with pen and piece of paper but even quite simple process optimization problem needs to involve the computer
Model, how to calculate? • Manually • We need: • Knowledge • Paper and pen • Log tables, slide rule, calculator • Computer supported calculation • We need: • Knowledge • PROGRAM
COMPUTER PROGRAM DEFINITION „Set of instructions in a logical sequence interpreted and executed by a computer enabling the computer to perform a required function; also called software. Programs are the "thought processes" of computers, without which they cannot operate. Programs are written in various languages, to conform with the operating system of particular computers.”
Computer supported calculation • PROGRAM • Written by user, using programming language: • Low level (assembler) • High level (C, Pascal, Fortran, Basic) • Written by user, using common applications for calculation • Spreadsheets (Excel, Calc) • Mathematical tools (MathLab, MathCAD) • Specialized software for modeling and process simulation (AspenOne, ProSIM, ChemCAD)
Introduction • User interface • Writing cursor '+' • Toolbars • Calculator – equation symbols • Graph – building the charts • Matrix – inserting matrix/vectors, matrics operation • Calculus – derivatives, integrals, limits, summation, iterated product • Symbolic • Evaluation • Boolean –logical operation • Programming • Greek – inserting Greek letters • Turn of the Resource center at startup View/Preferences/Startup Options
Basic operations • Typing: • "normal" – text • Forced by: [shift]+["] • Automatically: after space insertion • "variable" – interpreted by program • Default • The typing modes are identified by style: • Normal – Font is Arial (by default) • Variable – Font is Times (by default) • Assign symbol":=" (keys [:][=])
MathCAD intro • Algebraic expressions • +,-,/,*(not always needed), power [^] • Functions arguments "(...)" • Result (evaluation): [=] • Expression typing – standard mathematical notation: [2][/][3][+][3][^][2][][l][n][(][3][)][=] or [2][/][3][+][3][^][2][space bar][l][n][(][3][)][=] To go back to basic level press spacebar or right arrow
MathCAD intro • Variables notation • Latin and Greek alphabet ( [ctrl] + [g] after typing Latin letter) • Case sensitivity: xX • Subscripts (not vector/matrix subscripts) [.] • Prim: x`, bis: x`` etc.
MathCAD intro • Assigning values and expressions (Pascal like) • One value assigned to one variable: x:=5keys: [x][:][5] • Range of arithmetic progression assigned to variable • Default step: x:=0..3 (means numbers 0, 1, 2, 3)keys [x][:][0][;][3] • Defined step: x:=0,2..6 (means numbers 0, 2, 4, 6) keys [x][:][0][,][2][;][6] • Expression to variable:y:=2·x+3keys: [y][:][2][*][x][+][3] Has to be defined earlier
MathCAD intro • The expressions edition • To change the position of edited place press space bar Vertical line: shows place of insertion of a sign Horizontal: shows range will be inserted into function etc.
MathCAD functions • Standard functions set • Functions definition • Syntax:FunctionName(arg1, arg2,...):= expression • E.g. f(x,y)=x·ykeys: [f][(][x][y][)][:][x][*][y] • Calculations with use of defined (or predefined) functions: • Evaluation for constants • Evaluation for defined variables • Evaluation for range of constants (vectors)
MathCAD functions • Graphs: • Function of one variable f(x)keys: [f][(][x][)][shift]+[2][x]
MathCAD functions • Graphs: • Default independent values range: -10 ÷ 10 • Can be edited
MathCAD functions • Graphs: • Several functions of one independent variable range: f(x), g(x)@xkeys: [f][(][x][)][,] [g][(][x][)][shift]+[2][x]
MathCAD functions • Graphs: • Several functions of several different independent variable range: f(x), g(z)@x, zkeys: [f][(][x][)][,] [g][(][z][)][shift]+[2][x][,][z]
MathCAD – vectors and matrix • To read the matrix elements Ar, k: key [[] r- row nr, k – column nr • e.g. element A1,1 keys: [A][[][1][,][1][=] • To chose matrix column • First column A( A<0>):keys [A][ctrl]+[6][0] • Default first column number is 0, (to change : Math/Options/Array Origin)
MathCAD – vectors and matrix • Special definition of matrix elements as a function of row-column number Mi,j=f(i,j) • E.g. Value of element is equal to product of column and row number
MathCAD 3D graphs • 3D graphs of function on the base of matrix : [ctrl]+[2][M] • M – matrix defined earlier RESTICTION: function arguments have to bee integer type
MathCAD 3D graphs • 3D Graphs of function of real type arguments • Using procedure: CreateMesh(function, lb_v1, ub_v1, lb_v2, ub_v2, v1grid, v2grid) • Assign result to variable • Plot of the variable like plot of matrix ([ctrl]+[2]) Boundariescan be the real type numbers. (def. –5,5) Grids have to be integer type numbers (def. 20)