Package com.comsol.model
Interface StudyFeature
-
- All Superinterfaces:
ModelEntity,PrimitiveModelEntity,PropFeature,SelectionContainer,SelectionEntity,StudyContainer
public interface StudyFeature extends PropFeature, StudyContainer
Study step.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleanactivate(java.lang.String arg0)Deprecated.UsesolveFor(String)instead.StudyFeatureactivate(java.lang.String arg0, boolean arg1)Deprecated.UsesetSolveFor(String, boolean)instead.StudyFeaturecreateNewUQStudy(java.lang.String studyType)Return the copied UQ study.voiddiscardData()Discard any imported data.java.lang.Stringdiscretization(java.lang.String physics)Returns discretization for a multigrid level.StudyFeaturediscretization(java.lang.String physics, java.lang.String disc)Assigns discretization for a multigrid level.voidexportData(java.lang.String filename)Export data.StudyFeatureListfeature()Returns the study steps.StudyFeaturefeature(java.lang.String studyFeature)Returns a study step with the given tag.voidimportData()Import data.voidimportData(java.lang.String filename)Import data from specified file.booleanloadFile(java.lang.String filePath)Tries to load a file content into the study feature.java.lang.Stringmesh(java.lang.String geom)Returns the mesh selected for the given geometry.StudyFeaturemesh(java.lang.String geom, java.lang.String mesh)Specifies which mesh to use for the geometry.MultigridLevelListmglevel()Returns multigrid level list for this study step.MultigridLevelmglevel(java.lang.String level)Sets a multigrid level for this study step.ProblemListproblem()Returns all problems for this feature.ProblemFeatureproblem(java.lang.String tag)Returns a problem feature.voidrefresh()Reread the files that this feature depends on, if any.booleansaveFile(java.lang.String filePath)Tries to save the content of the study feature to a file.LocalSelectionselection(java.lang.String name)Returns a study feature's selection property.booleansetSolveFor(java.lang.String entityURI, boolean state)Specifies whether degrees of freedom contributed by a model entity should be actively solved for when computing this study step.booleansolveFor(java.lang.String entityURI)Returns true if degrees of freedom contributed by a model entity should be actively solved for when computing this study step.java.lang.Stringtype()Returns the study type.-
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
-
Methods inherited from interface com.comsol.model.SelectionEntity
selection
-
-
-
-
Method Detail
-
activate
@Deprecated boolean activate(java.lang.String arg0)
Deprecated.UsesolveFor(String)instead.
-
activate
@Deprecated StudyFeature activate(java.lang.String arg0, boolean arg1)
Deprecated.UsesetSolveFor(String, boolean)instead.
-
createNewUQStudy
StudyFeature createNewUQStudy(java.lang.String studyType)
Return the copied UQ study.- Parameters:
studyType- study type.- Returns:
- copied UQ.
-
discardData
void discardData()
Discard any imported data.
-
discretization
java.lang.String discretization(java.lang.String physics)
Returns discretization for a multigrid level.- Parameters:
physics- Physics interface or physics feature.- Returns:
- Discretization feature under a physics mode.
-
discretization
StudyFeature discretization(java.lang.String physics, java.lang.String disc)
Assigns discretization for a multigrid level.- Parameters:
physics- Physics interface or physics feature.disc- Discretization feature under a physics mode.- Returns:
- Study feature.
-
exportData
void exportData(java.lang.String filename)
Export data.- Parameters:
filename- File name.
-
feature
StudyFeatureList feature()
Returns the study steps.- Returns:
- List of study steps.
-
feature
StudyFeature feature(java.lang.String studyFeature)
Returns a study step with the given tag.- Parameters:
studyFeature- StudyFeature tag.- Returns:
- Requested study tag.
-
importData
void importData()
Import data.
-
importData
void importData(java.lang.String filename)
Import data from specified file.- Parameters:
filename- File name.
-
loadFile
boolean loadFile(java.lang.String filePath)
Tries to load a file content into the study feature. Returns the success of the operation.- Parameters:
filePath- Path of the file.- Returns:
trueif success.
-
mesh
java.lang.String mesh(java.lang.String geom)
Returns the mesh selected for the given geometry.- Parameters:
geom- Geometry sequence tag.- Returns:
- Mesh sequence tag.
-
mesh
StudyFeature mesh(java.lang.String geom, java.lang.String mesh)
Specifies which mesh to use for the geometry.- Parameters:
geom- Geometry sequence tag.mesh- Mesh sequence tag.- Returns:
- Study feature.
-
mglevel
MultigridLevelList mglevel()
Returns multigrid level list for this study step.- Returns:
- List of multigrid levels.
-
mglevel
MultigridLevel mglevel(java.lang.String level)
Sets a multigrid level for this study step.- Parameters:
level- Multigrid level tag.- Returns:
- Multigrid level.
-
problem
ProblemList problem()
Returns all problems for this feature.- Returns:
- Problem feature list.
-
problem
ProblemFeature problem(java.lang.String tag)
Returns a problem feature.- Parameters:
tag- Problem tag.- Returns:
- Problem feature.
-
refresh
void refresh()
Reread the files that this feature depends on, if any.
-
saveFile
boolean saveFile(java.lang.String filePath)
Tries to save the content of the study feature to a file. Returns the success of the operation.- Parameters:
filePath- Path of the file.- Returns:
trueif active.
-
selection
LocalSelection selection(java.lang.String name)
Returns a study feature's selection property.- Specified by:
selectionin interfacePropFeature- Parameters:
name- The selection property name.- Returns:
- Selection.
-
setSolveFor
boolean setSolveFor(java.lang.String entityURI, boolean state)Specifies whether degrees of freedom contributed by a model entity should be actively solved for when computing this study step.- Parameters:
entityURI- Model URI of entity contributing degrees of freedom.state- Activation state.- Returns:
trueif the model entity respects the setting in a meaningful way.
-
solveFor
boolean solveFor(java.lang.String entityURI)
Returns true if degrees of freedom contributed by a model entity should be actively solved for when computing this study step.- Parameters:
entityURI- Model URI of entity contributing degrees of freedom.- Returns:
trueif solved for.
-
type
java.lang.String type()
Returns the study type.- Returns:
- Study type.
-
-