Package com.comsol.model
Interface MeshFeature
-
- All Superinterfaces:
GeomMeshFeature
,IPlotAndImageExport
,ModelEntity
,PrimitiveModelEntity
,PropFeature
,SelectionContainer
,SelectionEntity
- All Known Subinterfaces:
MeshProblemFeature
public interface MeshFeature extends GeomMeshFeature, IPlotAndImageExport
Mesh feature.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
buildComsolVersion()
Returns the COMSOL version number (and architecture) used for the last build of the feature.java.lang.String
buildDate()
Returns the date and time of the last build of the feature.java.lang.String[]
buildInfo()
Returns feature specific information from the build of the feature.java.lang.String[][]
buildOutput()
Returns feature specific output data from the build of the feature.int
buildTime()
Returns the time it took to build the feature.MeshFeature
create(java.lang.String tag, java.lang.String oper)
Creates a mesh feature.void
expand()
Expands a reference feature.MeshFeatureList
feature()
Returns all mesh features.MeshFeature
feature(java.lang.String tag)
Returns a mesh feature.void
importData()
Update the output mesh to account for the following external changes:
1.java.lang.String[]
outputSelection()
Returns tags of selection output objects.MeshProblemFeatureList
problem()
Returns all meshing problems.MeshProblemFeature
problem(java.lang.String tag)
Returns meshing problem.MeshSelection
selection()
Returns the selection of the mesh feature.LocalSelection
selection(java.lang.String name)
Returns a mesh feature's selection property.-
Methods inherited from interface com.comsol.model.GeomMeshFeature
errors, hasError, hasProblem, hasWarning, isBuilt, message, problems, status, warnings
-
Methods inherited from interface com.comsol.model.IPlotAndImageExport
image
-
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, 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
-
-
-
-
Method Detail
-
buildComsolVersion
java.lang.String buildComsolVersion()
Returns the COMSOL version number (and architecture) used for the last build of the feature.- Returns:
- Empty string if not built, otherwise a string of the type "COMSOL 6.0.0.95 (win64)".
-
buildDate
java.lang.String buildDate()
Returns the date and time of the last build of the feature.- Returns:
- Empty string if not built, otherwise a string of the type "2021-02-16T15:08:02.731" (given by LocalDateTime.now()).
-
buildInfo
java.lang.String[] buildInfo()
Returns feature specific information from the build of the feature.- Returns:
- Strings with feature specific information from the build of the feature.
-
buildOutput
java.lang.String[][] buildOutput()
Returns feature specific output data from the build of the feature.- Returns:
- N-by-2 matrix with feature specific output data from the build of the feature.
-
buildTime
int buildTime()
Returns the time it took to build the feature.- Returns:
- -1 if not built, otherwise the number of seconds it took to build the feature.
-
create
MeshFeature create(java.lang.String tag, java.lang.String oper)
Creates a mesh feature.- Parameters:
tag
- Mesh feature tag.oper
- Mesh feature type.- Returns:
- Created mesh feature.
-
expand
void expand()
Expands a reference feature.
-
feature
MeshFeatureList feature()
Returns all mesh features.- Returns:
- List of mesh features.
-
feature
MeshFeature feature(java.lang.String tag)
Returns a mesh feature.- Parameters:
tag
- Mesh feature tag.- Returns:
- Mesh feature.
-
importData
void importData()
Update the output mesh to account for the following external changes:
1. Import a mesh from a file or another sequence.- Specified by:
importData
in interfaceGeomMeshFeature
-
outputSelection
java.lang.String[] outputSelection()
Returns tags of selection output objects.- Returns:
- Tags of created selections.
-
problem
MeshProblemFeatureList problem()
Returns all meshing problems.- Returns:
- Meshing problem feature list.
-
problem
MeshProblemFeature problem(java.lang.String tag)
Returns meshing problem.- Parameters:
tag
- Meshing problem tag.- Returns:
- Meshing problem feature.
-
selection
MeshSelection selection()
Returns the selection of the mesh feature.- Specified by:
selection
in interfaceSelectionEntity
- Returns:
- Mesh selection.
-
selection
LocalSelection selection(java.lang.String name)
Returns a mesh feature's selection property.- Specified by:
selection
in interfacePropFeature
- Parameters:
name
- The selection property name.- Returns:
- Selection.
-
-