I would like to create a contour plot on polar axes similar to the plots produced by the polar function. Position of the stagnation point for the rankine halfbody. Modelling and analysis of a smallscale organic rankine. Together with rudolf clausius and william thomson lord kelvin, he was a contributor to the thermodynamics, particularly focusing on the. This work examines organic rankine cycles for use in a polygeneration plant that converts coal feedstock into hydrocarbon products and electricity. Reducing fossil fuel by using orc cycles can enhance environmental quality, can reduces carbon emissions and the reliance on. Rankine halfbody now, the stagnation streamline can be defined by evaluating. Rankine half body given that q the strength of the source q4. I know the basic equations for the streamlines and the velocity potential lines. Pdf sources and sinks, vortex, doublet, rankine half. Sfvm is an integrated matlab application complete with a graphical user interface gui and a plotting window that generates streamline patterms for a broad range of flows. Then we started programming for ships with fine form which will be our future. A matlab function is a matlab program that performs a sequence of operations specified in a text file called an mfile because it must be saved with a file extension of. In the field of fluid dynamics, a rankine half body is a feature of fluid flow discovered by.
Ideal rankine cycle gui in matlab download free open. This would not have been possible without the steam tables coded up by magnus holmgren. Prepare a matlab script file that will calculate and display the rankine ran, celsius cel, and kelvin kel equivalent temperature for. Abstract a matlab code has been developed based on refprop software for the design and analysis of organic rankine cycle orc systems. There could be other such situations for example, you can have let us say we have a. Sources and sinks, vortex, doublet, rankine half body, rankines oval, flow past load. This example also demonstates saving and loading input fields from a gui. A guide to matlab for chemical engineering problem solving che465 kinetics and reactor design i. After studying in the previous tutorial some of matlab capabilities to create 2d. Created with r2010a compatible with any release platform compatibility windows macos linux. Planar rankine halfbodies if we superimpose a planar source on a uniform stream we can create streamlines which can be replaced by a solid body so as to generate the potential. Matlab integrates computation, visualization, and programming in an easytouse environment, and allows easy matrix manipulation, plotting of functions and data, implementation of. We saw that the previous example defined a half body open at one end.
My vinfinity 1, my position b from the center of the source to the stagnation point 1, and the volume rate of flow, m 1. Plot streamlines from 2d or 3d vector data matlab streamline. Star strider on 6 may 2016 i have a sinusoidal sognal which decays exponentially in time. In this article we analyze the organic rankine cycle orc for the study of cogeneration, i. The body generated by the superposition of a uniform stream and a sourcesink pair is called a rankine body. The following matlab project contains the source code and matlab examples used for ideal rankine cycle gui. Many common variations with openclose feed water heaters and regeneration are in my file exchange. In the field of fluid dynamics, a rankine half body is a feature of fluid flow discovered by scottish physicist and engineer william rankine that is formed when a fluid source is added to a fluid undergoing potential flow. Requirements this is a crossplatform package implemented in plain r. Theoretical results are presented provides the basis of transient analysis of a power electronic circuits. Matlab tutorial mark austin department of civil and environmental engineering university of maryland at college park.
In addition to helping you get started with matlab, we want you to see how. Matlab tutorial eth zurich, department of biosystems science and engineering dbsse contents. Matlab roc curve my experience within matlab is rather limited, but i am simply trying to make a roc curve from a randomly generated set of test scores right now the range is between 50 and 100, but it can be anything really. How do i plot the streamlines and velocity potential flow. When i taught earlier versions of the course, it was based on matlab only. How do i create a contour plot in polar coordinates. Follow 68 views last 30 days abin krishnan on 6 may 2016. We will in particular use the example of circular pipe flow as a qualitative case of. Design of organic rankine cycles for conversion of waste. Introduction ower electronic circuit simulation is. An inspection of the streamlines suggests that by placing a sink in addition to the source one should be able to define a closed body. Organic rankine cycles provide an alternative to traditional steam rankine cycles for the conversion of low grade heat sources, where steam cycles are known to be less efficient and more expensive. General introduction there are two easy ways to tell if a variable is a scalar, vector or matrix.
Gives mass fraction at turbine outlet and efficiency of reheat regenerative rankine cycle. How can i plot rankine oval by using for statement. Superposition of uniform flow and source flow yields the rankine half body flow. It is in no way a complete reference and the reader is encouraged to further enhance his or her knowledge of matlab by reading some of the suggested references at the end of this guide. A smallscale orc system using a scroll expander was designed using this code, and the. A function accepts one or more matlab variables as inputs, operates on them in some way, and then. Rankine half body now, the stagnation streamline can be defined by evaluating. Sources and sinks, vortex, doublet, rankine half body, rankine s oval, flow past load waterline of a 174m barge. A simple example of this is the superposition of a source and a uniform stream. It was also used to study the performance of reciprocating steam engines. In 1859, a scottish engineer, william john macquorn rankine advanced the study of heat engines by publishing the manual of the steam engine and other prime movers. The matlab code presented below creates streamlines of the flow of a uniform stream over a half body.
It becomes a circular cylinder as the sourcesink pair approach each other. Diagram no diagram is needed for this problem solution clear clc fahrinputenter the value of temperature in fahrenheit. From the expression for the potential, it is obvous that. Matlab is available for many different computer systems, including macs, pcs and unix platforms. Computational fluid dynamics cfd provides a qualitative and sometimes even quantitative prediction of. Here is a summary of some basic flows used in potential flow calculations. The application is ideal for selfstudy and as a teaching supplement in undergraduate and graduate classes of fluid mechanics, software design and matlab programming. The problem statement, all variables and givenknown data. The main steam flow corresponds to the loop from cycle points 1 to 6. Pdf sources and sinks, vortex, doublet, rankine half body.
Understand the flow of an ideal fluid around a long cylinder. Rankine developed a complete theory of the steam engine and indeed of all heat engines. Tecplot file does not contain boundary information, and so the boundary information is genearted inside the program. This tutorial the purposes of this tutorial are twofold. Can we come up with a closed body by a suitable combination. It is not guaranteed it will work in any version preceding r2016a, and it will not work in any version preceding r2014 description. The extracted steam flow corresponds to the dashed line from cycle points 4 to 4b.
Example of carnot efficiency problem with solution. Use the given matlab code posted on the web and evaluate the following flow fields a. Ideal reheat regenerative rankine cycle file exchange. The rankine cycle is a model used to predict the performance of steam turbine systems. Problem statement 1 prepare a matlab program script file that will calculate and display the rankine ran, celsius cel, and kelvin kel equivalent temperature for a user entered fahrenheit fahr temperature. This matlab function draws streamlines from 3d vector data u, v, w. Find area under a decay curve if half life is increasing. And, matlab reservoir simulation tool box will do similar things. Planar potential flow of a source at the origin in a uniform stream showing streamlines and the rankine halfbody in red. Matlab matrix laboratory is a numerical computing environment and fourthgeneration programming language. In the present example if we ignore the streamlines inside the body we have described the flow about a solid body given by eqn. A practical example of this type of flow is a bridge pier or a strut placed in a uniform.
We choose a uniform stream of velocityu in thexdirection. The rankine cycle is an idealized thermodynamic cycle of a heat engine that converts heat into mechanical work while undergoing phase change. At these values we have y approaching, which is called the half width of the body. This figure shows an animation of the rankine cycle on a temperatureentropy diagram over time. This streamline can be seen as a solid body, the rankine halfbody, and. A potential flow is characterized by any flow where the velocity is irrotational. This program uses the spencer, cotton and cannon method to predict the partial load performance of rankine cycles, using as input data the predesign characteristics of the cycles components. It is an idealized cycle in which friction losses in each of the four components are neglected. First, we obtain the component of the velocity vector. Lifting line code in matlab dimanche 24 novembre 20. A matlab simulink based tool for power electronic circuits. The unit vector normal to surface of the sphere is n.
A solution to flow over arbitrary bodies can be obtained by distributing elementary. Ideal rankine cycle in matlab download free open source. The rankine cycle is sometimes referred to as a practical carnot cycle. A practical example of this type of flow is a bridge pier or a strut placed in a uniform stream. The purpose of this tutorial is to familiarize the beginner to matlab, by introducing the basic features and commands of the program.
Not an elegant code, but it may be useful to learn how to identify boundary nodes for a given grid, which is not really trivial. A grid for a rankines half body is used as an example. The following matlab project contains the source code and matlab examples used for ideal rankine cycle. Matlab guide to plot a half body potential flow after studying in. Matlab class, is less prioritized and should be considered a beta version. A graphical user interface to compute the thermodynamic properties of an ideal rankine cycle. Planar rankine half bodies if we superimpose a planar source on a uniform stream we can create streamlines which can be replaced by a solid body so as to generate the potential.
So, the source and uniform can be used to describe an aerodynamic body. Today, orc cycles are used as an alternative to the use of fossil fuels that affect the environment and health. Numerical simulation of an organic rankine cycle scilab. A rankine cycle with unit isentropic efficiency turbine and pump can be analysed quickly with the code.