|
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::string | data_directory |
| std::vector< std::string > | material_file_names |
| std::vector< double > | minimum_temperature |
| std::vector< double > | maximum_temperature |
| std::vector< double > | interval_temperature |
| std::vector< double > | minimum_pressure |
| std::vector< double > | maximum_pressure |
| std::vector< double > | interval_pressure |
| std::vector< std::unique_ptr< Utilities::StructuredDataLookup< 2 > > > | material_lookup |
| std::vector< unsigned int > | transition_indicators |
| 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 look up the dominant phase in tables for each respective composition and export the values of phase functions. The class can handle arbitrary numbers of dominant phases for each composition, 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 575 of file utilities.h.
| void aspect::MaterialModel::MaterialUtilities::PhaseFunctionDiscrete< dim >::initialize | ( | ) |
The initialization process loads the contents of the material files for the respective compositions.
| double aspect::MaterialModel::MaterialUtilities::PhaseFunctionDiscrete< dim >::compute_value | ( | const PhaseFunctionInputs< dim > & | in | ) | const |
Percentage of material that has already undergone the phase transition to the higher-pressure material. For this class this function only returns 1.0 or 0.0, depending on whether the selected phase transition has been crossed or not.
| double aspect::MaterialModel::MaterialUtilities::PhaseFunctionDiscrete< dim >::compute_derivative | ( | ) | const |
No valid implementation exists for this function, as the derivative of a discrete function is undefined at locations of phase jumps. This function raises an error to ensure that a phase derivative request is not made for this phase function.
| unsigned int aspect::MaterialModel::MaterialUtilities::PhaseFunctionDiscrete< dim >::n_phase_transitions | ( | ) | const |
Return the total number of phase transitions.
| unsigned int aspect::MaterialModel::MaterialUtilities::PhaseFunctionDiscrete< dim >::n_phases | ( | ) | const |
Return the total number of phases.
| unsigned int aspect::MaterialModel::MaterialUtilities::PhaseFunctionDiscrete< dim >::n_phases_over_all_chemical_compositions | ( | ) | const |
Return the total number of phases over all chemical compositions.
| const std::vector<unsigned int>& aspect::MaterialModel::MaterialUtilities::PhaseFunctionDiscrete< 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::PhaseFunctionDiscrete< 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::PhaseFunctionDiscrete< 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::PhaseFunctionDiscrete< 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::PhaseFunctionDiscrete< 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 |
Directory path where data files are stored.
This variable is read from the parameter file through a parameter called 'Data directory'.
Definition at line 671 of file utilities.h.
|
private |
List of file names containing material data for each composition.
This variable is read from the parameter file through a parameter called 'Material file names'.
Definition at line 678 of file utilities.h.
|
private |
Minimum temperature values for each composition in the P-T table.
Definition at line 683 of file utilities.h.
|
private |
Maximum temperature values for each composition in the P-T table.
Definition at line 688 of file utilities.h.
|
private |
Temperature intervals used for each composition in the P-T table.
Definition at line 693 of file utilities.h.
|
private |
Minimum pressure values for each composition in the P-T table.
Definition at line 698 of file utilities.h.
|
private |
Maximum pressure values for each composition in the P-T table.
Definition at line 703 of file utilities.h.
|
private |
Pressure intervals used for each composition in the P-T table.
Definition at line 708 of file utilities.h.
|
private |
List of pointers to objects that read and process data we get from material data files. There is one pointer/object per lookup file.
Definition at line 714 of file utilities.h.
|
private |
List of phase indicators of the most dominant phases in the material data files to construct the different phase transitions in this class. For a description of the use of the phase indicators, please see the documentation of the input parameter 'Phase transition indicators' in the function declare_parameters().
Definition at line 722 of file utilities.h.
|
private |
A vector that stores how many phase transitions there are for each compositional field.
Definition at line 727 of file utilities.h.
|
private |
A vector that stores how many phases there are for each compositional field.
Definition at line 732 of file utilities.h.
|
private |
A vector that stores how many phase transitions there are for each chemical compositional field.
Definition at line 737 of file utilities.h.
|
private |
A vector that stores how many phases there are for each chemical compositional field.
Definition at line 742 of file utilities.h.
|
private |
Total number of phases over all compositional fields
Definition at line 747 of file utilities.h.
|
private |
Total number of phases over all compositional fields
Definition at line 752 of file utilities.h.