Module “quantity_factory”¶
-
class
tc_python.quantity_factory.DiffusionQuantity¶ Bases:
tc_python.quantity.AbstractQuantityFactory class providing quantities used for defining diffusion simulations and their results.
Note
In this factory class only the most common quantities are defined, you can always use the Console Mode syntax strings in the respective methods as an alternative (for example: “NPM(*)”).
-
classmethod
activity_of_component(component: str, use_ser: bool = False) → tc_python.quantity.ActivityOfComponent¶ Creates a quantity representing the activity of a component.
- Parameters
component – The name of the component, use ALL_COMPONENTS to choose all components
use_ser – Use Stable-Element-Reference(SER). The user-defined reference state is be used if this setting is set to False.
- Returns
A new
ActivityOfComponentobject.
-
classmethod
chemical_diffusion_coefficient(phase: str, diffusing_element: str, gradient_element: str, reference_element: str) → tc_python.quantity.ChemicalDiffusionCoefficient¶ Creates a quantity representing the chemical diffusion coefficient of a phase [m^2/s].
- Parameters
phase – The name of the phase
diffusing_element – The diffusing element
gradient_element – The gradient element
reference_element – The reference element (for example “Fe” in a steel)
- Returns
A new
ChemicalDiffusionCoefficientobject.
-
classmethod
chemical_potential_of_component(component: str, use_ser: bool = False) → tc_python.quantity.ChemicalPotentialOfComponent¶ Creates a quantity representing the chemical potential of a component [J].
- Parameters
component – The name of the component, use ALL_COMPONENTS to choose all components
use_ser – Use Stable-Element-Reference(SER). The user-defined reference state is used if this setting is set to False.
- Returns
A new
ChemicalPotentialOfComponentobject.
-
classmethod
distance(region: str = 'All') → tc_python.quantity.Distance¶ Creates a quantity representing the distance [m].
- Parameters
region – The name of the region or All to choose global.
-
classmethod
intrinsic_diffusion_coefficient(phase: str, diffusing_element: str, gradient_element: str, reference_element: str) → tc_python.quantity.IntrinsicDiffusionCoefficient¶ Creates a quantity representing the intrinsic diffusion coefficient of a phase [m^2/s].
- Parameters
phase – The name of the phase
diffusing_element – The diffusing element
gradient_element – The gradient element
reference_element – The reference element (for example “Fe” in a steel)
- Returns
A new
IntrinsicDiffusionCoefficientobject.
-
classmethod
l_bis(phase: str, diffusing_element: str, gradient_element: str, reference_element: str) → tc_python.quantity.Lbis¶ Creates a quantity representing L’’ of a phase [m^2/s].
- Parameters
phase – The name of the phase
diffusing_element – The diffusing element
gradient_element – The gradient element
reference_element – The reference element (for example “Fe” in a steel)
- Returns
A new
Lbisobject.
-
classmethod
mass_fraction_of_a_component(component: str) → tc_python.quantity.MassFractionOfAComponent¶ Creates a quantity representing the mass fraction of a component.
- Parameters
component – The name of the component or ALL_COMPONENTS to choose all components
- Returns
A new
MassFractionOfAComponentobject.
-
classmethod
mass_fraction_of_a_phase(phase: str) → tc_python.quantity.MassFractionOfAPhase¶ Creates a quantity representing the mass fraction of a phase.
- Parameters
phase – The name of the phase or ALL_PHASES to choose all phases.
- Returns
A new
MassFractionOfAPhaseobject.
-
classmethod
mobility_of_component_in_phase(phase: str, component: str) → tc_python.quantity.MobilityOfComponentInPhase¶ Creates a quantity representing the mobility of a component in a phase [m^2/Js].
- Parameters
phase – The name of the phase
component – The name of the component
- Returns
A new
MobilityOfComponentInPhaseobject.
-
classmethod
mole_fraction_of_a_component(component: str) → tc_python.quantity.MoleFractionOfAComponent¶ Creates a quantity representing the mole fraction of a component.
- Parameters
component – The name of the component or ALL_COMPONENTS to choose all components
- Returns
A new
MoleFractionOfAComponentobject.
-
classmethod
mole_fraction_of_a_phase(phase: str) → tc_python.quantity.MoleFractionOfAPhase¶ Creates a quantity representing the mole fraction of a phase.
- Parameters
phase – The name of the phase or ALL_PHASES to choose all phases
- Returns
A new
MoleFractionOfAPhaseobject.
-
classmethod
position_of_lower_boundary_of_region(region: str) → tc_python.quantity.PositionOfLowerBoundaryOfRegion¶ Creates a quantity representing the position of lower boundary of a region [m].
- Parameters
region – The name of the region
- Returns
A new
PositionOfLowerBoundaryOfRegionobject.
-
classmethod
position_of_upper_boundary_of_region(region: str) → tc_python.quantity.PositionOfUpperBoundaryOfRegion¶ Creates a quantity representing the position of upper boundary of a region [m].
- Parameters
region – The name of the region
- Returns
A new
PositionOfUpperBoundaryOfRegionobject.
-
classmethod
temperature() → tc_python.quantity.Temperature¶ Creates a quantity representing the temperature [K].
- Returns
A new
Temperatureobject.
-
classmethod
thermodynamic_factor(phase: str, diffusing_element: str, gradient_element: str, reference_element: str) → tc_python.quantity.ThermoDynamicFactor¶ Creates a quantity representing thermodynamic factor of a phase.
- Parameters
phase – The name of the phase
diffusing_element – The diffusing element
gradient_element – The gradient element
reference_element – The reference element (for example “Fe” in a steel)
- Returns
A new
ThermoDynamicFactorobject.
-
classmethod
time() → tc_python.quantity.Time¶ Creates a quantity representing the time [s].
-
classmethod
total_mass_fraction_of_component(component: str) → tc_python.quantity.TotalMassFractionOfComponent¶ Creates a quantity representing the total mass fraction of a component.
- Parameters
component – The name of the component
- Returns
A new
TotalMassFractionOfComponentobject.
-
classmethod
total_mass_fraction_of_component_in_phase(phase: str, component: str) → tc_python.quantity.TotalMassFractionOfComponentInPhase¶ Creates a quantity representing the total mass fraction of a component in a phase.
- Parameters
phase – The name of the phase
component – The name of the component
- Returns
A new
TotalMassFractionOfComponentInPhaseobject.
-
classmethod
total_mass_fraction_of_phase(phase: str) → tc_python.quantity.TotalMassFractionOfPhase¶ Creates a quantity representing the total mass fraction of a phase.
- Parameters
phase – The name of the phase.
- Returns
A new
TotalMassFractionOfPhaseobject.
-
classmethod
total_mole_fraction_of_component(component: str) → tc_python.quantity.TotalMoleFractionOfComponent¶ Creates a quantity representing the total mole fraction of a component.
- Parameters
component – The name of the component
- Returns
A new
TotalMoleFractionOfComponentobject.
-
classmethod
total_mole_fraction_of_component_in_phase(phase: str, component: str) → tc_python.quantity.TotalMoleFractionOfComponentInPhase¶ Creates a quantity representing the total mole fraction of a component in a phase.
- Parameters
phase – The name of the phase
component – The name of the component
- Returns
A new
TotalMoleFractionOfComponentInPhaseobject.
-
classmethod
total_volume_fraction_of_phase(phase: str) → tc_python.quantity.TotalVolumeFractionOfPhase¶ Creates a quantity representing the total volume fraction of a phase.
- Parameters
phase – The name of the phase.
- Returns
A new
TotalVolumeFractionOfPhaseobject.
-
classmethod
tracer_diffusion_coefficient(phase: str, diffusing_element: str) → tc_python.quantity.TracerDiffusionCoefficient¶ Creates a quantity representing tracer diffusion coefficient of a phase [m^2/s].
- Parameters
phase – The name of the phase
diffusing_element – The diffusing element
- Returns
A new
TracerDiffusionCoefficientobject.
-
classmethod
u_fraction_of_a_component(component: str) → tc_python.quantity.UFractionOfAComponent¶ Creates a quantity representing the u-fraction of a component.
- Parameters
component – The name of the component
- Returns
A new
UFractionOfAComponentobject.
-
classmethod
user_defined_function(expression: str) → tc_python.quantity.Function¶ Creates a quantity representing a user-defined function.
- Parameters
expression – The function expression
- Returns
A new
Functionobject
-
classmethod
velocity_of_lower_boundary_of_region(region: str) → tc_python.quantity.VelocityOfLowerBoundaryOfRegion¶ Creates a quantity representing the velocity of lower boundary of a region [m/s].
- Parameters
region – The name of the region
- Returns
A new
VelocityOfLowerBoundaryOfRegionobject.
-
classmethod
velocity_of_upper_boundary_of_region(region: str) → tc_python.quantity.VelocityOfUpperBoundaryOfRegion¶ Creates a quantity representing the velocity of upper boundary of a region [m/s].
- Parameters
region – The name of the region
- Returns
A new
VelocityOfUpperBoundaryOfRegionobject.
-
classmethod
width_of_region(region: str) → tc_python.quantity.Function¶ Creates a quantity representing the width of a region [m].
- Parameters
region – The name of the region
- Returns
A new
WidthOfRegionobject.
-
classmethod
-
class
tc_python.quantity_factory.IndependentVariable¶ Bases:
tc_python.quantity.AbstractQuantityFactory class providing quantities used for defining the independent variable in general diffusion result querying.
-
classmethod
distance(region: str = 'All') → tc_python.quantity.Distance¶ Creates an independent variable representing the distance [m].
- Returns
A new Distance object
-
classmethod
time() → tc_python.quantity.Time¶ Creates an independent variable representing the time [s].
- Returns
A new Time object
-
classmethod
-
class
tc_python.quantity_factory.PlotCondition¶ Bases:
tc_python.quantity.AbstractQuantityFactory class providing quantities used for defining the plot condition in general diffusion result querying.
Note
In this factory class only the most common quantities are defined, you can always use the Console Mode syntax strings in the respective methods as an alternative (for example: “time last”).
-
classmethod
distance(distancepoint: float, region: str = 'All') → tc_python.quantity.DistanceCondition¶ Creates a plot condition representing the distance [m].
Change in version 2019b: Mandatory parameter distancepoint added
- Parameters
distancepoint – The distance from the lower interface of the region
region – The name of the region or All to choose global.
- Returns
A new DistanceCondition object
-
classmethod
integral() → tc_python.quantity.IntegralCondition¶ Creates an integral plot condition.
- Returns
A new IntegralCondition object
-
classmethod
interface(region: str, interface_position: tc_python.utils.InterfacePosition) → tc_python.quantity.InterfaceCondition¶ Creates a plot condition representing an interface between two regions.
- Parameters
region – The name of the region used for defining the interface
interface_position – The position of the interface relative to that region (lower or upper)
- Returns
A new InterfaceCondition object
-
classmethod
time(timepoint: Union[float, str] = 'Last') → tc_python.quantity.TimeCondition¶ Creates a plot condition representing the time [s].
Change in version 2019b: Lists of timepoints are no longer supported
- Parameters
timepoint – The timepoint. Optionally “Last” can be used for the end of the simulation
- Returns
A new TimeCondition object
-
classmethod
-
class
tc_python.quantity_factory.ScheilQuantity¶ Bases:
tc_python.quantity.AbstractQuantityFactory class providing quantities used for defining a Scheil calculation result (
tc_python.scheil.ScheilCalculationResult).-
classmethod
apparent_heat_capacity_per_gram() → tc_python.quantity.ApparentHeatCapacityPerGram¶ Creates a quantity representing the apparent heat capacity [J/g/K].
- Returns
A new
ApparentHeatCapacityPerGramobject.
-
classmethod
apparent_heat_capacity_per_mole() → tc_python.quantity.ApparentHeatCapacityPerMole¶ Creates a quantity representing the apparent heat capacity [J/mol/K].
- Returns
A new
ApparentHeatCapacityPerMoleobject.
-
classmethod
apparent_volumetric_thermal_expansion_coefficient() → tc_python.quantity.ApparentVolumetricThermalExpansionCoefficient¶ Creates a quantity representing the apparent volumetric thermal expansion coefficient of the system [1/K].
- Returns
A new
ApparentVolumetricThermalExpansionCoefficientobject.
-
classmethod
composition_of_phase_as_mole_fraction(phase: str, component: str) → tc_python.quantity.CompositionOfPhaseAsMoleFraction¶ Creates a quantity representing the composition of a phase [mole-fraction].
- Parameters
phase – The name of the phase, use ALL_PHASES to choose all stable phases
component – The name of the component, use ALL_COMPONENTS to choose all components
- Returns
A new
CompositionOfPhaseAsMoleFractionobject.
-
classmethod
composition_of_phase_as_weight_fraction(phase: str, component: str) → tc_python.quantity.CompositionOfPhaseAsWeightFraction¶ Creates a quantity representing the composition of a phase [weight-fraction].
- Parameters
phase – The name of the phase, use ALL_PHASES to choose all stable phases
component – The name of the component, use ALL_COMPONENTS to choose all components
- Returns
A new
CompositionOfPhaseAsWeightFractionobject.
-
classmethod
density_of_phase(phase: str) → tc_python.quantity.DensityOfPhase¶ Creates a quantity representing the average density of a phase [g/cm^3].
- Parameters
phase – The name of the phase or ALL_PHASES to choose all phases
- Returns
A new
DensityOfPhaseobject.
-
classmethod
density_of_solid_phase(phase: str) → tc_python.quantity.DensityOfSolidPhase¶ Creates a quantity representing the average density of a solid phase [g/cm^3].
Note
Deprecated in version 2022a: This quantity has been renamed to
density_of_phase(). It will be removed in release 2023a.- Parameters
phase – The name of the phase or ALL_PHASES to choose all solid phases
- Returns
A new
DensityOfSolidPhaseobject.
-
classmethod
density_of_system() → tc_python.quantity.DensityOfSystem¶ Creates a quantity representing the average density of the system [g/cm^3].
- Returns
A new
DensityOfSystemobject.
-
classmethod
distribution_of_component_of_phase(phase: str, component: str) → tc_python.quantity.DistributionOfComponentOfPhase¶ Creates a quantity representing the (molar) fraction of the specified component being present in the specified phase compared to the overall system [-]. This corresponds to the degree of segregation to that phase.
- Parameters
phase – The name of the phase
component – The name of the component
- Returns
A new
DistributionOfComponentOfPhaseobject.
-
classmethod
heat_per_gram() → tc_python.quantity.HeatPerGram¶ Creates a quantity representing the total heat release from the liquidus temperature down to the current temperature [J/g].
Note
The total or apparent heat release during the solidification process consists of two parts: one is the so-called latent heat, i.e. heat due to the liquid -> solid phase transformation (
latent_heat_per_mole()andlatent_heat_per_gram()), and the other is the heat related to the specific heat of liquid and solid phases (heat_per_mole()andheat_per_gram()).- Returns
A new
HeatPerGramobject.
-
classmethod
heat_per_mole() → tc_python.quantity.HeatPerMole¶ Creates a quantity representing the total heat release from the liquidus temperature down to the current temperature [J/mol].
Note
The total or apparent heat release during the solidification process consists of two parts: one is the so-called latent heat, i.e. heat due to the liquid -> solid phase transformation (
latent_heat_per_mole()andlatent_heat_per_gram()), and the other is the heat related to the specific heat of liquid and solid phases (heat_per_mole()andheat_per_gram()).- Returns
A new
HeatPerMoleobject.
-
classmethod
latent_heat_per_gram() → tc_python.quantity.LatentHeatPerGram¶ Creates a quantity representing the cumulated latent heat release from the liquidus temperature down to the current temperature [J/g].
Note
The total or apparent heat release during the solidification process consists of two parts: one is the so-called latent heat, i.e. heat due to the liquid -> solid phase transformation (
latent_heat_per_mole()andlatent_heat_per_gram()), and the other is the heat related to the specific heat of liquid and solid phases (heat_per_mole()andheat_per_gram()).- Returns
A new
LatentHeatPerGramobject.
-
classmethod
latent_heat_per_mole() → tc_python.quantity.LatentHeatPerMole¶ Creates a quantity representing the cumulated latent heat release from the liquidus temperature down to the current temperature [J/mol].
Note
The total or apparent heat release during the solidification process consists of two parts: one is the so-called latent heat, i.e. heat due to the liquid -> solid phase transformation (
latent_heat_per_mole()andlatent_heat_per_gram()), and the other is the heat related to the specific heat of liquid and solid phases (heat_per_mole()andheat_per_gram()).- Returns
A new
LatentHeatPerMoleobject.
-
classmethod
mass_fraction_of_a_solid_phase(phase: str) → tc_python.quantity.MassFractionOfASolidPhase¶ Creates a quantity representing the mass fraction of a solid phase.
- Parameters
phase – The name of the phase or ALL_PHASES to choose all solid phases
- Returns
A new
MassFractionOfASolidPhaseobject.
-
classmethod
mass_fraction_of_all_liquid() → tc_python.quantity.MassFractionOfAllLiquid¶ Creates a quantity representing the total mass fraction of all the liquid phase.
- Returns
A new
MassFractionOfAllLiquidobject.
-
classmethod
mass_fraction_of_all_solid_phases() → tc_python.quantity.MassFractionOfAllSolidPhase¶ Creates a quantity representing the total mass fraction of all solid phases.
- Returns
A new
MassFractionOfAllSolidPhaseobject.
-
classmethod
molar_volume_of_phase(phase: str) → tc_python.quantity.MolarVolumeOfPhase¶ Creates a quantity representing the molar volume of a phase [m^3/mol].
- Parameters
phase – The name of the phase or ALL_PHASES to choose all phases
- Returns
A new
MolarVolumeOfPhaseobject.
-
classmethod
molar_volume_of_system() → tc_python.quantity.MolarVolumeOfSystem¶ Creates a quantity representing the molar volume of the system [m^3/mol].
- Returns
A new
MolarVolumeOfSystemobject.
-
classmethod
mole_fraction_of_a_solid_phase(phase: str) → tc_python.quantity.MoleFractionOfASolidPhase¶ Creates a quantity representing the molar fraction of a solid phase.
- Parameters
phase – The name of the phase or ALL_PHASES to choose all solid phases
- Returns
A new
MoleFractionOfASolidPhaseobject.
-
classmethod
mole_fraction_of_all_liquid() → tc_python.quantity.MoleFractionOfAllLiquid¶ Creates a quantity representing the total molar fraction of all the liquid phase.
- Returns
A new
MoleFractionOfAllLiquidobject.
-
classmethod
mole_fraction_of_all_solid_phases() → tc_python.quantity.MoleFractionOfAllSolidPhases¶ Creates a quantity representing the total molar fraction of all solid phases.
- Returns
A new
MoleFractionOfAllSolidPhasesobject.
-
classmethod
site_fraction_of_component_in_phase(phase: str, component: str, sub_lattice_ordinal_no: int = 0) → tc_python.quantity.SiteFractionOfComponentInPhase¶ Creates a quantity representing the site fractions [-].
- Parameters
phase – The name of the phase, use ALL_PHASES to choose all stable phases
component – The name of the component, use ALL_COMPONENTS to choose all components
sub_lattice_ordinal_no – The ordinal number (i.e. 1, 2, …) of the sublattice of interest, use None to choose all sublattices
Note
Detailed information about the sublattices can be obtained by getting the Phase object of a phase from the System object using
tc_python.system.System.get_phase_in_system. For each phase the sublattices are obtained by usingtc_python.system.Phase.get_sublattices. The order in the returned list is equivalent to the sublattice ordinal number expected, but note that the ordinal numbers start with 1.- Returns
A new
SiteFractionOfComponentInPhaseobject.
-
classmethod
temperature() → tc_python.quantity.Temperature¶ Creates a quantity representing the temperature [K].
- Returns
A new
Temperatureobject.
-
classmethod
-
class
tc_python.quantity_factory.ThermodynamicQuantity¶ Bases:
tc_python.quantity.AbstractQuantityFactory class providing quantities used for defining equilibrium calculations (single equilibrium, property and phase diagrams, …) and their results.
Note
In this factory class only the most common quantities are defined, you can always use the Console Mode syntax strings in the respective methods as an alternative (for example: “NPM(*)”).
-
classmethod
activity_of_component(component: str, use_ser: bool = False) → tc_python.quantity.ActivityOfComponent¶ Creates a quantity representing the activity of a component [-].
- Parameters
component – The name of the component, use ALL_COMPONENTS to choose all components
use_ser – Use Stable-Element-Reference(SER). The user-defined reference state is used if this setting is set to False.
- Returns
A new
ActivityOfComponentobject.
-
classmethod
chemical_diffusion_coefficient(phase: str, diffusing_element: str, gradient_element: str, reference_element: str) → tc_python.quantity.ChemicalDiffusionCoefficient¶ Creates a quantity representing the chemical diffusion coefficient of a phase [m^2/s].
- Parameters
phase – The name of the phase
diffusing_element – The diffusing element
gradient_element – The gradient element
reference_element – The reference element (for example “Fe” in a steel)
- Returns
A new
ChemicalDiffusionCoefficientobject.
-
classmethod
chemical_potential_of_component(component: str, use_ser: bool = False) → tc_python.quantity.ChemicalPotentialOfComponent¶ Creates a quantity representing the chemical potential of a component [J].
- Parameters
component – The name of the component, use ALL_COMPONENTS to choose all components
use_ser – Use Stable-Element-Reference(SER). The user-defined reference state is used if this setting is set to False.
- Returns
A new
ChemicalPotentialOfComponentobject.
-
classmethod
composition_of_phase_as_mole_fraction(phase: str, component: str = 'All') → tc_python.quantity.CompositionOfPhaseAsMoleFraction¶ Creates a quantity representing the composition of a phase [mole-fraction].
- Parameters
phase – The name of the phase, use ALL_PHASES to choose all stable phases
component – The name of the component, use ALL_COMPONENTS to choose all components
- Returns
A new
CompositionOfPhaseAsMoleFractionobject.
-
classmethod
composition_of_phase_as_weight_fraction(phase: str, component: str) → tc_python.quantity.CompositionOfPhaseAsWeightFraction¶ Creates a quantity representing the composition of a phase [weight-fraction].
- Parameters
phase – The name of the phase, use ALL_PHASES to choose all stable phases
component – The name of the component, use ALL_COMPONENTS to choose all components
- Returns
A new
CompositionOfPhaseAsWeightFractionobject.
-
classmethod
gibbs_energy_of_a_phase(phase: str, use_ser: bool = False) → tc_python.quantity.GibbsEnergyOfAPhase¶ Creates a quantity representing the Gibbs energy of a phase [J].
- Parameters
phase – The name of the phase or ALL_PHASES to choose all phases
use_ser – Use Stable-Element-Reference(SER). The user-defined reference state will be used when this setting is set to False.
- Returns
A new
GibbsEnergyOfAPhaseobject.
-
classmethod
mass_fraction_of_a_component(component: str) → tc_python.quantity.MassFractionOfAComponent¶ Creates a quantity representing the mass fraction of a component.
- Parameters
component – The name of the component or ALL_COMPONENTS to choose all components
- Returns
A new
MassFractionOfAComponentobject.
-
classmethod
mass_fraction_of_a_phase(phase: str) → tc_python.quantity.MassFractionOfAPhase¶ Creates a quantity representing the mass fraction of a phase.
- Parameters
phase – The name of the phase or ALL_PHASES to choose all phases.
- Returns
A new
MassFractionOfAPhaseobject.
-
classmethod
mole_fraction_of_a_component(component: str) → tc_python.quantity.MoleFractionOfAComponent¶ Creates a quantity representing the mole fraction of a component.
- Parameters
component – The name of the component or ALL_COMPONENTS to choose all components
- Returns
A new
MoleFractionOfAComponentobject.
-
classmethod
mole_fraction_of_a_phase(phase: str) → tc_python.quantity.MoleFractionOfAPhase¶ Creates a quantity representing the mole fraction of a phase.
- Parameters
phase – The name of the phase or ALL_PHASES to choose all phases
- Returns
A new
MoleFractionOfAPhaseobject.
-
classmethod
normalized_driving_force_of_a_phase(phase: str) → tc_python.quantity.NormalizedDrivingForceOfAPhase¶ Creates a quantity representing normalized driving force of a phase [-].
Warning
A driving force calculation requires that the respective phase has been set to the state DORMANT. The parameter All is only reasonable if all phases have been set to that state.
- Parameters
phase – The name of the phase or ALL_PHASES to choose all phases
- Returns
A new
DrivingForceOfAPhaseobject.
-
classmethod
pressure() → tc_python.quantity.Pressure¶ Creates a quantity representing the pressure [Pa].
- Returns
A new
Pressureobject.
-
classmethod
system_size() → tc_python.quantity.SystemSize¶ Creates a quantity representing the system size [mol].
- Returns
A new
SystemSizeobject.
-
classmethod
temperature() → tc_python.quantity.Temperature¶ Creates a quantity representing the temperature [K].
- Returns
A new
Temperatureobject.
-
classmethod
tracer_diffusion_coefficient(phase: str, diffusing_element: str) → tc_python.quantity.TracerDiffusionCoefficient¶ Creates a quantity representing tracer diffusion coefficient of a phase [m^2/s].
- Parameters
phase – The name of the phase
diffusing_element – The diffusing element
- Returns
A new
TracerDiffusionCoefficientobject.
-
classmethod
u_fraction_of_a_component(component: str) → tc_python.quantity.UFractionOfAComponent¶ Creates a quantity representing the u-fraction of a component.
- Parameters
component – The name of the component
- Returns
A new
UFractionOfAComponentobject.
-
classmethod
user_defined_function(expression: str) → tc_python.quantity.Function¶ Creates a quantity representing a user-defined function.
- Parameters
expression – The function expression
- Returns
A new
Functionobject
-
classmethod
volume_fraction_of_a_phase(phase: str) → tc_python.quantity.VolumeFractionOfAPhase¶ Creates a quantity representing the volume fraction of a phase.
- Parameters
phase – The name of the phase or ALL_PHASES to choose all phases
- Returns
A new
VolumeFractionOfAPhaseobject.
-
classmethod