This structure is used to store values for a particular solution variables, at all quadrature points in the cell.
More...
|
|
| SolutionVariable () |
| Default Constructor.
|
|
| SolutionVariable (const std::vector< double > *data_in, const VariableNames &name_in) |
| Constructor for setting up the pointer to solution variable values and name of the solution variable.
|
|
| SolutionVariable (const double &value, const unsigned int &length, const VariableNames &name_in) |
| Constructor to initialize the solution variable values, taking a default value and size of the vector as an input argument.
|
|
| SolutionVariable (const std::vector< double > &data_in, const VariableNames &name_in) |
| Constructor to initialize the solution variable values, taking values as an input vector argument.
|
|
|
const double & | operator[] (const unsigned int &i) const |
| Operator to access the value at a particular quadrature point in the cell.
|
|
bool | is_initialized () const |
| Function to determine whether the structure is initialized or not.
|
|
unsigned int | size () const |
| Function to the length of the internal data element.
|
|
VariableNames | get_variablename () const |
| Function to get the VariableNames enumeration corresponding to this struct.
|
|
This structure is used to store values for a particular solution variables, at all quadrature points in the cell.
It is best utilized while setting previous Newton iteration values from application to the layer classes etc. It is recommended that those classes which require certain old solution values to compute effective properties etc. should contain this structure as their data member. This structure has four constructors. Default constructor doesn't set any value. It also sets the boolean member initialized to false.
This can be checked by using is_initialized member function and is helpful to determine whether any values are stored or not inside the object. The other constructor takes std::vector<double>* corresponding to the solution variable values and enumeration VariableNames representing the name of the solution variable. The VariableNames of the solution variable can be accessed by get_variablename() method. In order to access value at a particular quadrature point, operator [ ] is provided. Other two constructors are useful in the case when we set some default values for a particular variable (which is not being solved in the current application).
Sample Usage:
layer.set_solution( temperature_old );
{
double temp_celsius = temperature_cell[0] - 273.15;
}
- Author
- Philip Wardlaw
-
Madhur Bhaiya
-
Marc Secanell