Interfaces
Module: xfea.model.interfaces
BoundaryInterface
Section titled “BoundaryInterface”BoundaryInterface(master, behavior, **kwargs)
A surface and its surroundings, with the behaviour between them: a convection or a radiation.
Parameters
| Name | Type | Description |
|---|---|---|
| master | FacesGroup |
The element faces of the surface (edges for a plane heat transfer model). |
| behavior | ThermalInteraction |
The exchange with the surroundings: Convection or Radiation. |
Properties
behaviorread-only
The behaviour between the surfaces: a contact, a tie or a thermal interaction.
keyAny | Noneread-only
The object’s key (its number) in what it is registered to; None until it is given one.
masterread-only
The master surface, a FacesGroup.
namestr
The object’s name.
registrationAny | None
The object this one is registered to (a part, a model, a step, …), or None.
slaveread-only
The slave surface, a FacesGroup, or None.
uidUUID | Noneread-only
The object’s unique id, a UUID.
InterfaceBase
Section titled “InterfaceBase”InterfaceBase(master, slave, behavior, name=None, **kwargs)
Where an interaction acts: a master surface, a slave surface (or none) and the behaviour between them.
Abstract: use PartPartInterface (two parts) or
BoundaryInterface (a surface and its surroundings). Add it to the
model with add_interface().
Parameters
| Name | Type | Description |
|---|---|---|
| master | FacesGroup |
The element faces of the master surface. |
| slave | FacesGroup or None |
The element faces of the slave surface: None for a boundary interface. |
| behavior | InteractionBase or TieConstraint |
What happens between the two surfaces: a contact, a tie, a convection. |
| name | str, optional | A name for the input file; one is generated if not given. |
Properties
behaviorread-only
The behaviour between the surfaces: a contact, a tie or a thermal interaction.
keyAny | Noneread-only
The object’s key (its number) in what it is registered to; None until it is given one.
masterread-only
The master surface, a FacesGroup.
namestr
The object’s name.
registrationAny | None
The object this one is registered to (a part, a model, a step, …), or None.
slaveread-only
The slave surface, a FacesGroup, or None.
uidUUID | Noneread-only
The object’s unique id, a UUID.
PartPartInterface
Section titled “PartPartInterface”PartPartInterface(master, slave, behavior, **kwargs)
Two parts’ touching surfaces and the behaviour between them: contact or a tie.
The usual way to make them is detect_interfaces();
from_parts() and from_parts_and_plane() make one for a given
pair of parts.
Parameters
| Name | Type | Description |
|---|---|---|
| master | FacesGroup |
The master part’s faces, usually on the stiffer part. |
| slave | FacesGroup |
The slave part’s faces. |
| behavior | InteractionBase or TieConstraint |
What happens between the two surfaces. |
Properties
behaviorread-only
The behaviour between the surfaces: a contact, a tie or a thermal interaction.
keyAny | Noneread-only
The object’s key (its number) in what it is registered to; None until it is given one.
masterread-only
The master surface, a FacesGroup.
namestr
The object’s name.
registrationAny | None
The object this one is registered to (a part, a model, a step, …), or None.
slaveread-only
The slave surface, a FacesGroup, or None.
uidUUID | Noneread-only
The object’s unique id, a UUID.
© 2026 Francesco Ranaudo · Text and pictures CC BY 4.0 · Code Elastic License 2.0 · how to reuse them