*morphkrigmanual

Set of commands to allow manual Kriging of the model.

Syntax

*morphkrigmanual mode

Type

HyperMesh Tcl Modify

Description

This command will do one of the following things depending on the selected mode:
  • 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 *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 *morphkrigmanual will clear the memory, but it is recommended to do so, if manual Kriging is initialized and not subsequently applied.

Inputs

mode
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

To initialize manual Kriging:

*morphkrigmanual 0

To apply manual Kriging:

*morphkrigmanual 1

To reject (undo) Kriging:

*morphkrigmanual 2

To clear the initialized manual Kriging state:

*morphkrigmanual 3

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

"Kriging not set to manual." - occurs if the Kriging parameter is not set to manual (1 uninitialized or 2 initialized). Use *morphupdateparameter Kriging 1 to set this parameter prior to manual Kriging.

"No nodes in model." - occurs during initialization if there are no nodes in the model.

"No nodes found." - occurs during applying if there are no initialized nodes.

Version History

10.0