ASPECT
|
Static Public Member Functions | |
static void | declare_parameters (ParameterHandler &prm) |
Static Public Member Functions inherited from aspect::SimulatorAccess< dim > | |
static void | get_composition_values_at_q_point (const std::vector< std::vector< double >> &composition_values, const unsigned int q, std::vector< double > &composition_values_at_q_point) |
Private Attributes | |
std::vector< double > | transition_depths |
std::vector< double > | transition_pressures |
std::vector< double > | transition_temperatures |
std::vector< double > | transition_widths |
std::vector< double > | transition_pressure_widths |
std::vector< double > | transition_slopes |
std::vector< double > | transition_temperature_upper_limits |
std::vector< double > | transition_temperature_lower_limits |
bool | use_depth_instead_of_pressure |
std::unique_ptr< std::vector< unsigned int > > | n_phase_transitions_per_composition |
std::vector< unsigned int > | n_phases_per_composition |
std::vector< unsigned int > | n_phase_transitions_per_chemical_composition |
std::vector< unsigned int > | n_phases_per_chemical_composition |
unsigned int | n_phases_total |
unsigned int | n_phases_total_chemical_compositions |
A class that bundles functionality to compute the values and derivatives of phase functions. The class can handle arbitrary numbers of phase transitions, but the calling side has to determine how to use the return values of this object (e.g. in terms of density or viscosity).
Definition at line 745 of file utilities.h.
double aspect::MaterialModel::MaterialUtilities::PhaseFunction< dim >::compute_value | ( | const PhaseFunctionInputs< dim > & | in | ) | const |
Percentage of material that has already undergone the phase transition to the higher-pressure material (this is done individually for each transition and summed up in the end)
double aspect::MaterialModel::MaterialUtilities::PhaseFunction< dim >::compute_derivative | ( | const PhaseFunctionInputs< dim > & | in | ) | const |
Return the derivative of the phase function with respect to pressure.
unsigned int aspect::MaterialModel::MaterialUtilities::PhaseFunction< dim >::n_phase_transitions | ( | ) | const |
Return the total number of phase transitions.
unsigned int aspect::MaterialModel::MaterialUtilities::PhaseFunction< dim >::n_phases | ( | ) | const |
Return the total number of phases.
unsigned int aspect::MaterialModel::MaterialUtilities::PhaseFunction< dim >::n_phases_over_all_chemical_compositions | ( | ) | const |
Return the total number of phases over all chemical compositions.
double aspect::MaterialModel::MaterialUtilities::PhaseFunction< dim >::get_transition_slope | ( | const unsigned int | phase_transition_index | ) | const |
Return the Clapeyron slope (dp/dT of the transition) for phase transition number phase_transition_index
.
double aspect::MaterialModel::MaterialUtilities::PhaseFunction< dim >::get_transition_depth | ( | const unsigned int | phase_transition_index | ) | const |
Return the depth for phase transition number phase_transition_index
.
const std::vector<unsigned int>& aspect::MaterialModel::MaterialUtilities::PhaseFunction< dim >::n_phase_transitions_for_each_chemical_composition | ( | ) | const |
Return how many phase transitions there are for each chemical composition.
const std::vector<unsigned int>& aspect::MaterialModel::MaterialUtilities::PhaseFunction< dim >::n_phases_for_each_chemical_composition | ( | ) | const |
Return how many phases there are for each chemical composition.
const std::vector<unsigned int>& aspect::MaterialModel::MaterialUtilities::PhaseFunction< dim >::n_phase_transitions_for_each_composition | ( | ) | const |
Return how many phase transitions there are for each composition. Note, that most likely you only need the number of phase transitions for each chemical composition, so use the function above instead. This function is only kept for backward compatibility.
const std::vector<unsigned int>& aspect::MaterialModel::MaterialUtilities::PhaseFunction< dim >::n_phases_for_each_composition | ( | ) | const |
Return how many phases there are for each composition. Note, that most likely you only need the number of phase transitions for each chemical composition, so use the function above instead. This function is only kept for backward compatibility.
|
static |
Declare the parameters this class takes through input files. Note that this class does not declare its own subsection, i.e. the parameters will be declared in the subsection that was active before calling this function.
void aspect::MaterialModel::MaterialUtilities::PhaseFunction< dim >::parse_parameters | ( | ParameterHandler & | prm | ) |
Read the parameters this class declares from the parameter file. Note that this class does not declare its own subsection, i.e. the parameters will be parsed from the subsection that was active before calling this function.
|
private |
List of depth (or pressure), width, Clapeyron slopes and limits of temperature for the different phase transitions
Definition at line 842 of file utilities.h.
|
private |
Definition at line 843 of file utilities.h.
|
private |
Definition at line 844 of file utilities.h.
|
private |
Definition at line 845 of file utilities.h.
|
private |
Definition at line 846 of file utilities.h.
|
private |
Definition at line 847 of file utilities.h.
|
private |
Definition at line 848 of file utilities.h.
|
private |
Definition at line 849 of file utilities.h.
|
private |
Whether to define the phase transitions based on depth, or pressure. Based on this parameter, either transition_depths and transition_width, or transition_pressures and transition_pressure_widths determine the depth of the phase transition.
Definition at line 857 of file utilities.h.
|
private |
A vector that stores how many phase transitions there are for each compositional field.
Definition at line 862 of file utilities.h.
|
private |
A vector that stores how many phases there are for each compositional field.
Definition at line 867 of file utilities.h.
|
private |
A vector that stores how many phase transitions there are for each chemical compositional field.
Definition at line 872 of file utilities.h.
|
private |
A vector that stores how many phases there are for each chemical compositional field.
Definition at line 877 of file utilities.h.
|
private |
Total number of phases over all compositional fields
Definition at line 882 of file utilities.h.
|
private |
Total number of phases over all compositional fields
Definition at line 887 of file utilities.h.