ConstructDomains

ConstructDomains[{A,B,C},n,c]
constructs an A×B×C structure of n domains iterated c cycles.

ConstructDomains["SectorRegions",{A,B,C},{{p,w,φ}}]
constructs an A×B×C structure with a series of sector-shaped domains, each domain having p pairs of sectors with width w using a start angle φ.

Details and OptionsDetails and Options

  • First a list of coordinates is made based on the given size. From this an association is made mapping coordinates to a random integer (domain identifier). The procedure is then to loop through each block, count its neighbours and use a random number to decide whether to change identifier of this block (with probability given by "TransitionProbabilities"). If a transition is to take place, a random neighbour is copied to the block in question. Visitation of all blocks comprises one cycle.
  • Output is on the form where is a list of integers representing domain identifiers, being in an order where the first is associated with and the following with the increments of , then , then .
  • If the number of cycles are set to zero () the output will be a randomised structure.
  • Options:
  • "ReturnAllCycles"Falsereturn the state of all cycles passed
    "ShowProgess"Falsewhether to display a progress bar
    "TransitionProbabilities"<|0 0.95, 1 0.92, 2 0.86, 3 0.75, 4 0.4, 5 0.5, 6 0.75, 7 0.12, 8 0.03|>maps number of domains equal to self to transition probability