Code covered by the BSD License  

Highlights from
Grid Generation

image thumbnail

Grid Generation


Siva Srinivas Kolukula


To demonstrate grid generation using analytic coordinates systems.

function [x y] = ModifiedHorseshoe(Xi,Eta,R)

% R is aspect ratio of the major to minor axes of ellipse
% R >= 1

% Check the input arguments and set default values

if nargin == 2
    R = 3. ;

x = -(1+Eta)*cos(pi*Xi) ;
y = (1+(2*R-1)*Eta)*sin(pi*Xi) ;

Contact us