ePrivacy and GPDR Cookie Consent by Cookie Consent

Yorick for Mac OS X

Yorick.sf.net in Education / Mathematics

Yorick for Mac OS X screenshot

User Rating: 2.6 (31 votes)

What is Yorick?

Yorick is an interpreted programming language for scientific simulations or calculations, postprocessing or steering large simulation codes, interactive scientific graphics, and reading, writing, or translating large files of numbers. Yorick includes an interactive graphics package, and a binary file package capable of translating to and from the raw numeric formats of all modern computers. Yorick is written in ANSI C and runs on most operating systems (*nix systems, Windows, MacOS).

Yorick Examples

Drumhead motion

The movie to the right shows the motion of a circular drumhead. The drumhead started with a bump in about the same location you see; it has fallen, split in half, run around to the opposite side of the drum, reflected, and returned to near its initial position at the time of this frame. The computational mesh is visible; it divides the circle into a 30x30 grid. This is one of three different kinds of movies of the same calculation, which you can study in the yorick source file demo2.i. Although yorick-1.5 has only 2D graphics, there are several packages that use interpreted code to do the geometry and lighting calculations to produce pictures like this one. However, this one was made using the pl3d function in demo2.i, rather than a general purpose routine like plwf. Yorick is fast enough that this movie, including both the wave solver (mostly the laplacian function in demo2.i) and the lighting and projection calculations, runs at about 20 frames per second on a 266 MHz Pentium II.

Flow past an airfoil

The Jakowski transform z --> z+a2/z maps a circle of radius a in the complex z-plane into a slot of length 4a. Slightly larger circles map to an airfoil shape you see in the picture to the right. Creating this picture required about 60 lines of yorick code, which you can study in the source file demo4.i. There, the get_mesh function creates a 120x30 mesh of complex numbers, uniformly distributed in radius and angle around the outside of a circle. The solve function distorts this uniform mesh into the shape you see by means of two Jakowski transformations, performed by the one-line jakowski function. At the same time, solve keeps track of the velocity potential, and finally computes the pressure field from Bernoulli's law and the velocity field. Finally, the display function uses yorick's plotting functions to draw the background shading (using plf) -- light where the pressure is high, and dark where the pressure is low -- contours of the imaginary part of the velocity potential (using plc) -- the flow lines -- and the outline of the airfoil itself (using plg).

top download editor's pick
File Size: 2.60 MB License: Open Source Price: FREE
Platform: Mac OS X
Downloads: Total: 160 | This Month: 0 Released: 2015-05-19
Yorick for Mac OS X Similar Software
Popular Software in Education / Mathematics

Math Resource Studio 4.4.2 Schoolhouse Technologies Inc.    

A powerful, easy-to-use math worksheet generation program.. Free download of Math Resource Studio 4.4.2

MacAnova 5.05.3 Gary W. Oehlert and Christopher Bingham    

A Program for Statistical Analysis and Matrix Algebra. Free download of MacAnova 5.05.3

software pick   

Yacas 1.6.1 Ayal Zwi Pinkus    

YACAS is an easy to use, general purpose Computer Algebra System. Free download of Yacas 1.6.1

software pick   


Calculate the percentage of any number out of any number.Great little tool.. Free download of PERCENT CE 2.1

SimplexNumerica Dipl.-Phys.-Ing. Ralf Wirtz    

Best data analyzer, 2D/3D-plotting, calc and presentation program.. Free download of SimplexNumerica