#include "cs_defs.h"
#include "cs_restart.h"
Go to the source code of this file.
◆ cs_restart_map_build()
void cs_restart_map_build |
( |
void |
| ) |
|
Build mapping of restart files to different mesh if defined.
- Parameters
-
[in] | need_vertices | indicate if location at vertices is needed |
◆ cs_restart_map_free()
void cs_restart_map_free |
( |
void |
| ) |
|
Free restart file mapping to different mesh.
Revert restart reading to default behavior.
◆ cs_restart_map_set_locations()
void cs_restart_map_set_locations |
( |
bool |
map_cell_centers, |
|
|
bool |
map_vertices |
|
) |
| |
Indicate whether location for restart file mapping is needed at cells or vertices.
By default, mapping is done for cell-based quantities, but not for vertex-based quantities.
Mapping of quantities at faces or particles is not handled yet, but will use the cell-center or vertex based mappings in the future in all cases:
- interior faces may not be aligned with previous faces, so some sort of cell-based interpolation will be required
- boundary faces can use the boundary face / cell adjacency to avoid an additional mapping
- for particles, as the previous location is stored based on cell ids, updating particle locations will require locating them in the matching cell and completing a trajectory adjustment (direct location should be avoided in case of concave boundaries).
- Parameters
-
[in] | map_cell_centers | locate cell centers in the previous mesh. |
[in] | map_vertices | locate vertices in the previous mesh. |
◆ cs_restart_map_set_mesh_input()
void cs_restart_map_set_mesh_input |
( |
const char * |
mesh_path | ) |
|
Indicate restart files should be mapped to a given mesh input.
- Parameters
-
[in] | mesh_path | path to mesh input |
◆ cs_restart_map_set_options()
void cs_restart_map_set_options |
( |
bool |
apply_mesh_deformation, |
|
|
float |
tolerance_base, |
|
|
float |
tolerance_fraction |
|
) |
| |
Set options relative to restart file mapping to a given mesh input.
- Parameters
-
[in] | apply_mesh_deformation | apply mesh deformation from upstream computation (if present) so as to map to final, and not initial mesh shape. |
[in] | tolerance_base | associated base tolerance (used for bounding box check only, not for location test) |
[in] | tolerance_fraction | associated fraction of element bounding boxes added to tolerance |