Model

class model.Model(material=<model.material.Material object>, system=<model.system.System object>, root='')

Combines material properties with system parameters.

If, on instantiation, model or system is a string, the associated object will be created from the YAML file, e.g.,

Model('mos2', 'default', 'data')

will load the YAML files at data/mos2.yml and data/default.yml. See parameters.Parameters.load_file().

material

The associated Material object.

Returns:The material.
Return type:Material
material_parameter(name)

Get the value of a material parameter by name.

Parameters:name (str) – Material name.
Returns:The value.
Return type:float
system

The associated System object.

Returns:The system.
Return type:System
system_parameter(name)

Get the value of a system parameter by name.

Parameters:name (str) – System name.
Returns:The value.
Return type:float
class model.Material(path=None)

Material specific parameters.

Inherits from parameters.Parameters.

class model.System(path=None)

System specific parameters.

Inherits from parameters.Parameters.