Skip to content

Commit

Permalink
Smoothed airfoil, added explanatory text.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcroydon committed Feb 27, 2013
1 parent 3e0e945 commit 89c11d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions airfoil.js/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
layout: page
title: airfoil.js
---


<!-- <script type="text/javascript" src="./airfoil.js"> -->
<!-- http://jsfiddle.net/Q4Mfc/1/ -->
<script type="text/javascript">
Expand Down Expand Up @@ -35,15 +33,15 @@ $(document).ready(function() {
})
.y(function(d) {
return yScale(d["y"]);
});
})
.interpolate("basis");

d3.select("#airfoil")
.append("svg")
.attr("width", width)
.attr("height", height)
.attr("id", "airfoilsvg")
.append("g")
.attr("transform", "translate(5,5)")
.append("svg:path")
.datum(data.coordinates)
.attr("class", "line")
Expand All @@ -55,3 +53,5 @@ $(document).ready(function() {
});

</script>

An experiment in rendering an airfoil with [D3](http://d3js.org/) using [AirfoilJSON](/airfoiljson/). Airfoil converted by hand from the [UIUC Airfoil Coordinates Database](http://www.ae.illinois.edu/m-selig/ads/coord_database.html). You can view the [original data file](http://www.ae.illinois.edu/m-selig/ads/coord/naca2412.dat) or the [AirfoilJSON conversion](/airfoil.js/naca2412.json).

0 comments on commit 89c11d8

Please sign in to comment.