MoveMeshVol()

Move a volume mesh set to a new model entity.

Usage

MoveMeshVol( mesh, model, new=False, meshList = None )

Parameters

mesh (string)
The volume mesh set.
model (string)
The name of the model entity.
new (boolean)
Flag specifies whether to create a new mesh set or use the old one.
meshList (list)
The mesh volumes list.

Return Value

None

Errors

  • The mesh and model must not be None.
  • If new = 'False' then the mesh must already exist.

Description

This routine moves a volume mesh set to a new model entity. If new is False, it only works on a mesh set that is already in the volume model entities and only moves the mesh from one model to another one. If new is True, then you have a new mesh, hence it does not move but creates a new set for a volume model. For example,
meshVol = ROOT + RS + "Mesh" + RS + "Volumes"
meshChild = GetChildren( meshVol )
MoveMeshVol( mesh = meshChild, model = "Fluid",
             new = True, meshList = meshChild )