|
|
| UniformTranslation (const UniformTranslation &)=delete |
|
| UniformTranslation (UniformTranslation &&)=default |
|
UniformTranslation & | operator= (const UniformTranslation &)=delete |
|
UniformTranslation & | operator= (UniformTranslation &&)=default |
|
| UniformTranslation (double initial_time, const std::array< double, MeshDim > &velocity) |
| | If UniformTranslation is created using the constructor that takes a single velocity, then there is no distorted frame (so block_maps_grid_to_distorted() and block_maps_distorted_to_inertial() contain nullptrs), and the given velocity is the one that goes from Frame::Grid to Frame::Inertial.
|
|
| UniformTranslation (double initial_time, const std::array< double, MeshDim > &velocity_grid_to_distorted, const std::array< double, MeshDim > &velocity_distorted_to_inertial) |
| | If UniformTranslation is created using the constructor that takes two velocities, then the first velocity is the one describing a uniform translation that goes from Frame::Grid to Frame::Distorted, and the second velocity is the one that describes a uniform translation that goes from Frame::Distorted to Frame::Inertial. In this case there are also two FunctionsOfTime, one for each of the two translation maps.
|
| auto | get_clone () const -> std::unique_ptr< TimeDependence< MeshDim > > override |
| | Returns a std::unique_ptr pointing to a copy of the TimeDependence.
|
| auto | block_maps_grid_to_inertial (size_t number_of_blocks) const -> std::vector< std::unique_ptr< domain::CoordinateMapBase< Frame::Grid, Frame::Inertial, MeshDim > > > override |
| | Returns the coordinate maps from the Frame::Grid to the Frame::Inertial frame for each block.
|
| auto | block_maps_grid_to_distorted (size_t number_of_blocks) const -> std::vector< std::unique_ptr< domain::CoordinateMapBase< Frame::Grid, Frame::Distorted, MeshDim > > > override |
| | Returns the coordinate maps from the Frame::Grid to the Frame::Distorted frame for each block. Returns vector of nullptr if there is no distorted frame.
|
| auto | block_maps_distorted_to_inertial (size_t number_of_blocks) const -> std::vector< std::unique_ptr< domain::CoordinateMapBase< Frame::Distorted, Frame::Inertial, MeshDim > > > override |
| | Returns the coordinate maps from the Frame::Distorted to the Frame::Inertial frame for each block. Returns vector of nullptr if is no distorted frame.
|
| auto | functions_of_time (const std::unordered_map< std::string, double > &initial_expiration_times={}) const -> std::unordered_map< std::string, std::unique_ptr< domain::FunctionsOfTime::FunctionOfTime > > override |
| | Returns the functions of time for the domain.
|
| Public Member Functions inherited from domain::creators::time_dependence::TimeDependence< MeshDim > |
|
| TimeDependence (const TimeDependence &)=default |
|
TimeDependence & | operator= (const TimeDependence &)=default |
|
| TimeDependence (TimeDependence &&)=default |
|
TimeDependence & | operator= (TimeDependence &&)=default |
|
bool | is_none () const |
| | Returns true if the instance is None, meaning no time dependence.
|
template<size_t MeshDim, size_t Index>
class domain::creators::time_dependence::UniformTranslation< MeshDim, Index >
A uniform translation in the \(x-, y-\) and \(z-\)direction.
The coordinates are adjusted according to:
\begin{align}x^i \to x^i + f^i(t)
\end{align}
where \(f^i(t)\) are the functions of time.
Index is used to distinguish multiple UniformTranslations from each other in CompositionUniformTranslation.
See the documentation for the constructors below: one constructor takes two velocities, which correspond to two translations: one from Frame::Grid to Frame::Distorted, and the other from Frame::Distorted to Frame::Inertial.