Last active
August 14, 2026 20:14
-
-
Save kenwebb/f0414dffb580f67d1f6f922f4f91f4fa to your computer and use it in GitHub Desktop.
Advective Transport
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Fri Aug 14 2026 16:13:47 GMT-0400 (Eastern Daylight Time)--> | |
| <XholonWorkbook> | |
| <Notes><![CDATA[ | |
| Xholon | |
| ------ | |
| Title: Advective Transport | |
| Description: | |
| Url: http://www.primordion.com/Xholon/gwt/ | |
| InternalName: f0414dffb580f67d1f6f922f4f91f4fa | |
| Keywords: | |
| My Notes | |
| -------- | |
| 20226 August 13 | |
| see my Leaky Bucket models for the process I have used in the past | |
| ### References | |
| (1) Walter A. Robinson, Modeling Dynamic Climate Systems | |
| 2.5 Advective Transport, p. 28-30 | |
| a very simple model | |
| (2) https://en.wikipedia.org/wiki/Advection | |
| ]]></Notes> | |
| <_-.XholonClass> | |
| <!-- domain objects --> | |
| <ClimateSystem/> | |
| <!-- quantities --> | |
| <Quan superClass="Quantity"> | |
| <Volume/> | |
| <Heat/> <!-- the quantity of heat in the volume of air --> | |
| </Quan> | |
| <!-- stocks --> | |
| <Air/> | |
| <!-- flows --> | |
| <Inflow/> | |
| <Outlow/> | |
| </_-.XholonClass> | |
| <xholonClassDetails> | |
| <Inflow> | |
| <port name="voaNext" connector="../Air"/> | |
| </Inflow> | |
| <Air> | |
| <!--<port name="voaNext" connector="./following-sibling::VolumeOfAir"/>--> <!-- should be the next node --> | |
| <port name="one" connector="./following-sibling::Air"/> | |
| </Air> | |
| <Avatar><Color>orange</Color></Avatar> | |
| </xholonClassDetails> | |
| <ClimateSystem> | |
| <Inflow/> | |
| <Air roleName="A">1 vunit | |
| <Volume>1 vunit</Volume> | |
| <Heat>0 hunit</Heat> <!-- what are the units ? --> | |
| </Air> | |
| <Air roleName="B">1 vunit | |
| <Volume>1 vunit</Volume> | |
| <Heat>0 hunit</Heat> | |
| </Air> | |
| <Air roleName="C">1 vunit | |
| <Volume>1 vunit</Volume> | |
| <Heat>0 hunit</Heat> | |
| </Air> | |
| <Air roleName="D">1 vunit | |
| <Volume>1 vunit</Volume> | |
| <Heat>0 hunit</Heat> | |
| </Air> | |
| <Air roleName="E">1 vunit | |
| <Volume>1 vunit</Volume> | |
| <Heat>0 hunit</Heat> | |
| </Air> | |
| <Outflow/> | |
| </ClimateSystem> | |
| <Airbehavior implName="org.primordion.xholon.base.Behavior_gwtjs"><![CDATA[ | |
| var me, beh = { | |
| postConfigure: function() { | |
| me = this.cnode.parent(); | |
| me.voaNext = me.next(); | |
| me.parent().parent().append(this.cnode.remove()); | |
| }, | |
| act: function() { | |
| me.println(me.name()); | |
| } | |
| } | |
| //# sourceURL=Airbehavior.js | |
| ]]></Airbehavior> | |
| <SvgClient><Attribute_String roleName="svgUri"><![CDATA[data:image/svg+xml, | |
| <svg width="100" height="50" xmlns="http://www.w3.org/2000/svg"> | |
| <g> | |
| <title>Block</title> | |
| <rect id="PhysicalSystem/Block" fill="#98FB98" height="50" width="50" x="25" y="0"/> | |
| <g> | |
| <title>Height</title> | |
| <rect id="PhysicalSystem/Block/Height" fill="#6AB06A" height="50" width="10" x="80" y="0"/> | |
| </g> | |
| </g> | |
| </svg> | |
| ]]></Attribute_String><Attribute_String roleName="setup">${MODELNAME_DEFAULT},${SVGURI_DEFAULT}</Attribute_String></SvgClient> | |
| </XholonWorkbook> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment