PLaSK library
|
Factory of alloy material which construct it version with mixed version of two compositions (for materials without dopants). More...
#include <plask/material/db.hpp>
Public Member Functions | |
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 Member Functions | |
Material::Composition | mixedComposition (double m1_weight) const |
Calculate mixed composition, of material1composition and material2composition. | |
Protected Attributes | |
Material::Composition | material1composition |
Material::Composition | material2composition |
double | shape |
Protected Attributes inherited from plask::MaterialsDB::MixedCompositionFactory | |
shared_ptr< const MaterialConstructor > | constructor |
Factory of alloy material which construct it version with mixed version of two compositions (for materials without dopants).
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.
constructor | material constructor |
material1composition | incomplate composition of first material |
material2composition | incomplate composition of second material, must be defined for the same objects as material1composition |
shape | changing material shape exponent |
|
protected |
|
inlineoverridevirtual |
Construct material.
m1_weight | weight of first composition |
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 |
|
protected |