Package esys :: Package dudley :: Module dudleycpp :: Class MeshAdapter
[hide private]
[frames] | no frames]

Class MeshAdapter

                 object --+            
                          |            
                ??.instance --+        
                              |        
      escript.escriptcpp.Domain --+    
                                  |    
escript.escriptcpp.ContinuousDomain --+
                                      |
                                     MeshAdapter

A concrete class representing a domain. For more details, please consult the c++ documentation.
Instance Methods [hide private]
 
MPIBarrier(...)
Wait until all processes have reached this point
 
__init__(...)
__init__( (object)arg1 [, (object)arg2]) -> None
 
addPDEToLumpedSystem(...)
adds a PDE onto the lumped stiffness matrix
 
addPDEToRHS(...)
adds a PDE onto the stiffness matrix mat and a rhs
 
addPDEToSystem(...)
adds a PDE onto the stiffness matrix mat and a rhs
 
addPDEToTransportProblem(...)
 
dump(...)
dumps the mesh to a file with the given name.
tuple
getDataShape(...)
Returns: a pair (dps, ns) where dps=the number of data points per sample, and ns=the number of samples
string
getDescription(...)
Returns: a description for this domain
int
getDim(...)
Returns: Spatial dimension of the Domain
int
getMPIRank(...)
Returns: the rank of this process
int
getMPISize(...)
Returns: the number of processes used for this Domain
Data
getNormal(...)
Returns: boundary normals at the quadrature point on the face elements
int
getNumDataPointsGlobal(...)
Returns: the number of data points summed across all MPI processes
Data
getSize(...)
Returns: the element size
int
getSystemMatrixTypeId(...)
Returns: the identifier of the matrix type to be used for the global stiffness matrix when a particular solver, package, perconditioner, and symmetric matrix is used.
string
getTag(...)
Returns: tag id for name
int
getTransportTypeId(...)
Returns: the identifier of the transport problem type to be used when a particular solver, perconditioner, package and symmetric matrix is used.
Data
getX(...)
Returns: locations in the FEM nodes
bool
isValidTagName(...)
Returns: True is name corresponds to a tag
 
newOperator(...)
creates a SystemMatrixAdapter stiffness matrix and initializes it with zeros
 
newTransportProblem(...)
creates a TransportProblemAdapter
bool
onMasterProcessor(...)
Returns: True if this code is executing on the master process
 
print_mesh_info(...)
 
saveDX(...)
Saves a dictonary of Data objects to an OpenDX input file.
 
saveVTK(...)
Saves a dictonary of Data objects to an VTK XML input file.
 
setTagMap(...)
Give a tag number a name.
 
setX(...)
assigns new location to the domain
string
showTagNames(...)
Returns: A space separated list of tag names
 
write(...)
Write the current mesh to a file with the given name.

Inherited from escript.escriptcpp.Domain: __eq__, __ne__, __reduce__, getStatus, supportsContactElements

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __instance_size__ = 200
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

MPIBarrier(...)

 
MPIBarrier( (MeshAdapter)arg1) -> None :
Wait until all processes have reached this point
Overrides: escript.escriptcpp.Domain.MPIBarrier

__init__(...)
(Constructor)

 

__init__( (object)arg1 [, (object)arg2]) -> None

__init__( (object)arg1, (MeshAdapter)arg2) -> None

Overrides: object.__init__

addPDEToLumpedSystem(...)

 
addPDEToLumpedSystem( (MeshAdapter)arg1, (Data)arg2, (Data)arg3, (Data)mat, (Data)D, (bool)d) -> None :
adds a PDE onto the lumped stiffness matrix
Parameters:

addPDEToRHS(...)

 
addPDEToRHS( (MeshAdapter)arg1, (Data)arg2, (Data)rhs, (Data)X, (Data)Y, (Data)y, (Data)y_contact) -> None :
adds a PDE onto the stiffness matrix mat and a rhs
Parameters:
Overrides: escript.escriptcpp.ContinuousDomain.addPDEToRHS

addPDEToSystem(...)

 
addPDEToSystem( (MeshAdapter)arg1, (Operator)arg2, (Data)arg3, (Data)mat, (Data)rhs, (Data)A, (Data)B, (Data)C, (Data)D, (Data)X, (Data)Y, (Data)d, (Data)y, (Data)d_contact, (Data)y_contact) -> None :
adds a PDE onto the stiffness matrix mat and a rhs
Parameters:
Overrides: escript.escriptcpp.ContinuousDomain.addPDEToSystem

addPDEToTransportProblem(...)

 
addPDEToTransportProblem( (MeshAdapter)arg1, (TransportProblem)arg2, (Data)arg3, (Data)tp, (Data)source, (Data)M, (Data)A, (Data)B, (Data)C, (Data)D, (Data)X, (Data)Y, (Data)d, (Data)y, (Data)d_contact, (Data)y_contact) -> None :
Parameters:
Overrides: escript.escriptcpp.ContinuousDomain.addPDEToTransportProblem

dump(...)

 
dump( (MeshAdapter)arg1, (str)fileName) -> None :
dumps the mesh to a file with the given name.
Overrides: escript.escriptcpp.Domain.dump

getDataShape(...)

 
getDataShape( (MeshAdapter)arg1, (int)functionSpaceCode) -> object :
Returns: tuple
a pair (dps, ns) where dps=the number of data points per sample, and ns=the number of samples
Overrides: escript.escriptcpp.ContinuousDomain.getDataShape

getDescription(...)

 
getDescription( (MeshAdapter)arg1) -> str :
Returns: string
a description for this domain
Overrides: escript.escriptcpp.ContinuousDomain.getDescription

getDim(...)

 
getDim( (MeshAdapter)arg1) -> int :
Returns: int
Spatial dimension of the Domain
Overrides: escript.escriptcpp.Domain.getDim

getMPIRank(...)

 
getMPIRank( (MeshAdapter)arg1) -> int :
Returns: int
the rank of this process
Overrides: escript.escriptcpp.Domain.getMPIRank

getMPISize(...)

 
getMPISize( (MeshAdapter)arg1) -> int :
Returns: int
the number of processes used for this Domain
Overrides: escript.escriptcpp.Domain.getMPISize

getNormal(...)

 
getNormal( (MeshAdapter)arg1) -> Data :
Returns: Data
boundary normals at the quadrature point on the face elements
Overrides: escript.escriptcpp.Domain.getNormal

getNumDataPointsGlobal(...)

 
getNumDataPointsGlobal( (MeshAdapter)arg1) -> int :
Returns: int
the number of data points summed across all MPI processes
Overrides: escript.escriptcpp.ContinuousDomain.getNumDataPointsGlobal

getSize(...)

 
getSize( (MeshAdapter)arg1) -> Data :
Returns: Data
the element size
Overrides: escript.escriptcpp.Domain.getSize

getSystemMatrixTypeId(...)

 
getSystemMatrixTypeId( (MeshAdapter)arg1, (int)solver, (int)preconditioner, (int)package, (bool)symmetry) -> int :
Parameters:
  • solver (int)
  • preconditioner (int)
  • package (int)
  • symmetry (int)
Returns: int
the identifier of the matrix type to be used for the global stiffness matrix when a particular solver, package, perconditioner, and symmetric matrix is used.
Overrides: escript.escriptcpp.ContinuousDomain.getSystemMatrixTypeId

getTag(...)

 
getTag( (MeshAdapter)arg1, (str)name) -> int :
Returns: string
tag id for name
Overrides: escript.escriptcpp.Domain.getTag

getTransportTypeId(...)

 
getTransportTypeId( (MeshAdapter)arg1, (int)solver, (int)preconditioner, (int)package, (bool)symmetry) -> int :
Parameters:
  • solver (int)
  • preconditioner (int)
  • package (int)
  • symmetry (int)
Returns: int
the identifier of the transport problem type to be used when a particular solver, perconditioner, package and symmetric matrix is used.
Overrides: escript.escriptcpp.ContinuousDomain.getTransportTypeId

getX(...)

 
getX( (MeshAdapter)arg1) -> Data :
Returns: Data
locations in the FEM nodes
Overrides: escript.escriptcpp.Domain.getX

isValidTagName(...)

 
isValidTagName( (MeshAdapter)arg1, (str)name) -> bool :
Returns: bool
True is name corresponds to a tag
Overrides: escript.escriptcpp.Domain.isValidTagName

newOperator(...)

 
newOperator( (MeshAdapter)arg1, (int)row_blocksize, (FunctionSpace)row_functionspace, (int)column_blocksize, (FunctionSpace)column_functionspace, (int)type) -> Operator :
creates a SystemMatrixAdapter stiffness matrix and initializes it with zeros
Parameters:
Overrides: escript.escriptcpp.ContinuousDomain.newOperator

newTransportProblem(...)

 
newTransportProblem( (MeshAdapter)theta, (int)blocksize, (FunctionSpace)functionspace, (int)type) -> TransportProblem :
creates a TransportProblemAdapter
Parameters:
  • theta (float)
  • blocksize (int)
  • functionspace (FunctionSpace)
  • type (int)
Overrides: escript.escriptcpp.ContinuousDomain.newTransportProblem

onMasterProcessor(...)

 
onMasterProcessor( (MeshAdapter)arg1) -> bool :
Returns: bool
True if this code is executing on the master process
Overrides: escript.escriptcpp.Domain.onMasterProcessor

print_mesh_info(...)

 
print_mesh_info( (MeshAdapter)arg1 [, (bool)full=False]) -> None :
Parameters:
  • full (bool)
Overrides: escript.escriptcpp.ContinuousDomain.print_mesh_info

saveDX(...)

 
saveDX( (MeshAdapter)arg1, (str)filename, (dict)arg) -> None :
Saves a dictonary of Data objects to an OpenDX input file. The keywords are used as identifier
Parameters:
  • filename (string)
  • arg (dict)
Overrides: escript.escriptcpp.Domain.saveDX

saveVTK(...)

 
saveVTK( (MeshAdapter)arg1, (str)filename, (dict)arg, (str)metadata, (str)metadata_schema) -> None :
Saves a dictonary of Data objects to an VTK XML input file. The keywords are used as identifier
Parameters:
  • filename (string)
  • arg (dict)
  • metadata (string)
  • metadata_schema (string)
Overrides: escript.escriptcpp.Domain.saveVTK

setTagMap(...)

 
setTagMap( (MeshAdapter)arg1, (str)name, (int)tag) -> None :
Give a tag number a name.
Parameters:
  • name (string) - Name for the tag
  • tag (int) - numeric id
Overrides: escript.escriptcpp.Domain.setTagMap

Note: Tag names must be unique within a domain

setX(...)

 
setX( (MeshAdapter)arg1, (Data)arg) -> None :
assigns new location to the domain
Parameters:
Overrides: escript.escriptcpp.ContinuousDomain.setX

showTagNames(...)

 
showTagNames( (MeshAdapter)arg1) -> str :
Returns: string
A space separated list of tag names
Overrides: escript.escriptcpp.Domain.showTagNames