
I would like to add elevation to the model environment (conceptual environment) like below and calculate provide gradient attribute as a patch property. Do you have any suggestions or related model to implement this environment?Thanks,
Woi--<KakaoTalk_20210421_123945021.jpg>
You received this message because you are subscribed to the Google Groups "netlogo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/aa1332ae-46cd-44d4-94cb-607a1a0917b5n%40googlegroups.com.
<KakaoTalk_20210421_123945021.jpg>
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/4f375641-e9ee-449f-8f70-308abed1f8ean%40googlegroups.com.
On Apr 21, 2021, at 5:35 PM, Brad Reisfeld <brad.r...@gmail.com> wrote:
I once created a flood model that used a number of stylized elevation maps that used analytical functions to describe the terrain. For these simple topographies, the slope or gradient could be calculated analytically as a function of the coordinates. I had each patch 'own' its elevation and slope, which became important in specifying the severity of the flood at any given grid location.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/26f3946f-ca21-2d8c-701b-5b948d865392%40gmail.com.
Hi,
Lots of great suggestions have already been made.
Here is one new idea:
I know Woi is talking about conceptual environments, but it might be worth looking at some of the capabilities of the GIS extension.
In particular the NetLogo Models Library (reachable through the File menu in NetLogo) contains the GIS Gradient Example.
The model uses gis:convolve to compute horizontal and vertical gradients based on an elevation data file.
Here is some more info on the view2.5d extension which Wade mentioned:
I think it is a natural choice for representing a turtle or patch-value as a third dimension.
The NetLogo Models Library contains the 2.5d Patch View Example in which the patch color is used to model elevation, and the turtles move to larger color values, reaching the top of the hills. It uses the uphill primitive.
Note that you can use any patches-own variable, which could be using an anonymous function. You might get some ideas from
2.5d Turtle View Example which is a simple model (which I wrote) that shows how to use many of the features of view2.5d.
Here is the line that assigns the z coordinate to be the turtles-own variable height.
view2.5d:turtle-view window-name turtles [ the-turtle -> [height] of the-turtle ]
Note that in this model the height is recomputed every tick. You would probably want to use a patch view and not change the elevation value.
Aaron
--
Aaron Brandes, Software Developer
Center for Connected Learning and Computer-Based Modeling
To view this discussion on the web visit
https://groups.google.com/d/msgid/netlogo-users/dc27c092-f3d5-4f57-8c9e-72caa3032954n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/501eb7f2-fd99-4597-ad5c-d19bd50f4244n%40googlegroups.com.