Class ThermalLayer1D
Represents a one-dimensional thermal layer for heat transfer calculations.
public class ThermalLayer1D : IMakeXmlSource
- Inheritance
-
ThermalLayer1D
- Implements
- Inherited Members
- Extension Methods
Constructors
ThermalLayer1D()
Initializes a new instance of the ThermalLayer1D class.
public ThermalLayer1D()
ThermalLayer1D(IStructureMaterial, double)
Initializes a new instance of the ThermalLayer1D class with the specified material and length.
public ThermalLayer1D(IStructureMaterial material, double length_mm)
Parameters
material
IStructureMaterialThe thermal material of this layer.
length_mm
doubleThe length of this layer in millimeters.
ThermalLayer1D(ThermalLayer1D)
Initializes a new instance of the ThermalLayer1D class by copying from another instance.
public ThermalLayer1D(ThermalLayer1D src)
Parameters
src
ThermalLayer1DThe source thermal layer to copy from.
ThermalLayer1D(XElement, string, string)
Initializes a new instance of the ThermalLayer1D class from XML data.
public ThermalLayer1D(XElement src, string baseDirectory, string relFile)
Parameters
src
XElementThe XML element containing thermal layer data.
baseDirectory
stringThe base directory for resolving relative paths.
relFile
stringThe relative file path.
Properties
Length_mm
Gets or sets the length of this thermal layer in millimeters.
public double Length_mm { get; set; }
Property Value
Length_um
Gets or sets the length of this thermal layer in micrometers.
public double Length_um { get; set; }
Property Value
Material
Gets or sets the thermal material of this layer.
public IStructureMaterial Material { get; set; }
Property Value
XName
Name for XML IO.
public static string XName { get; }
Property Value
Methods
MakeXmlSource(string, string)
Creates an XML representation of the object. This method may also generate additional resources such as related files.
public XElement MakeXmlSource(string baseDirectory, string relFile)
Parameters
baseDirectory
stringThe base directory for resolving relative paths
relFile
stringThe relative file path for the XML source
Returns
- XElement
An XML element representing the object's state