PLaSK library
|
Factory of alloy material which construct its versions with mixed version of two compositions and dopants. More...
#include <plask/material/db.hpp>
Public Member Functions | |
MixedCompositionAndDopantFactory (shared_ptr< const MaterialConstructor > constructor, const Material::Composition &material1composition, const Material::Composition &material2composition, double m1DopAmount, double m2DopAmount, double shape=1.) | |
Construct MixedCompositionAndDopantFactory for given material constructor, two compositions and dopings amounts for this constructor. | |
shared_ptr< Material > | operator() (double m1_weight) const override |
Construct material. | |
shared_ptr< Material > | singleMaterial () const override |
Get material only if this factory represents solid material (if operator(double m1_weight) is independent from m1_weight). | |
Public Member Functions inherited from plask::MaterialsDB::MixedCompositionOnlyFactory | |
MixedCompositionOnlyFactory (shared_ptr< const MaterialConstructor > constructor, const Material::Composition &material1composition, const Material::Composition &material2composition, double shape=1.) | |
Construct MixedCompositionFactory for given material constructor and two compositions for this constructor. | |
shared_ptr< Material > | operator() (double m1_weight) const override |
Construct material. | |
shared_ptr< Material > | singleMaterial () const override |
Get material only if this factory represents solid material (if operator(double m1_weight) is independent from m1_weight). | |
Public Member Functions inherited from plask::MaterialsDB::MixedCompositionFactory | |
MixedCompositionFactory (shared_ptr< const MaterialConstructor > constructor) | |
Construct MixedCompositionFactory for given material constructor and two compositions for this constructor. | |
virtual | ~MixedCompositionFactory () |
Protected Attributes | |
double | m1DopAmount |
double | m2DopAmount |
Protected Attributes inherited from plask::MaterialsDB::MixedCompositionOnlyFactory | |
Material::Composition | material1composition |
Material::Composition | material2composition |
double | shape |
Protected Attributes inherited from plask::MaterialsDB::MixedCompositionFactory | |
shared_ptr< const MaterialConstructor > | constructor |
Additional Inherited Members | |
Protected Member Functions inherited from plask::MaterialsDB::MixedCompositionOnlyFactory | |
Material::Composition | mixedComposition (double m1_weight) const |
Calculate mixed composition, of material1composition and material2composition. | |
Factory of alloy material which construct its versions with mixed version of two compositions and dopants.
|
inline |
Construct MixedCompositionAndDopantFactory for given material constructor, two compositions and dopings amounts for this constructor.
constructor | material constructor |
material1composition | incomplate composition of first material |
material2composition | incomplate composition of second material, must be defined for the same objects as material1composition |
m1DopAmount,m2DopAmount | amounts of doping for first and second material |
shape | changing material shape exponent |
|
inlineoverridevirtual |
Construct material.
m1_weight | weight of first composition and dopant |
Implements plask::MaterialsDB::MixedCompositionFactory.
|
inlineoverridevirtual |
Get material only if this factory represents solid material (if operator(double m1_weight) is independent from m1_weight).
Implements plask::MaterialsDB::MixedCompositionFactory.
|
protected |
|
protected |