|
adamantine
|
#include <Microstructure.hh>
Public Member Functions | |
| Microstructure (MPI_Comm communicator, std::string const &filename_prefix) | |
| ~Microstructure () | |
| void | set_old_temperature (dealii::LA::distributed::Vector< double, dealii::MemorySpace::Host > &old_temperature) |
| template<int n_materials, int p_order, typename MaterialStates , typename MemorySpaceType > | |
| void | compute_G_and_R (MaterialProperty< dim, n_materials, p_order, MaterialStates, MemorySpaceType > const &material_properties, dealii::DoFHandler< dim > const &dof_handler, dealii::LA::distributed::Vector< double, dealii::MemorySpace::Host > const &temperature, double delta_t) |
Private Attributes | |
| MPI_Comm | _communicator |
| std::string | _filename_prefix |
| std::ofstream | _file |
| dealii::LA::distributed::Vector< double, dealii::MemorySpace::Host > | _old_temperature |
This class computes data need for microstructure simulation.
Definition at line 26 of file Microstructure.hh.
| adamantine::Microstructure< dim >::Microstructure | ( | MPI_Comm | communicator, |
| std::string const & | filename_prefix | ||
| ) |
Constructor.
Definition at line 14 of file Microstructure.cc.
| adamantine::Microstructure< dim >::~Microstructure |
On each rank, the destructor closes their own temporary file. On rank zero, the destructor concatenates the temporary files into a single new file, and it removes all the temporary files.
Definition at line 25 of file Microstructure.cc.
| void adamantine::Microstructure< dim >::compute_G_and_R | ( | MaterialProperty< dim, n_materials, p_order, MaterialStates, MemorySpaceType > const & | material_properties, |
| dealii::DoFHandler< dim > const & | dof_handler, | ||
| dealii::LA::distributed::Vector< double, dealii::MemorySpace::Host > const & | temperature, | ||
| double | delta_t | ||
| ) |
Compute the following data
Definition at line 87 of file Microstructure.hh.
| void adamantine::Microstructure< dim >::set_old_temperature | ( | dealii::LA::distributed::Vector< double, dealii::MemorySpace::Host > & | old_temperature | ) |
Save the temperature before calling evolve_one_time_step().
Definition at line 57 of file Microstructure.cc.
|
private |
Local MPI communicator.
Definition at line 68 of file Microstructure.hh.
|
private |
Temporary output file.
Definition at line 76 of file Microstructure.hh.
|
private |
Prefix of the output filename.
Definition at line 72 of file Microstructure.hh.
|
private |
Temperature at the previous time step.
Definition at line 81 of file Microstructure.hh.