-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
74,588 additions
and
43 deletions.
There are no files selected for viewing
Binary file not shown.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PROJCS["NAD83 / Massachusetts Mainland",GEOGCS["NAD83",DATUM["North_American_Datum_1983",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6269"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4269"]],PROJECTION["Lambert_Conformal_Conic_2SP"],PARAMETER["standard_parallel_1",42.68333333333333],PARAMETER["standard_parallel_2",41.71666666666667],PARAMETER["latitude_of_origin",41],PARAMETER["central_meridian",-71.5],PARAMETER["false_easting",200000],PARAMETER["false_northing",750000],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],AUTHORITY["EPSG","26986"]] |
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
65,500 changes: 65,500 additions & 0 deletions
65,500
CPG_CityScope_GAMA/includes/volpe/mobility/boston_1_08_10_2017.csv
Large diffs are not rendered by default.
Oops, something went wrong.
8,940 changes: 8,940 additions & 0 deletions
8,940
CPG_CityScope_GAMA/includes/volpe/mobility/kendall_1_08_10_2017.csv
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PROJCS["NAD_1983_StatePlane_Massachusetts_Mainland_FIPS_2001_Feet",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",656166.6666666665],PARAMETER["False_Northing",2460625],PARAMETER["Central_Meridian",-71.5],PARAMETER["Standard_Parallel_1",41.71666666666667],PARAMETER["Standard_Parallel_2",42.68333333333333],PARAMETER["Latitude_Of_Origin",41],UNIT["Foot_US",0.30480060960121924]] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 108 additions & 0 deletions
108
CPG_CityScope_GAMA/models/CityScope_Kendall_energy.gaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
/** | ||
* Name: CityScope volpe - Energy Data Visualization | ||
* Author: Arnaud Grignard | ||
* Description: Visualization of Energy Data on Volpe Site | ||
*/ | ||
|
||
model CityScope_volpe | ||
|
||
|
||
|
||
global { | ||
// GIS FILE // | ||
file bound_shapefile <- file("../includes/volpe/Bounds.shp"); | ||
file roads_shapefile <- file("../includes/volpe/Roads.shp"); | ||
file buildings_shapefile <- file("../includes/energy/volpe.shp"); | ||
file imageRaster <- file('../includes/images/gama_black.png') ; | ||
geometry shape <- envelope(buildings_shapefile); | ||
float angle <--9.74; | ||
graph<geometry, geometry> smart_grid_graph; | ||
|
||
init { | ||
create road from:roads_shapefile; | ||
create building from:buildings_shapefile with:[energy:: int(read('Kwh/m2'))]{ | ||
color<-rgb(255 - (255 * ((4000-energy)/4000 )),255 * ((4000-energy)/4000 ),0); | ||
} | ||
create people number:500{ | ||
location<-any_location_in(one_of(building)); | ||
} | ||
} | ||
|
||
|
||
reflex updateGraph when:time=100{ | ||
ask powerSupply{ | ||
do die; | ||
} | ||
ask building{ | ||
|
||
create powerSupply{ | ||
location<-myself.location; | ||
color<-myself.color; | ||
energy<-myself.energy; | ||
} | ||
|
||
smart_grid_graph <- as_distance_graph(powerSupply, 100); | ||
|
||
} | ||
} | ||
|
||
} | ||
|
||
species building{ | ||
int energy; | ||
rgb color; | ||
aspect base { | ||
draw shape color: color depth:(time>100) ? energy/4000*100 :(time/100)*energy/4000*100; | ||
} | ||
} | ||
|
||
species road schedules: []{ | ||
rgb color <- #red ; | ||
aspect base { | ||
draw shape color: rgb(125,125,125,75) ; | ||
} | ||
} | ||
|
||
species powerSupply{ | ||
rgb color; | ||
int energy; | ||
aspect base{ | ||
if(time>100){ | ||
draw sphere(10 +abs(cos(time)*energy/250)) color:color; | ||
} | ||
|
||
} | ||
} | ||
|
||
species people skills:[moving]{ | ||
reflex move { | ||
do wander; | ||
} | ||
aspect base{ | ||
draw circle(5) color:#black; | ||
} | ||
} | ||
|
||
experiment CityScopeEnergy type: gui { | ||
output { | ||
display CityScope type:opengl background:#white { | ||
species people aspect:base; | ||
species road aspect: base refresh:false; | ||
species building aspect:base; | ||
species powerSupply aspect:base position:{0,0,0.25}; | ||
graphics "the graph" position:{0,0,0.25}{ | ||
if(time>100){ | ||
loop edge over: smart_grid_graph.edges { | ||
draw edge color: #green; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
# CPG_CityScope_Volpe | ||
Agent based model of the Kendal CityScope using GAMA Platform | ||
Agent based model of the Kendal CityScope using GAMA Platform - Devel | ||
|
||
## CPG_CityScope_Volpe_GAMA | ||
## CPG_CityScope_GAMA | ||
This is the first version of the actual ABM model running on the | ||
CityScope table using the GAMA Platform. This version is the one | ||
running on the physical table at the lab and synchronized with CityIOServer | ||
running on the physical table at the lab and synchronized with CityIOServer. | ||
|
||
## Software used | ||
http://gama-platform.org/ | ||
|
||
Developped by [Arnaud Grignard](https://github.com/agrignard) | ||
|
||
|