OpenCMISS-Iron Python Bindings API Documentation
iron.FieldMLIO Class Reference
Inheritance diagram for iron.FieldMLIO:
Collaboration diagram for iron.FieldMLIO:

Public Member Functions

def __init__ (self)
 
def Finalise (self)
 
def GetSession (self)
 
def InputBasisCreateStartNum (self, evaluatorName, userNumber)
 
def InputBasisCreateStart (self, evaluatorName, userNumber, basis)
 
def InputCoordinateSystemCreateStartNum (self, evaluatorName, userNumber)
 
def InputCoordinateSystemCreateStart (self, evaluatorName, coordinateSystem, userNumber)
 
def InputCreateFromFile (self, filename)
 
def InputCreateMeshComponentNum (self, regionNumber, meshNumber, componentNumber, evaluatorName)
 
def InputCreateMeshComponent (self, mesh, componentNumber, evaluatorName)
 
def InputFieldCreateStartNum (self, regionNumber, meshNumber, decompositionNumber, fieldNumber, variableType, evaluatorName)
 
def InputFieldCreateStart (self, region, decomposition, fieldNumber, field, variableType, evaluatorName)
 
def InputFieldParametersUpdateNum (self, regionNumber, fieldNumber, evaluatorName, variableType, setType)
 
def InputFieldParametersUpdate (self, field, evaluatorName, variableType, setType)
 
def InputMeshCreateStartNum (self, meshArgumentName, meshNumber, regionNumber)
 
def InputMeshCreateStart (self, meshArgumentName, mesh, meshNumber, region)
 
def InputNodesCreateStartNum (self, nodesArgumentName, regionNumber, nodes)
 
def InputNodesCreateStart (self, nodesArgumentName, region, nodes)
 
def OutputAddFieldComponentsNum (self, typeHandle, baseName, dofFormat, regionNumber, fieldNumber, fieldComponentNumbers, variableType, setType)
 
def OutputAddFieldComponents (self, typeHandle, baseName, dofFormat, field, fieldComponentNumbers, variableType, setType)
 
def OutputAddFieldNoTypeNum (self, baseName, dofFormat, regionNumber, fieldNumber, variableType, setType)
 
def OutputAddFieldNoType (self, baseName, dofFormat, field, variableType, setType)
 
def OutputAddFieldWithTypeNum (self, baseName, dofFormat, regionNumber, fieldNumber, variableType, setType, typeHandle)
 
def OutputAddFieldWithType (self, baseName, dofFormat, field, variableType, setType, typeHandle)
 
def OutputAddImport (self, name)
 
def OutputCreateNum (self, regionNumber, meshNumber, location, baseName, connectivityFormat)
 
def OutputCreate (self, mesh, location, baseName, connectivityFormat)
 
def OutputWrite (self, filename)
 

Public Attributes

 cmiss_type
 

Detailed Description

Provides input and output of fields through the FieldML API

Definition at line 3114 of file iron.py.

Constructor & Destructor Documentation

def iron.FieldMLIO.__init__ (   self)
Initialise a null cmfe_FieldMLIOType

Definition at line 3118 of file iron.py.

Member Function Documentation

def iron.FieldMLIO.Finalise (   self)
Finalises a Fieldml context.

:rtype: None

Definition at line 3123 of file iron.py.

def iron.FieldMLIO.GetSession (   self)
Get the session handle from a Fieldml context.

:returns: sessionHandle. The session handle.
:rtype: int

Definition at line 3132 of file iron.py.

def iron.FieldMLIO.InputBasisCreateStart (   self,
  evaluatorName,
  userNumber,
  basis 
)
Create a basis using the given FieldML evaluator.

:param evaluatorName: The name of the argument evaluator to create the basis from.
:type evaluatorName: string
:param userNumber: The user number to assign to the new basis.
:type userNumber: int
:param basis: On return, the newly created basis.
:type basis: Basis
:rtype: None

Definition at line 3155 of file iron.py.

def iron.FieldMLIO.InputBasisCreateStartNum (   self,
  evaluatorName,
  userNumber 
)
Create a basis using the given FieldML evaluator.

:param evaluatorName: The name of the argument evaluator to create the basis from.
:type evaluatorName: string
:param userNumber: The user number to assign to the new basis.
:type userNumber: int
:rtype: None

Definition at line 3142 of file iron.py.

def iron.FieldMLIO.InputCoordinateSystemCreateStart (   self,
  evaluatorName,
  coordinateSystem,
  userNumber 
)
Create a coordinate system using the given FieldML evaluator.

:param evaluatorName: The name of the argument evaluator to create the coordinate system from.
:type evaluatorName: string
:param coordinateSystem: On return, the newly created coordinate system.
:type coordinateSystem: CoordinateSystem
:param userNumber: The user number to assign to the new coordinate system.
:type userNumber: int
:rtype: None

Definition at line 3183 of file iron.py.

def iron.FieldMLIO.InputCoordinateSystemCreateStartNum (   self,
  evaluatorName,
  userNumber 
)
Create a coordinate system using the given FieldML evaluator.

:param evaluatorName: The name of the argument evaluator to create the coordinate system from.
:type evaluatorName: string
:param userNumber: The user number to assign to the new coordinate system.
:type userNumber: int
:rtype: None

Definition at line 3170 of file iron.py.

def iron.FieldMLIO.InputCreateFromFile (   self,
  filename 
)
Initialise the given FieldML context using the given FieldML XML file.

:param filename: The FieldML XML file to parse.
:type filename: string
:rtype: None

Definition at line 3198 of file iron.py.

def iron.FieldMLIO.InputCreateMeshComponent (   self,
  mesh,
  componentNumber,
  evaluatorName 
)
Use the given FieldML evaluator as a template to create a component on the given mesh.

:param mesh: The mesh for which to create the mesh component.
:type mesh: Mesh
:param componentNumber: The number of the mesh component to create.
:type componentNumber: int
:param evaluatorName: The name of the argument evaluator to create the mesh from.
:type evaluatorName: string
:rtype: None

Definition at line 3226 of file iron.py.

def iron.FieldMLIO.InputCreateMeshComponentNum (   self,
  regionNumber,
  meshNumber,
  componentNumber,
  evaluatorName 
)
Use the given FieldML evaluator as a template to create a component on the mesh identified by the given user number.

:param regionNumber: The user number of the region in which the mesh component is to be created.
:type regionNumber: int
:param meshNumber: The user number of the mesh for which the mesh component is to be created.
:type meshNumber: int
:param componentNumber: The number of the mesh component to create.
:type componentNumber: int
:param evaluatorName: The name of the argument evaluator to create the basis from.
:type evaluatorName: string
:rtype: None

Definition at line 3209 of file iron.py.

def iron.FieldMLIO.InputFieldCreateStart (   self,
  region,
  decomposition,
  fieldNumber,
  field,
  variableType,
  evaluatorName 
)
Create a field using the given FieldML evaluator.

:param region: The region in which the field is to be created.
:type region: Region
:param decomposition: The decomposition to use when creating the field.
:type decomposition: Decomposition
:param fieldNumber: The user number to assign to the new field.
:type fieldNumber: int
:param field: On return, the newly created field.
:type field: Field
:param variableType: The OpenCMISS variable type.
:type variableType: int
:param evaluatorName: The name of the argument evaluator to create the field from.
:type evaluatorName: string
:rtype: None

Definition at line 3262 of file iron.py.

def iron.FieldMLIO.InputFieldCreateStartNum (   self,
  regionNumber,
  meshNumber,
  decompositionNumber,
  fieldNumber,
  variableType,
  evaluatorName 
)
Create a field with the given user number using the given FieldML evaluator.

:param regionNumber: The user number of the region in which to create the field.
:type regionNumber: int
:param meshNumber: The user number of the mesh to use when creating the field.
:type meshNumber: int
:param decompositionNumber: The user number of the decomposition to use when creating the field.
:type decompositionNumber: int
:param fieldNumber: The user number to assign to the new field.
:type fieldNumber: int
:param variableType: The OpenCMISS variable type.
:type variableType: int
:param evaluatorName: The name of the argument evaluator to create the field from.
:type evaluatorName: string
:rtype: None

Definition at line 3241 of file iron.py.

def iron.FieldMLIO.InputFieldParametersUpdate (   self,
  field,
  evaluatorName,
  variableType,
  setType 
)
Update the DOF parameters of the given field, using the given FieldML evaluator.

:param field: On return, the field object.
:type field: Field
:param evaluatorName: The name of the argument evaluator to get the parameters from.
:type evaluatorName: string
:param variableType: The OpenCMISS variable type.
:type variableType: int
:param setType: The parameter set type.
:type setType: int
:rtype: None

Definition at line 3302 of file iron.py.

def iron.FieldMLIO.InputFieldParametersUpdateNum (   self,
  regionNumber,
  fieldNumber,
  evaluatorName,
  variableType,
  setType 
)
Update the DOF parameters of field with the given user number, using the given FieldML evaluator.

:param regionNumber: The user number of the region of the field for which parameters are to be updated.
:type regionNumber: int
:param fieldNumber: The user number of the field for which parameters are to be updated.
:type fieldNumber: int
:param evaluatorName: The name of the argument evaluator to get the parameters from.
:type evaluatorName: string
:param variableType: The OpenCMISS variable type.
:type variableType: int
:param setType: The parameter set type.
:type setType: int
:rtype: None

Definition at line 3283 of file iron.py.

def iron.FieldMLIO.InputMeshCreateStart (   self,
  meshArgumentName,
  mesh,
  meshNumber,
  region 
)
Creates a mesh using the given FieldML evaluator.

:param meshArgumentName: The name of the argument evaluator to create a mesh from.
:type meshArgumentName: string
:param mesh: On return, the newly created mesh.
:type mesh: Mesh
:param meshNumber: The user number to assign to the new mesh.
:type meshNumber: int
:param region: The region in which to create the mesh.
:type region: Region
:rtype: None

Definition at line 3334 of file iron.py.

def iron.FieldMLIO.InputMeshCreateStartNum (   self,
  meshArgumentName,
  meshNumber,
  regionNumber 
)
Creates a mesh with the given user number using the given FieldML evaluator.

:param meshArgumentName: The name of the mesh argument evaluator to create a mesh from.
:type meshArgumentName: string
:param meshNumber: The user number to assign to the new mesh.
:type meshNumber: int
:param regionNumber: The user number of the region in which to create the mesh.
:type regionNumber: int
:rtype: None

Definition at line 3319 of file iron.py.

def iron.FieldMLIO.InputNodesCreateStart (   self,
  nodesArgumentName,
  region,
  nodes 
)
Creates a region's nodes using the given FieldML evaluator.

:param nodesArgumentName: The name of the argument evaluator to create the basis from.
:type nodesArgumentName: string
:param region: The user number of the region to create to the nodes in.
:type region: Region
:param nodes: On return, the newly created nodes.
:type nodes: Nodes
:rtype: None

Definition at line 3366 of file iron.py.

def iron.FieldMLIO.InputNodesCreateStartNum (   self,
  nodesArgumentName,
  regionNumber,
  nodes 
)
Creates a region's nodes using the given FieldML evaluator.

:param nodesArgumentName: The name of the argument evaluator to create the nodes from.
:type nodesArgumentName: string
:param regionNumber: The user number of the region to create to the nodes in.
:type regionNumber: int
:param nodes: On return, the newly created nodes.
:type nodes: Nodes
:rtype: None

Definition at line 3351 of file iron.py.

def iron.FieldMLIO.OutputAddFieldComponents (   self,
  typeHandle,
  baseName,
  dofFormat,
  field,
  fieldComponentNumbers,
  variableType,
  setType 
)
Add the given field to the current FieldML context, only including the given components.

:param typeHandle: The FieldML type to assign to the new FieldML field.
:type typeHandle: int
:param baseName: The prefix to use when naming automatically created FieldML objects in the context.
:type baseName: string
:param dofFormat: The name of the format to use when writing dof data.
:type dofFormat: string
:param field: The field whose components are to be added.
:type field: Field
:param fieldComponentNumbers:
:type fieldComponentNumbers: Array of ints
:param variableType: The variable type of the field to add to the FieldML context.
:type variableType: int
:param setType: The parameter set type.
:type setType: int
:rtype: None

Definition at line 3406 of file iron.py.

def iron.FieldMLIO.OutputAddFieldComponentsNum (   self,
  typeHandle,
  baseName,
  dofFormat,
  regionNumber,
  fieldNumber,
  fieldComponentNumbers,
  variableType,
  setType 
)
Add the field with the given user number to the current FieldML context, only including the given components.

:param typeHandle: The FieldML type to assign to the new FieldML field.
:type typeHandle: int
:param baseName: The prefix to use when naming automatically created FieldML objects in the context.
:type baseName: string
:param dofFormat: The name of the format to use when writing dof data.
:type dofFormat: string
:param regionNumber: The user number of the region owning the field to add.
:type regionNumber: int
:param fieldNumber: The user number of the field whose components are to be added.
:type fieldNumber: int
:param fieldComponentNumbers: The component numbers to add.
:type fieldComponentNumbers: Array of ints
:param variableType: The variable type of the field to add to the FieldML context.
:type variableType: int
:param setType: The parameter set type.
:type setType: int
:rtype: None

Definition at line 3381 of file iron.py.

def iron.FieldMLIO.OutputAddFieldNoType (   self,
  baseName,
  dofFormat,
  field,
  variableType,
  setType 
)
Add the given field to the given FieldML context. The FieldML type will be inferred.

:param baseName: The prefix to use when naming automatically created FieldML objects in the context.
:type baseName: string
:param dofFormat: The name of the format to use when writing dof data.
:type dofFormat: string
:param field: The field to add.
:type field: Field
:param variableType: The variable type of the field to add.
:type variableType: int
:param setType: The parameter set type.
:type setType: int
:rtype: None

Definition at line 3450 of file iron.py.

def iron.FieldMLIO.OutputAddFieldNoTypeNum (   self,
  baseName,
  dofFormat,
  regionNumber,
  fieldNumber,
  variableType,
  setType 
)
Add the field with the given user number to the given FieldML context. The FieldML type will be inferred.

:param baseName: The prefix to use when naming automatically created FieldML objects in the context.
:type baseName: string
:param dofFormat: The name of the format to use when writing dof data.
:type dofFormat: string
:param regionNumber: The user number of the region containing the field to add to the FieldML context.
:type regionNumber: int
:param fieldNumber: The user number of the field to add to the FieldML context.
:type fieldNumber: int
:param variableType: The variable type of the field to add to the FieldML context.
:type variableType: int
:param setType: The parameter set type.
:type setType: int
:rtype: None

Definition at line 3429 of file iron.py.

def iron.FieldMLIO.OutputAddFieldWithType (   self,
  baseName,
  dofFormat,
  field,
  variableType,
  setType,
  typeHandle 
)
Add the given field to the given FieldML context, using the given FieldML type.

:param baseName: The prefix to use when naming automatically created FieldML objects in the context.
:type baseName: string
:param dofFormat: The name of the format to use when writing dof data.
:type dofFormat: string
:param field: The field to add to the FieldML context.
:type field: Field
:param variableType: The variable type of the field to add to the FieldML context.
:type variableType: int
:param setType: The parameter set type.
:type setType: int
:param typeHandle: The FieldML type to assign to the new FieldML field.
:type typeHandle: int
:rtype: None

Definition at line 3492 of file iron.py.

def iron.FieldMLIO.OutputAddFieldWithTypeNum (   self,
  baseName,
  dofFormat,
  regionNumber,
  fieldNumber,
  variableType,
  setType,
  typeHandle 
)
Add the given field to the given FieldML context, using the given FieldML type.

:param baseName: The prefix to use when naming automatically created FieldML objects in the context.
:type baseName: string
:param dofFormat: The name of the format to use when writing dof data.
:type dofFormat: string
:param regionNumber: The user number of the region owning the field to add.
:type regionNumber: int
:param fieldNumber: The user number of the field to add.
:type fieldNumber: int
:param variableType: The variable type of the field to add to the FieldML context.
:type variableType: int
:param setType: The parameter set type.
:type setType: int
:param typeHandle: The FieldML type to assign to the new FieldML field.
:type typeHandle: int
:rtype: None

Definition at line 3469 of file iron.py.

def iron.FieldMLIO.OutputAddImport (   self,
  name 
)
Import a FieldML object from the library into the current session.

:param name: The name of the object to import.
:type name: string
:returns: handle. A handle to the newly imported FieldML object.
:rtype: int

Definition at line 3513 of file iron.py.

def iron.FieldMLIO.OutputCreate (   self,
  mesh,
  location,
  baseName,
  connectivityFormat 
)
Initialise the given FieldML context using the given mesh.

:param mesh: The mesh to use when initialising the FieldML context.
:type mesh: Mesh
:param location: The root directory in which associated data files should be created.
:type location: string
:param baseName: The prefix to use when naming automatically created FieldML objects in the context.
:type baseName: string
:param connectivityFormat: The name of the format to use when writing connectivity data.
:type connectivityFormat: string
:rtype: None

Definition at line 3544 of file iron.py.

def iron.FieldMLIO.OutputCreateNum (   self,
  regionNumber,
  meshNumber,
  location,
  baseName,
  connectivityFormat 
)
Initialise the given FieldML context using the mesh with the given user number.

:param regionNumber: The user number of the region owning the mesh to use when initialising the FieldML context.
:type regionNumber: int
:param meshNumber: The user number of the mesh to use when initialising the FieldML context.
:type meshNumber: int
:param location: The root directory in which associated data files should be created.
:type location: string
:param baseName: The prefix to use when naming automatically created FieldML objects in the context.
:type baseName: string
:param connectivityFormat: The name of the format to use when writing connectivity data.
:type connectivityFormat: string
:rtype: None

Definition at line 3525 of file iron.py.

def iron.FieldMLIO.OutputWrite (   self,
  filename 
)
Write the FieldML document managed by the given context to a file with the given name.

:param filename: The name of the file to write the FieldML document to.
:type filename: string
:rtype: None

Definition at line 3561 of file iron.py.

Member Data Documentation

iron.FieldMLIO.cmiss_type

Definition at line 3121 of file iron.py.