Maths Scripts for Reserve Models

Source file: howto-how-to-apply-maths-script-on-reserve-model.htm

Solid models can be modified by performing mathematical operations on them using Evolution's Maths Script tool.

To create and apply a maths script on a block model:

  1. Right-click the model in the project explorer and select Add Maths Script.

  2. Evolution will create a script object in the project explorer under the block model. Double-click this object to open the script window in the viewer.
  3. Write a script.

    • View the existing properties of the model by typing solid followed by a full stop.

    • Modify the existing properties of the model by typing in the attribute name on the left, followed by an expression on the right.

      existingAttribute = solid.X + solid.Y

    • Create temporary attributes (that will not be written to the model and will only be used within the script) by wrapping the expression on the right-hand side inside a define function.

      tempAttribute = define(solid.X + solid.Y)

  4. Click Run formula.
  5. Check that the new variable has been calculated correctly by opening the block model in the viewer and checking its properties.

Example script

            

// Excavation costs based on material, and equipment

excavateCO = define(if(solid.MATERIAL="CO",solid.Tonnage_ad * 3.35,0))

excavateTS = define(if(solid.MTW_Bench<>"Bowfield" AND solid.MATERIAL<>"CO", solid.Volume*1.91 ,0))

excavateDL = define(if(solid.MTW_Bench="Bowfield" AND solid.MATERIAL<>"CO", solid.Volume*1.00 ,0))

excavate = define(excavateCO + excavateTS + excavateDL)