Model.morphkrigmanual#

Model.morphkrigmanual(mode)#

Executes one of the following actions depending on the mode chosen:

  • Initialize the mesh for manual Kriging

  • Apply the current handle perturbations to the nodes in the Kriging domains (local domains, global domains, and/or morph volumes - see Model.morphupdateparameter() krigtype)

  • Reject the manual Kriging previously applied

  • Clear the current initialized manual Kriging state.

Initializing must be done before apply can be used. Applying will take the difference between the current handle locations and those when the manual Kriging was initialized when calculating the Kriging result. Reject will return the mesh to the pre-applied state and will only Kork after Kriging has been applied. Reject will allow you to continue Kriging from the initialized state. Clearing is not necessary as subsequent calls to Model.morphkrigmanual() will clear the memory, but it is recommended to do so, if manual Kriging is initialized and not subsequently applied.

Parameters:

mode (int) –

0 - Initialize mesh for manual Kriging

1 - Apply Kriging to current handle perturbations

2 - Reject the applied Kriging and allow continued manual Kriging

3 - Clear the initialized state from memory

Examples#

Initialize manual Kriging#
import hm
import hm.entities as ent

model = hm.Model()

model.morphkrigmanual(mode=0)
Apply manual Kriging#
import hm
import hm.entities as ent

model = hm.Model()

model.morphkrigmanual(mode=1)
Reject (undo) krige#
import hm
import hm.entities as ent

model = hm.Model()

model.morphkrigmanual(mode=2)
Clear the initialized manual Kriging state#
import hm
import hm.entities as ent

model = hm.Model()

model.morphkrigmanual(mode=3)