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 boolean
activate(java.lang.String arg0)
Deprecated.UsesolveFor(String)
instead.StudyFeature
activate(java.lang.String arg0, boolean arg1)
Deprecated.UsesetSolveFor(String, boolean)
instead.StudyFeature
createNewUQStudy(java.lang.String studyType)
Return the copied UQ study.void
discardData()
Discard any imported data.java.lang.String
discretization(java.lang.String physics)
Returns discretization for a multigrid level.StudyFeature
discretization(java.lang.String physics, java.lang.String disc)
Assigns discretization for a multigrid level.void
exportData(java.lang.String filename)
Export data.StudyFeatureList
feature()
Returns the study steps.StudyFeature
feature(java.lang.String studyFeature)
Returns a study step with the given tag.void
importData()
Import data.void
importData(java.lang.String filename)
Import data from specified file.boolean
loadFile(java.lang.String filePath)
Tries to load a file content into the study feature.java.lang.String
mesh(java.lang.String geom)
Returns the mesh selected for the given geometry.StudyFeature
mesh(java.lang.String geom, java.lang.String mesh)
Specifies which mesh to use for the geometry.MultigridLevelList
mglevel()
Returns multigrid level list for this study step.MultigridLevel
mglevel(java.lang.String level)
Sets a multigrid level for this study step.ProblemList
problem()
Returns all problems for this feature.ProblemFeature
problem(java.lang.String tag)
Returns a problem feature.void
refresh()
Reread the files that this feature depends on, if any.boolean
saveFile(java.lang.String filePath)
Tries to save the content of the study feature to a file.LocalSelection
selection(java.lang.String name)
Returns a study feature's selection property.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.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.java.lang.String
type()
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:
true
if 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:
true
if active.
-
selection
LocalSelection selection(java.lang.String name)
Returns a study feature's selection property.- Specified by:
selection
in 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:
true
if 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:
true
if solved for.
-
type
java.lang.String type()
Returns the study type.- Returns:
- Study type.
-
-