User Tools

Site Tools


tutorials:radiation-model-in-crop_model9

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
tutorials:radiation-model-in-crop_model9 [2025/11/01 12:01] – [Tasks for Exploration] barley1965tutorials:radiation-model-in-crop_model9 [2025/11/01 15:40] (current) barley1965
Line 115: Line 115:
 The model now makes fruit formation dependent on the availability of a threshold amount of sugar in the nearest leaf (L. 169-174): The model now makes fruit formation dependent on the availability of a threshold amount of sugar in the nearest leaf (L. 169-174):
 <code java> <code java>
-fl:Flower(t, m), (t >= m && t<m+2) ==>  +fl:Flower(t, m)(* <-minDescendants-Node-minDescendants->lf:Leaf *),(t >= m && t<m+2) ==> 
- {float sugar = first((* Leaf *)[as]);+ {float sugar = lf[as];
  println("sugar: " + sugar);  println("sugar: " + sugar);
  
- if(sugar>0.0005) ({noFrts++;} Fruit(0.01,1,0.1,noFrts))+ if(sugar>0) ({noFrts++;} Fruit(0.01,1,0.1,noFrts))
  else (fl);  else (fl);
 </code> </code>
 Note that a ''Flower'' that has not yet become a ''Fruit'', has two more chances to become one.   Note that a ''Flower'' that has not yet become a ''Fruit'', has two more chances to become one.  
-Availability of sugar is calculated by querying ''as'' of the nearest ''Leaf'' before deciding on fruit formation.+Availability of sugar is calculated by querying ''as'' of the nearest ''Leaf'' before deciding on fruit formation. This query uses two ''minDescendants'' edges, first down to the next lower Node module, then up to the attached Leaf.
  
 ===== Fruit Growth Competition ===== ===== Fruit Growth Competition =====
tutorials/radiation-model-in-crop_model9.1761994860.txt.gz · Last modified: 2025/11/01 12:01 by barley1965