findThermalBC
(To be removed) Find thermal boundary conditions assigned to a geometric region
findThermalBC will be removed. Use the
EdgeBC and FaceBC properties of femodel
instead. (since R2023a) For more information on updating your code, see Version History.
Description
returns the thermal boundary condition assigned to the specified region.tbca = findThermalBC(boundaryConditions,RegionType,RegionID)
Examples
Create a thermal model and include a square geometry.
thermalmodel = createpde("thermal"); geometryFromEdges(thermalmodel,@squareg); pdegplot(thermalmodel,"EdgeLabels","on") ylim([-1.1 1.1]) axis equal

Apply temperature boundary conditions on edges 1 and 3 of the square.
thermalBC(thermalmodel,"Edge",[1 3],"Temperature",100);
Apply a heat flux boundary condition on edge 4 of the square.
thermalBC(thermalmodel,"Edge",4,"HeatFlux",20);
Check the boundary condition specification on edge 1.
tbcaEdge1 = findThermalBC(thermalmodel.BoundaryConditions,"Edge",1)tbcaEdge1 =
ThermalBC with properties:
RegionType: 'Edge'
RegionID: [1 3]
Temperature: 100
HeatFlux: []
ConvectionCoefficient: []
Emissivity: []
AmbientTemperature: []
Vectorized: 'off'
Label: []
InternalBC: []
Check the boundary condition specifications on edges 3 and 4.
tbca = findThermalBC(thermalmodel.BoundaryConditions,"Edge",3:4);
tbcaEdge3 = tbca(1)tbcaEdge3 =
ThermalBC with properties:
RegionType: 'Edge'
RegionID: [1 3]
Temperature: 100
HeatFlux: []
ConvectionCoefficient: []
Emissivity: []
AmbientTemperature: []
Vectorized: 'off'
Label: []
InternalBC: []
tbcaEdge4 = tbca(2)
tbcaEdge4 =
ThermalBC with properties:
RegionType: 'Edge'
RegionID: 4
Temperature: []
HeatFlux: 20
ConvectionCoefficient: []
Emissivity: []
AmbientTemperature: []
Vectorized: 'off'
Label: []
InternalBC: []
Input Arguments
Boundary conditions of a thermal model, specified as the
BoundaryConditions property of a
ThermalModel object.
Example: thermalmodel.BoundaryConditions
Geometric region type, specified as "Face" for 3-D
geometry or "Edge" for 2-D geometry.
Data Types: char | string
Geometric region ID, specified as a vector of positive integers. Find the
region IDs using pdegplot with the
"FaceLabels" (3-D) or "EdgeLabels"
(2-D) value set to "on".
Data Types: double
Output Arguments
Thermal boundary condition for a particular region, returned as a
ThermalBC object.
Version History
Introduced in R2017afindThermalBC will be removed. Use the
EdgeBC and FaceBC properties of femodel
instead.
For example, you can check the boundary condition on edges of the unit square as follows.
model = femodel(AnalysisType="thermalSteady", ... Geometry=@squareg); model.EdgeBC([1 3]) = edgeBC(Temperature=25); model.EdgeBC
The unified finite element model workflow defines the type of a problem and all of
its parameters as the properties of an femodel object. This
object enables you to specify physical parameters for structural, thermal, and
electromagnetic types of analyses. The solver in the unified workflow uses only the
parameters (properties) appropriate for the current analysis type while ignoring all
other properties. If you switch the analysis type by setting the
AnalysisType property of the model, the solver uses the
appropriate set of properties corresponding to the new analysis type.
For more help migrating your existing code that uses
ThermalModel to the unified finite element workflow, see
Migration from Domain-Specific to Unified Workflow.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.
Amerika
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)