archetypal.template.GasMaterial
- class archetypal.template.GasMaterial(Name, Conductivity=None, Density=None, Category='Gases', **kwargs)[source]
Gas Materials.
Initialize object with parameters.
- Parameters
Name (str) – The name of the GasMaterial.
Conductivity (float) – Thermal conductivity (W/m-K).
Density (float) – A number representing the density of the material in kg/m3. This is essentially the mass of one cubic meter of the material.
Category (str) – Category is set as “Gases” for GasMaterial.
**kwargs – keywords passed to the MaterialBase constructor.
- property Type
Get or set the gas type.
Choices are (“Air”, “Argon”, “Krypton”, “Xenon”).
- property Conductivity
Get or set the conductivity of the gas at 0C [W/m-K].
- property Density
Get or set the density of the gas.
- property molecular_weight
Get the molecular weight [kg/mol].
- property specific_heat
Get the material layer’s specific heat at 0C [J/kg-K].
- classmethod from_dict(data, **kwargs)[source]
Create a GasMaterial from a dictionary.
- Parameters
data (dict) – A python dictionary.
**kwargs – keywords passed the MaterialBase constructor.
- to_epbunch(idf, thickness)[source]
Convert self to an epbunch given an idf model and a thickness.
WindowMaterial:Gas, AIR_0.006_B_Dbl_Air_Cl, !- Name AIR, !- Gas Type 0.006; !- Thickness
- Returns
The EpBunch object added to the idf model.
- Return type
EpBunch
- mapping(validate=True)[source]
Get a dict based on the object properties, useful for dict repr.
- Parameters
validate (bool) – If True, try to validate object before returning the mapping.
- density_at_temperature(t_kelvin, pressure=101325)[source]
Get the density of the gas [kg/m3] at a given temperature and pressure.
This method uses CoolProp to get the density.
- property Category
Get or set the Category attribute.
- property Comments
Get or set the object comments.
- property Cost
Get or set the cost of the material [$].
- property DataSource
Get or set the datasource of the object.
- property EmbodiedCarbon
Get or set the embodied carbon of the material [kgCO2/kg].
- property EmbodiedEnergy
Get or set the embodied energy of the material [MJ/kg].
- property Name
Get or set the name of the object.
- property SubstitutionRatePattern
Get or set the substitution rate pattern of the material.
- property SubstitutionTimestep
Get or set the substitution timestep of the material.
- property TransportCarbon
Get or set the transportation carbon of the material [kgCO2/kg/km].
- property TransportDistance
Get or set the transportation distance of the material [km].
- property TransportEnergy
Get or set the transporation energy of the material [MJ/kg/km].
- property allow_duplicates
Get or set the use of duplicates [bool].
- extend(other, allow_duplicates)
Append other to self. Modify and return self.
- float_mean(other, attr, weights=None)
Calculates the average attribute value of two floats. Can provide weights.
- get_unique()
Return first object matching equality in the list of instantiated objects.
- property id
Get or set the id.
- property predecessors
Get or set the predecessors of self.
Of which objects is self made of. If from nothing else then self, return self.
- specific_heat_at_temperature(t_kelvin, pressure=101325)[source]
Get the specific heat of the gas [J/(kg-K)] at a given Kelvin temperature.
This method uses CoolProp to get the density.
- to_ref()
Return a ref pointer to self.
- validate()
Validate object and fill in missing values.
- viscosity_at_temperature(t_kelvin, pressure=101325)[source]
Get the viscosity of the gas [kg/m-s] at a given Kelvin temperature.
This method uses CoolProp to get the density.
- conductivity_at_temperature(t_kelvin, pressure=101325)[source]
Get the conductivity of the gas [W/(m-K)] at a given Kelvin temperature.
This method uses CoolProp to get the density. Note that the thermal conductivity model is not available for Krypton, Xenon gases. Values from the literature are used instead.