Package com.comsol.model
Interface Pair
-
- All Superinterfaces:
IPlotAndImageExport,ModelEntity,PrimitiveModelEntity,SelectionContainer
public interface Pair extends ModelEntity, SelectionContainer, IPlotAndImageExport
Pair.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringcompatibleMeshesTol()Gets tolerance for when elementwise mapping for compatible meshes should regard the meshes as compatible.PaircompatibleMeshesTol(java.lang.String value)Sets tolerance for when elementwise mapping for compatible meshes should regard the meshes as compatible.LocalSelectiondestination()Gets destination selection.java.lang.StringdstFrame()Gets destination frame.PairdstFrame(java.lang.String frame)Sets destination frame.java.lang.Stringelementwise()Gets strategy for elementwise mapping for compatible meshes.Pairelementwise(java.lang.String value)Sets strategy for elementwise mapping for compatible meshes.java.lang.StringgapName(boolean src2dst)Gets name of geometric gap variable seen from the destination (if src2dst) or seen from the source (if !src2dst).booleanhasAutoSelection()True if pair was created automatically when building geometry.java.lang.StringinContactName()Gets name of in-contact variable that evaluates to zero or one depending on if the pair is in contact.java.lang.StringinitGapName(boolean src2dst)Gets name of initial geometric gap variable seen from the destination (if src2dst) or seen from the source (if !src2dst).booleanmanualDist()Returnstrueif manual control of search distance is enabled.PairmanualDist(boolean manual)Enables or disables manual control of search distance.booleanmanualFrame()True if automatically created pair is in manual frame mode.PairmanualFrame(boolean manual)Sets manual mode for the frames in automatic pairs.booleanmanualSelection()True if automatically created pair is in manual selection mode.PairmanualSelection(boolean manualSelection)Sets manual mode for selections in automatic pairs.java.lang.Stringmapping()Returns the method used for mapping in contact pairs.Pairmapping(java.lang.String method)Sets the method used for mapping in contact pairs.java.lang.StringmphOpName(boolean src2dst)Gets name of the multiphysics operator transferring an expression from source to destination (if src2dst) or from destination to source if (!src2dst).java.lang.StringopName(boolean src2dst)Gets name of operator transferring an expression from source to destination (if src2dst) or from destination to source (if !src2dst).java.lang.StringpairName()Gets pair name.PairpairName(java.lang.String name)Sets pair name.java.lang.StringsearchDist()Gets search distance.PairsearchDist(java.lang.String dist)Sets search distance.java.lang.StringsearchMethod()Gets search method.PairsearchMethod(java.lang.String method)Sets search method.java.lang.StringsearchTol()Gets search tolerance.PairsearchTol(java.lang.String tol)Sets search tolerance.LocalSelectionsource()Gets source selection.java.lang.StringsrcFrame()Gets source frame.PairsrcFrame(java.lang.String frame)Sets source frame.Pairswap()Swap source and destination selections.java.lang.Stringtype()Gets pair type.Pairtype(java.lang.String type)Sets pair type.-
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
-
-
-
-
Method Detail
-
compatibleMeshesTol
java.lang.String compatibleMeshesTol()
Gets tolerance for when elementwise mapping for compatible meshes should regard the meshes as compatible. This is a relative tolerance compared to the size of the mesh element.- Returns:
- String representing a positive real number.
-
compatibleMeshesTol
Pair compatibleMeshesTol(java.lang.String value)
Sets tolerance for when elementwise mapping for compatible meshes should regard the meshes as compatible. This is a relative tolerance compared to the size of the mesh element. Used only for identity pairs.- Parameters:
value- String representing a positive real number.- Returns:
- Pair.
-
destination
LocalSelection destination()
Gets destination selection.- Returns:
- Destination selection.
-
dstFrame
java.lang.String dstFrame()
Gets destination frame.- Returns:
- Destination frame.
-
dstFrame
Pair dstFrame(java.lang.String frame)
Sets destination frame. Used only for identity pairs.- Parameters:
frame- Destination frame.- Returns:
- Pair.
-
elementwise
java.lang.String elementwise()
Gets strategy for elementwise mapping for compatible meshes. Possible values are on, off, require.- Returns:
- String representing elementwise mapping strategy.
-
elementwise
Pair elementwise(java.lang.String value)
Sets strategy for elementwise mapping for compatible meshes. Allowed values are on, off, require. Used only for identity pairs.- Parameters:
value- String representing elementwise mapping strategy.- Returns:
- Pair.
-
gapName
java.lang.String gapName(boolean src2dst)
Gets name of geometric gap variable seen from the destination (if src2dst) or seen from the source (if !src2dst). Used only for contact pairs.- Parameters:
src2dst- src2dsttrueto see from the destination.- Returns:
- Name of geometric gap variable.
-
hasAutoSelection
boolean hasAutoSelection()
True if pair was created automatically when building geometry.- Returns:
trueif pair was created automatically.
-
inContactName
java.lang.String inContactName()
Gets name of in-contact variable that evaluates to zero or one depending on if the pair is in contact. An identity pair is in contact whenever the source and destination side overlap. A contact pair uses the gap variable to decide the in contact condition.- Returns:
- Name of in-contact variable.
-
initGapName
java.lang.String initGapName(boolean src2dst)
Gets name of initial geometric gap variable seen from the destination (if src2dst) or seen from the source (if !src2dst). Used only for contact pairs.- Parameters:
src2dst- src2dsttrueto see from the destination.- Returns:
- Name of initial geometric gap variable.
-
manualDist
boolean manualDist()
Returnstrueif manual control of search distance is enabled.- Returns:
truefor manual control.
-
manualDist
Pair manualDist(boolean manual)
Enables or disables manual control of search distance.- Parameters:
manual-trueto enable manual control.- Returns:
- Pair.
-
manualFrame
boolean manualFrame()
True if automatically created pair is in manual frame mode.- Returns:
trueif frames are set manually.
-
manualFrame
Pair manualFrame(boolean manual)
Sets manual mode for the frames in automatic pairs.- Parameters:
manual-trueto set frames manually.- Returns:
- Pair.
-
manualSelection
boolean manualSelection()
True if automatically created pair is in manual selection mode.- Returns:
trueif in manual selection mode.
-
manualSelection
Pair manualSelection(boolean manualSelection)
Sets manual mode for selections in automatic pairs.- Parameters:
manualSelection-trueif manual selections.- Returns:
- Pair.
-
mapping
java.lang.String mapping()
Returns the method used for mapping in contact pairs.- Returns:
- Mapping method.
-
mapping
Pair mapping(java.lang.String method)
Sets the method used for mapping in contact pairs.- Parameters:
method- Mapping method.- Returns:
- Pair.
-
mphOpName
java.lang.String mphOpName(boolean src2dst)
Gets name of the multiphysics operator transferring an expression from source to destination (if src2dst) or from destination to source if (!src2dst). When the test operator is applied on this operator, it does not give any contribution (reaction force) on the SME interface's degrees of freedom due to the variable point mapping. Used only for contact pairs.- Parameters:
src2dst-truefor source to destination.- Returns:
- Operator name.
-
opName
java.lang.String opName(boolean src2dst)
Gets name of operator transferring an expression from source to destination (if src2dst) or from destination to source (if !src2dst).- Parameters:
src2dst-truefor source to destination.- Returns:
- Operator name.
-
pairName
java.lang.String pairName()
Gets pair name.- Returns:
- Pair name.
-
pairName
Pair pairName(java.lang.String name)
Sets pair name. The pair name is used as a suffix in variable names and operator names.- Parameters:
name- Pair name.- Returns:
- Pair.
-
searchDist
java.lang.String searchDist()
Gets search distance.- Returns:
- String representing search distance.
-
searchDist
Pair searchDist(java.lang.String dist)
Sets search distance. The default unit is the geometry's length unit.- Parameters:
dist- String representing search distance.- Returns:
- Pair.
-
searchMethod
java.lang.String searchMethod()
Gets search method.- Returns:
- Search method:
hierarchical,fastordirect.
-
searchMethod
Pair searchMethod(java.lang.String method)
Sets search method. Used only for contact pairs.- Parameters:
method- Search method:hierarchical,fastordirect.- Returns:
- Pair.
-
searchTol
java.lang.String searchTol()
Gets search tolerance.- Returns:
- String representing search tolerance.
-
searchTol
Pair searchTol(java.lang.String tol)
Sets search tolerance. Used only for contact pairs.- Parameters:
tol- String representing search tolerance.- Returns:
- Pair.
-
source
LocalSelection source()
Gets source selection.- Returns:
- Source selection.
-
srcFrame
java.lang.String srcFrame()
Gets source frame.- Returns:
- Source frame.
-
srcFrame
Pair srcFrame(java.lang.String frame)
Sets source frame. Used only for identity pairs.- Parameters:
frame- Source frame.- Returns:
- Pair.
-
swap
Pair swap()
Swap source and destination selections.- Returns:
- Pair.
-
type
java.lang.String type()
Gets pair type.- Returns:
- Pair type:
ContactorIdentity.
-
type
Pair type(java.lang.String type)
Sets pair type.- Parameters:
type- Pair type:ContactorIdentity.- Returns:
- Pair.
-
-