Package com.comsol.model
Interface MeshData
-
- All Superinterfaces:
ModelEntity
,PrimitiveModelEntity
,PropFeature
,SelectionContainer
,SelectionEntity
public interface MeshData extends PropFeature
Mesh data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearData()
Clears the MeshData object.void
createMesh()
Construct a complete mesh from the MeshData object and store it in the meshing sequence.int[][]
getElem(java.lang.String type)
Gets elements from the mesh.int[][]
getElem(java.lang.String type, int position, int number)
Gets blocks of elements from the mesh.int[]
getElemEntity(java.lang.String type)
Gets geometric entity number for the elements of a specific type.int[]
getElemEntity(java.lang.String type, int position, int number)
Gets blocks of geometric entity number for the elements of a specific type.int
getNumElem(java.lang.String type)
Gets the number of elements of a specific type.int
getNumVertex()
Gets the number of mesh vertices in a mesh.java.lang.String[]
getTypes()
Gets the element types in the mesh.double[][]
getVertex()
Gets the coordinates of the mesh vertices.double[][]
getVertex(int position, int number)
Gets block of coordinates of the mesh vertices.MeshData
setElem(java.lang.String type, int[][] elem)
Sets the mesh data.MeshData
setElem(java.lang.String type, int position, int[][] elem)
Inserts block of mesh data.MeshData
setElemEntity(java.lang.String type, int[] elem)
Sets geometric entity number for the elements of a specific type.MeshData
setElemEntity(java.lang.String type, int position, int[] elem)
Inserts block of geometric entity numbers for the elements of a specific type.MeshData
setVertex(double[][] vtx)
Sets the mesh vertices.MeshData
setVertex(int position, double[][] vtx)
Inserts a block of mesh vertices.void
transferMesh()
Transfers the mesh from the current meshing sequence into the MeshData object.void
transferMesh(java.lang.String tag)
Transfers the mesh from another meshing sequence into the MeshData object.-
Methods inherited from interface com.comsol.model.ModelEntity
active, author, author, comments, comments, dateCreated, dateModified, docMarker, docMarker, help, help, icon, isactive, isActive, label, label, lastModifiedBy, model, model, name, name, resetAuthor, scope, tag, tag, timeCreated, timeModified, version, version
-
Methods inherited from interface com.comsol.model.PrimitiveModelEntity
getContainer, getDisplayString, resolveModelPath
-
Methods inherited from interface com.comsol.model.PropFeature
getAllowedPropertyValues, getBoolean, getBoolean, getBoolean, getBooleanArray, getBooleanMatrix, getDouble, getDouble, getDouble, getDoubleArray, getDoubleMatrix, getEntryKeyIndex, getEntryKeys, getInt, getInt, getInt, getIntArray, getIntMatrix, getReferenceArray, getString, getString, getString, getString, getStringArray, getStringMatrix, getType, getValueType, hasProperty, hasSelection, move, move, properties, remove, remove, selection, set, set, set, set, set, set, set, set, set, set, set, set, setEntry, setEntry, setEntry, setEntry, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex
-
Methods inherited from interface com.comsol.model.SelectionEntity
selection
-
-
-
-
Method Detail
-
clearData
void clearData()
Clears the MeshData object.
-
createMesh
void createMesh()
Construct a complete mesh from the MeshData object and store it in the meshing sequence.
-
getElem
int[][] getElem(java.lang.String type)
Gets elements from the mesh.- Parameters:
type
- Mesh type.- Returns:
- Matrix where each column contains the mesh vertex indices of an element's corners.
-
getElem
int[][] getElem(java.lang.String type, int position, int number)
Gets blocks of elements from the mesh.- Parameters:
type
- Mesh type.position
- Start index.number
- Length of block.- Returns:
- Matrix where each column contains the mesh vertex indices of an element's corners.
-
getElemEntity
int[] getElemEntity(java.lang.String type)
Gets geometric entity number for the elements of a specific type.- Parameters:
type
- Mesh type.- Returns:
- Vector of geometric entity numbers.
-
getElemEntity
int[] getElemEntity(java.lang.String type, int position, int number)
Gets blocks of geometric entity number for the elements of a specific type.- Parameters:
type
- Mesh type.position
- Start index.number
- Length of block.- Returns:
- Vector of geometric entity numbers.
-
getNumElem
int getNumElem(java.lang.String type)
Gets the number of elements of a specific type.- Parameters:
type
- Mesh type.- Returns:
- Number of elements.
-
getNumVertex
int getNumVertex()
Gets the number of mesh vertices in a mesh.- Returns:
- Number of mesh vertices.
-
getTypes
java.lang.String[] getTypes()
Gets the element types in the mesh.- Returns:
- Vector of element types.
-
getVertex
double[][] getVertex()
Gets the coordinates of the mesh vertices.- Returns:
- Matrix where each column corresponds to a mesh vertex.
-
getVertex
double[][] getVertex(int position, int number)
Gets block of coordinates of the mesh vertices.- Parameters:
position
- Start index.number
- Length of block.- Returns:
- Matrix where each column corresponds to a mesh vertex.
-
setElem
MeshData setElem(java.lang.String type, int[][] elem)
Sets the mesh data.- Parameters:
type
- Mesh type.elem
- Matrix where each column contains the mesh vertex indices of an element's corners.- Returns:
- Mesh data.
-
setElem
MeshData setElem(java.lang.String type, int position, int[][] elem)
Inserts block of mesh data.- Parameters:
type
- Mesh type.position
- Start index.elem
- Matrix where each column contains the mesh vertex indices of an element's corners.- Returns:
- Mesh data.
-
setElemEntity
MeshData setElemEntity(java.lang.String type, int[] elem)
Sets geometric entity number for the elements of a specific type.- Parameters:
type
- Mesh type.elem
- Geometric entity number.- Returns:
- Mesh data.
-
setElemEntity
MeshData setElemEntity(java.lang.String type, int position, int[] elem)
Inserts block of geometric entity numbers for the elements of a specific type.- Parameters:
type
- Mesh type.position
- Start index.elem
- Geometric entity number.- Returns:
- Mesh type.
-
setVertex
MeshData setVertex(double[][] vtx)
Sets the mesh vertices.- Parameters:
vtx
- Matrix where each column corresponds to a mesh vertex.- Returns:
- Mesh data.
-
setVertex
MeshData setVertex(int position, double[][] vtx)
Inserts a block of mesh vertices.- Parameters:
position
- Start index.vtx
- Matrix where each column corresponds to a mesh vertex.- Returns:
- Mesh data.
-
transferMesh
void transferMesh()
Transfers the mesh from the current meshing sequence into the MeshData object.
-
transferMesh
void transferMesh(java.lang.String tag)
Transfers the mesh from another meshing sequence into the MeshData object.- Parameters:
tag
- Mesh sequence tag.
-
-