findThermalProperties
Find thermal material properties assigned to a geometric region
Domain-specific heat transfer workflow is not recommended. New features might not be compatible with this workflow. For help migrating your existing code to the unified finite element workflow, see Migration from Domain-Specific to Unified Workflow.
Description
returns thermal material properties tmpa
= findThermalProperties(materialProperties
,RegionType
,RegionID
)tmpa
assigned to the
specified region.
Examples
Find Thermal Conductivity, Mass Density, and Specific Heat for Faces of 2-D Geometry
Create a transient thermal model that has three faces.
thermalmodel = createpde("thermal","transient"); geometryFromEdges(thermalmodel,@lshapeg); pdegplot(thermalmodel,"FaceLabels","on") ylim([-1.1,1.1]) axis equal
For face 1, specify the following thermal properties:
Thermal conductivity is
Mass density is
Specific heat is
thermalProperties(thermalmodel,"ThermalConductivity",10,... "MassDensity",1,... "SpecificHeat",0.1,... "Face",1);
For face 2, specify the following thermal properties:
Thermal conductivity is
Mass density is
Specific heat is
thermalProperties(thermalmodel,"ThermalConductivity",20,... "MassDensity",2,... "SpecificHeat",0.2,... "Face",2);
For face 3, specify the following thermal properties:
Thermal conductivity is )
Mass density is
Specific heat is
thermalProperties(thermalmodel,"ThermalConductivity",30,... "MassDensity",3,... "SpecificHeat",0.3,... "Face",3);
Check the material properties specification for face 1.
mpaFace1 = findThermalProperties(thermalmodel.MaterialProperties, ... "Face",1)
mpaFace1 = ThermalMaterialAssignment with properties: RegionType: 'face' RegionID: 1 ThermalConductivity: 10 MassDensity: 1 SpecificHeat: 0.1000
Check the heat source specification for faces 2 and 3.
mpa = findThermalProperties(thermalmodel.MaterialProperties, ... "Face",[2,3]); mpaFace2 = mpa(1)
mpaFace2 = ThermalMaterialAssignment with properties: RegionType: 'face' RegionID: 2 ThermalConductivity: 20 MassDensity: 2 SpecificHeat: 0.2000
mpaFace3 = mpa(2)
mpaFace3 = ThermalMaterialAssignment with properties: RegionType: 'face' RegionID: 3 ThermalConductivity: 30 MassDensity: 3 SpecificHeat: 0.3000
Find Thermal Conductivity for Cells of 3-D Geometry
Create a geometry that consists of three stacked cylinders and include the geometry in a thermal model.
gm = multicylinder(10,[1 2 3],"ZOffset",[0 1 3])
gm = DiscreteGeometry with properties: NumCells: 3 NumFaces: 7 NumEdges: 4 NumVertices: 4 Vertices: [4x3 double]
thermalmodel = createpde("thermal"); thermalmodel.Geometry = gm; pdegplot(thermalmodel,"CellLabels","on","FaceAlpha",0.5)
Thermal conductivity of the cylinder C1
is .
thermalProperties(thermalmodel,"ThermalConductivity",10,"Cell",1);
Thermal conductivity of the cylinder C2
is .
thermalProperties(thermalmodel,"ThermalConductivity",20,"Cell",2);
Thermal conductivity of the cylinder C3
is .
thermalProperties(thermalmodel,"ThermalConductivity",30,"Cell",3);
Check the material properties specification for cell 1:
mpaCell1 = findThermalProperties(thermalmodel.MaterialProperties, ... "Cell",1)
mpaCell1 = ThermalMaterialAssignment with properties: RegionType: 'cell' RegionID: 1 ThermalConductivity: 10 MassDensity: [] SpecificHeat: []
Check the heat source specification for cells 2 and 3:
mpa = findThermalProperties(thermalmodel.MaterialProperties,"Cell",2:3);
mpaCell2 = mpa(1)
mpaCell2 = ThermalMaterialAssignment with properties: RegionType: 'cell' RegionID: 2 ThermalConductivity: 20 MassDensity: [] SpecificHeat: []
mpaCell3 = mpa(2)
mpaCell3 = ThermalMaterialAssignment with properties: RegionType: 'cell' RegionID: 3 ThermalConductivity: 30 MassDensity: [] SpecificHeat: []
Input Arguments
materialProperties
— Material properties of the model
MaterialProperties
property of a thermal model
Material properties of the model, specified as the
MaterialProperties
property of a thermal
model.
Example: thermalmodel.MaterialProperties
RegionType
— Geometric region type
"Face"
for a 2-D model | "Cell"
for a 3-D model
Geometric region type, specified as "Face"
or
"Cell"
.
Example: findThermalProperties(thermalmodel.MaterialProperties,"Cell",1)
Data Types: char
| string
RegionID
— Geometric region ID
vector of positive integers
Geometric region ID, specified as a vector of positive integers. Find the
region IDs by using pdegplot
.
Example: findThermalProperties(thermalmodel.MaterialProperties,"Face",1:3)
Data Types: double
Output Arguments
tmpa
— Material properties assignment
ThermalMaterialAssignment
object
Material properties assignment, returned as a
ThermalMaterialAssignment
object. See ThermalMaterialAssignment Properties.
Version History
Introduced in R2017a
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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)